Class: Google::Apis::DataflowV1b3::WorkerDetails

Inherits:
Object
  • Object
show all
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

Information about a worker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkerDetails

Returns a new instance of WorkerDetails.



6481
6482
6483
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6481

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

Instance Attribute Details

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

Work items processed by this worker, sorted by time. Corresponds to the JSON property workItems



6474
6475
6476
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6474

def work_items
  @work_items
end

#worker_nameString

Name of this worker Corresponds to the JSON property workerName

Returns:

  • (String)


6479
6480
6481
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6479

def worker_name
  @worker_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6486
6487
6488
6489
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6486

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