Class: Google::Apis::DataflowV1b3::StreamingComputationTask

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 task which describes what action should be performed for the specified streaming computation ranges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StreamingComputationTask

Returns a new instance of StreamingComputationTask.



5401
5402
5403
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5401

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

Instance Attribute Details

#computation_rangesArray<Google::Apis::DataflowV1b3::StreamingComputationRanges>

Contains ranges of a streaming computation this task should apply to. Corresponds to the JSON property computationRanges



5389
5390
5391
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5389

def computation_ranges
  @computation_ranges
end

#data_disksArray<Google::Apis::DataflowV1b3::MountedDataDisk>

Describes the set of data disks this task should apply to. Corresponds to the JSON property dataDisks



5394
5395
5396
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5394

def data_disks
  @data_disks
end

#task_typeString

A type of streaming computation task. Corresponds to the JSON property taskType

Returns:

  • (String)


5399
5400
5401
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5399

def task_type
  @task_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5406
5407
5408
5409
5410
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5406

def update!(**args)
  @computation_ranges = args[:computation_ranges] if args.key?(:computation_ranges)
  @data_disks = args[:data_disks] if args.key?(:data_disks)
  @task_type = args[:task_type] if args.key?(:task_type)
end