Class: Google::Apis::DataflowV1b3::LeaseWorkItemResponse

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

Response to a request to lease WorkItems.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LeaseWorkItemResponse

Returns a new instance of LeaseWorkItemResponse.



2713
2714
2715
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2713

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

Instance Attribute Details

#unified_worker_responseHash<String,Object>

Untranslated bag-of-bytes WorkResponse for UnifiedWorker. Corresponds to the JSON property unifiedWorkerResponse

Returns:

  • (Hash<String,Object>)


2706
2707
2708
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2706

def unified_worker_response
  @unified_worker_response
end

#work_itemsArray<Google::Apis::DataflowV1b3::WorkItem>

A list of the leased WorkItems. Corresponds to the JSON property workItems



2711
2712
2713
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2711

def work_items
  @work_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2718
2719
2720
2721
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2718

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