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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ Sink

Returns a new instance of Sink.



4514
4515
4516
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4514

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>)


4507
4508
4509
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4507

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>)


4512
4513
4514
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4512

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4519
4520
4521
4522
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4519

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