Class: Google::Apis::DataflowV1b3::WorkItem

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

WorkItem represents basic information about a WorkItem to be executed in the cloud.

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

Returns a new instance of WorkItem.


2546
2547
2548
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2546

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

Instance Attribute Details

#configurationString

Work item-specific configuration as an opaque blob. Corresponds to the JSON property configuration

Returns:

  • (String)

2539
2540
2541
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2539

def configuration
  @configuration
end

#idString

Identifies this WorkItem. Corresponds to the JSON property id

Returns:

  • (String)

2468
2469
2470
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2468

def id
  @id
end

#initial_report_indexString

The initial index to use when reporting the status of the WorkItem. Corresponds to the JSON property initialReportIndex

Returns:

  • (String)

2544
2545
2546
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2544

def initial_report_index
  @initial_report_index
end

#job_idString

Identifies the workflow job this WorkItem belongs to. Corresponds to the JSON property jobId

Returns:

  • (String)

2478
2479
2480
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2478

def job_id
  @job_id
end

#lease_expire_timeString

Time when the lease on this Work will expire. Corresponds to the JSON property leaseExpireTime

Returns:

  • (String)

2534
2535
2536
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2534

def lease_expire_time
  @lease_expire_time
end

#map_taskGoogle::Apis::DataflowV1b3::MapTask

MapTask consists of an ordered set of instructions, each of which describes one particular low-level operation for the worker to perform in order to accomplish the MapTask's WorkItem. Each instruction must appear in the list before any instructions which depends on its output. Corresponds to the JSON property mapTask


2492
2493
2494
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2492

def map_task
  @map_task
end

#packagesArray<Google::Apis::DataflowV1b3::Package>

Any required packages that need to be fetched in order to execute this WorkItem. Corresponds to the JSON property packages


2484
2485
2486
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2484

def packages
  @packages
end

#project_idString

Identifies the cloud project this WorkItem belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)

2473
2474
2475
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2473

def project_id
  @project_id
end

#report_status_intervalString

Recommended reporting interval. Corresponds to the JSON property reportStatusInterval

Returns:

  • (String)

2529
2530
2531
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2529

def report_status_interval
  @report_status_interval
end

#seq_map_taskGoogle::Apis::DataflowV1b3::SeqMapTask

Describes a particular function to invoke. Corresponds to the JSON property seqMapTask


2497
2498
2499
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2497

def seq_map_task
  @seq_map_task
end

#shell_taskGoogle::Apis::DataflowV1b3::ShellTask

A task which consists of a shell command for the worker to execute. Corresponds to the JSON property shellTask


2502
2503
2504
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2502

def shell_task
  @shell_task
end

#source_operation_taskGoogle::Apis::DataflowV1b3::SourceOperationRequest

A work item that represents the different operations that can be performed on a user-defined Source specification. Corresponds to the JSON property sourceOperationTask


2513
2514
2515
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2513

def source_operation_task
  @source_operation_task
end

#streaming_computation_taskGoogle::Apis::DataflowV1b3::StreamingComputationTask

A task which describes what action should be performed for the specified streaming computation ranges. Corresponds to the JSON property streamingComputationTask


2519
2520
2521
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2519

def streaming_computation_task
  @streaming_computation_task
end

#streaming_config_taskGoogle::Apis::DataflowV1b3::StreamingConfigTask

A task that carries configuration information for streaming computations. Corresponds to the JSON property streamingConfigTask


2524
2525
2526
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2524

def streaming_config_task
  @streaming_config_task
end

#streaming_setup_taskGoogle::Apis::DataflowV1b3::StreamingSetupTask

A task which initializes part of a streaming Dataflow job. Corresponds to the JSON property streamingSetupTask


2507
2508
2509
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2507

def streaming_setup_task
  @streaming_setup_task
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2551

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @job_id = args[:job_id] if args.key?(:job_id)
  @packages = args[:packages] if args.key?(:packages)
  @map_task = args[:map_task] if args.key?(:map_task)
  @seq_map_task = args[:seq_map_task] if args.key?(:seq_map_task)
  @shell_task = args[:shell_task] if args.key?(:shell_task)
  @streaming_setup_task = args[:streaming_setup_task] if args.key?(:streaming_setup_task)
  @source_operation_task = args[:source_operation_task] if args.key?(:source_operation_task)
  @streaming_computation_task = args[:streaming_computation_task] if args.key?(:streaming_computation_task)
  @streaming_config_task = args[:streaming_config_task] if args.key?(:streaming_config_task)
  @report_status_interval = args[:report_status_interval] if args.key?(:report_status_interval)
  @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time)
  @configuration = args[:configuration] if args.key?(:configuration)
  @initial_report_index = args[:initial_report_index] if args.key?(:initial_report_index)
end