Class: Google::Apis::DataflowV1b3::LeaseWorkItemRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::LeaseWorkItemRequest
 
- 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
- 
  
    
      #current_worker_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current timestamp at the worker. 
- 
  
    
      #location  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The location which contains the WorkItem's job. 
- 
  
    
      #requested_lease_duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The initial lease period. 
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LeaseWorkItemRequest
Returns a new instance of LeaseWorkItemRequest
| 2035 2036 2037 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2035 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
| 2006 2007 2008 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2006 def current_worker_time @current_worker_time end | 
#location ⇒ String
The location which contains the WorkItem's job.
Corresponds to the JSON property location
| 2011 2012 2013 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2011 def location @location end | 
#requested_lease_duration ⇒ String
The initial lease period.
Corresponds to the JSON property requestedLeaseDuration
| 2016 2017 2018 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2016 def requested_lease_duration @requested_lease_duration end | 
#work_item_types ⇒ Array<String>
Filter for WorkItem type.
Corresponds to the JSON property workItemTypes
| 2021 2022 2023 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2021 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
| 2027 2028 2029 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2027 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
| 2033 2034 2035 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2033 def worker_id @worker_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2040 2041 2042 2043 2044 2045 2046 2047 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2040 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) @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 |