Class: Google::Apis::DataflowV1b3::Sink

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb

Overview

A sink that records can be encoded and written to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Sink

Returns a new instance of Sink.


2760
2761
2762
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2760

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codecHash<String,Object>

The codec to use to encode data written to the sink. Corresponds to the JSON property codec

Returns:

  • (Hash<String,Object>)

2758
2759
2760
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2758

def codec
  @codec
end

#specHash<String,Object>

The sink to write to, plus its parameters. Corresponds to the JSON property spec

Returns:

  • (Hash<String,Object>)

2753
2754
2755
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2753

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2765
2766
2767
2768
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2765

def update!(**args)
  @spec = args[:spec] if args.key?(:spec)
  @codec = args[:codec] if args.key?(:codec)
end