Class: Google::Apis::DataflowV1b3::LeaseWorkItemRequest

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

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

Returns a new instance of LeaseWorkItemRequest



2286
2287
2288
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2286

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

Instance Attribute Details

#current_worker_timeString

The current timestamp at the worker. Corresponds to the JSON property currentWorkerTime

Returns:

  • (String)


2250
2251
2252
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2250

def current_worker_time
  @current_worker_time
end

#locationString

The regional endpoint that contains the WorkItem's job. Corresponds to the JSON property location

Returns:

  • (String)


2257
2258
2259
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2257

def location
  @location
end

#requested_lease_durationString

The initial lease period. Corresponds to the JSON property requestedLeaseDuration

Returns:

  • (String)


2262
2263
2264
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2262

def requested_lease_duration
  @requested_lease_duration
end

#unified_worker_requestHash<String,Object>

Untranslated bag-of-bytes WorkRequest from UnifiedWorker. Corresponds to the JSON property unifiedWorkerRequest

Returns:

  • (Hash<String,Object>)


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

def unified_worker_request
  @unified_worker_request
end

#work_item_typesArray<String>

Filter for WorkItem type. Corresponds to the JSON property workItemTypes

Returns:

  • (Array<String>)


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

def work_item_types
  @work_item_types
end

#worker_capabilitiesArray<String>

Worker capabilities. WorkItems might be limited to workers with specific capabilities. Corresponds to the JSON property workerCapabilities

Returns:

  • (Array<String>)


2278
2279
2280
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2278

def worker_capabilities
  @worker_capabilities
end

#worker_idString

Identifies the worker leasing work -- typically the ID of the virtual machine running the worker. Corresponds to the JSON property workerId

Returns:

  • (String)


2284
2285
2286
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2284

def worker_id
  @worker_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2291
2292
2293
2294
2295
2296
2297
2298
2299
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2291

def update!(**args)
  @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time)
  @location = args[:location] if args.key?(:location)
  @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