Class: Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest

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 report the status of 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) ⇒ ReportWorkItemStatusRequest

Returns a new instance of ReportWorkItemStatusRequest



3082
3083
3084
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3082

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)


3060
3061
3062
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3060

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)


3065
3066
3067
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3065

def location
  @location
end

#work_item_statusesArray<Google::Apis::DataflowV1b3::WorkItemStatus>

The order is unimportant, except that the order of the WorkItemServiceState messages in the ReportWorkItemStatusResponse corresponds to the order of WorkItemStatus messages here. Corresponds to the JSON property workItemStatuses



3072
3073
3074
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3072

def work_item_statuses
  @work_item_statuses
end

#worker_idString

The ID of the worker reporting the WorkItem status. If this does not match the ID of the worker which the Dataflow service believes currently has the lease on the WorkItem, the report will be dropped (with an error response). Corresponds to the JSON property workerId

Returns:

  • (String)


3080
3081
3082
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3080

def worker_id
  @worker_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3087
3088
3089
3090
3091
3092
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3087

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