Class: Google::Apis::DataflowV1b3::LeaseWorkItemResponse
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::LeaseWorkItemResponse
- 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
Response to a request to lease WorkItems.
Instance Attribute Summary collapse
-
#unified_worker_response ⇒ Hash<String,Object>
Untranslated bag-of-bytes WorkResponse for UnifiedWorker.
-
#work_items ⇒ Array<Google::Apis::DataflowV1b3::WorkItem>
A list of the leased WorkItems.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LeaseWorkItemResponse
constructor
A new instance of LeaseWorkItemResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LeaseWorkItemResponse
Returns a new instance of LeaseWorkItemResponse.
2822 2823 2824 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unified_worker_response ⇒ Hash<String,Object>
Untranslated bag-of-bytes WorkResponse for UnifiedWorker.
Corresponds to the JSON property unifiedWorkerResponse
2815 2816 2817 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2815 def unified_worker_response @unified_worker_response end |
#work_items ⇒ Array<Google::Apis::DataflowV1b3::WorkItem>
A list of the leased WorkItems.
Corresponds to the JSON property workItems
2820 2821 2822 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2820 def work_items @work_items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2827 2828 2829 2830 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2827 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 |