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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LeaseWorkItemResponse

Returns a new instance of LeaseWorkItemResponse



2266
2267
2268
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2266

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

Instance Attribute Details

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

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



2264
2265
2266
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2264

def work_items
  @work_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2271
2272
2273
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2271

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