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



1301
1302
1303
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1301

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)


1289
1290
1291
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1289

def current_worker_time
  @current_worker_time
end

#locationString

The location which contains the WorkItem's job. Corresponds to the JSON property location

Returns:

  • (String)


1294
1295
1296
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1294

def location
  @location
end

#requested_lease_durationString

The initial lease period. Corresponds to the JSON property requestedLeaseDuration

Returns:

  • (String)


1284
1285
1286
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1284

def requested_lease_duration
  @requested_lease_duration
end

#work_item_typesArray<String>

Filter for WorkItem type. Corresponds to the JSON property workItemTypes

Returns:

  • (Array<String>)


1299
1300
1301
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1299

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


1273
1274
1275
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1273

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)


1279
1280
1281
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1279

def worker_id
  @worker_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1306
1307
1308
1309
1310
1311
1312
1313
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1306

def update!(**args)
  @worker_capabilities = args[:worker_capabilities] if args.key?(:worker_capabilities)
  @worker_id = args[:worker_id] if args.key?(:worker_id)
  @requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration)
  @current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time)
  @location = args[:location] if args.key?(:location)
  @work_item_types = args[:work_item_types] if args.key?(:work_item_types)
end