Class: Google::Apis::DataflowV1b3::StreamingSetupTask

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 task which initializes part of a streaming Dataflow job.

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


3123
3124
3125
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3123

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

Instance Attribute Details

#drainBoolean Also known as: drain?

The user has requested drain. Corresponds to the JSON property drain


3120
3121
3122
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3120

def drain
  @drain
end

#receive_work_portFixnum

The TCP port on which the worker should listen for messages from other streaming computation workers. Corresponds to the JSON property receiveWorkPort


3103
3104
3105
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3103

def receive_work_port
  @receive_work_port
end

#streaming_computation_topologyGoogle::Apis::DataflowV1b3::TopologyConfig

Global topology of the streaming Dataflow job, including all computations and their sharded locations. Corresponds to the JSON property streamingComputationTopology


3115
3116
3117
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3115

def streaming_computation_topology
  @streaming_computation_topology
end

#worker_harness_portFixnum

The TCP port used by the worker to communicate with the Dataflow worker harness. Corresponds to the JSON property workerHarnessPort


3109
3110
3111
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3109

def worker_harness_port
  @worker_harness_port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3128
3129
3130
3131
3132
3133
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3128

def update!(**args)
  @receive_work_port = args[:receive_work_port] if args.key?(:receive_work_port)
  @worker_harness_port = args[:worker_harness_port] if args.key?(:worker_harness_port)
  @streaming_computation_topology = args[:streaming_computation_topology] if args.key?(:streaming_computation_topology)
  @drain = args[:drain] if args.key?(:drain)
end