Class: Google::Apis::DataflowV1b3::LeaseWorkItemRequest
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::LeaseWorkItemRequest
- 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
Request to lease WorkItems.
Instance Attribute Summary collapse
-
#current_worker_time ⇒ String
The current timestamp at the worker.
-
#location ⇒ String
The regional endpoint that contains the WorkItem's job.
-
#project_number ⇒ Fixnum
Optional.
-
#requested_lease_duration ⇒ String
The initial lease period.
-
#unified_worker_request ⇒ Hash<String,Object>
Untranslated bag-of-bytes WorkRequest from UnifiedWorker.
-
#work_item_types ⇒ Array<String>
Filter for WorkItem type.
-
#worker_capabilities ⇒ Array<String>
Worker capabilities.
-
#worker_id ⇒ String
Identifies the worker leasing work -- typically the ID of the virtual machine running the worker.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LeaseWorkItemRequest
constructor
A new instance of LeaseWorkItemRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LeaseWorkItemRequest
Returns a new instance of LeaseWorkItemRequest.
3167 3168 3169 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_worker_time ⇒ String
The current timestamp at the worker.
Corresponds to the JSON property currentWorkerTime
3127 3128 3129 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3127 def current_worker_time @current_worker_time end |
#location ⇒ String
The regional endpoint that contains the WorkItem's job.
Corresponds to the JSON property location
3133 3134 3135 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3133 def location @location end |
#project_number ⇒ Fixnum
Optional. The project number of the project this worker belongs to.
Corresponds to the JSON property projectNumber
3138 3139 3140 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3138 def project_number @project_number end |
#requested_lease_duration ⇒ String
The initial lease period.
Corresponds to the JSON property requestedLeaseDuration
3143 3144 3145 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3143 def requested_lease_duration @requested_lease_duration end |
#unified_worker_request ⇒ Hash<String,Object>
Untranslated bag-of-bytes WorkRequest from UnifiedWorker.
Corresponds to the JSON property unifiedWorkerRequest
3148 3149 3150 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3148 def unified_worker_request @unified_worker_request end |
#work_item_types ⇒ Array<String>
Filter for WorkItem type.
Corresponds to the JSON property workItemTypes
3153 3154 3155 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3153 def work_item_types @work_item_types end |
#worker_capabilities ⇒ Array<String>
Worker capabilities. WorkItems might be limited to workers with specific
capabilities.
Corresponds to the JSON property workerCapabilities
3159 3160 3161 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3159 def worker_capabilities @worker_capabilities end |
#worker_id ⇒ String
Identifies the worker leasing work -- typically the ID of the virtual machine
running the worker.
Corresponds to the JSON property workerId
3165 3166 3167 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3165 def worker_id @worker_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3172 def update!(**args) @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time) @location = args[:location] if args.key?(:location) @project_number = args[:project_number] if args.key?(:project_number) @requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration) @unified_worker_request = args[:unified_worker_request] if args.key?(:unified_worker_request) @work_item_types = args[:work_item_types] if args.key?(:work_item_types) @worker_capabilities = args[:worker_capabilities] if args.key?(:worker_capabilities) @worker_id = args[:worker_id] if args.key?(:worker_id) end |