Class: Google::Apis::CoordinateV1::JobChange

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb

Overview

Change to a job. For example assigning the job to a different worker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobChange

Returns a new instance of JobChange.



255
256
257
# File 'generated/google/apis/coordinate_v1/classes.rb', line 255

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

Instance Attribute Details

#kindString

Identifies this object as a job change. Corresponds to the JSON property kind

Returns:

  • (String)


243
244
245
# File 'generated/google/apis/coordinate_v1/classes.rb', line 243

def kind
  @kind
end

#stateGoogle::Apis::CoordinateV1::JobState

Current state of a job. Corresponds to the JSON property state



248
249
250
# File 'generated/google/apis/coordinate_v1/classes.rb', line 248

def state
  @state
end

#timestampString

Time at which this change was applied. Corresponds to the JSON property timestamp

Returns:

  • (String)


253
254
255
# File 'generated/google/apis/coordinate_v1/classes.rb', line 253

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
# File 'generated/google/apis/coordinate_v1/classes.rb', line 260

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @state = args[:state] if args.key?(:state)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end