Class: Google::Apis::CoordinateV1::JobChange
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::JobChange
- 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
-
#kind ⇒ String
Identifies this object as a job change.
-
#state ⇒ Google::Apis::CoordinateV1::JobState
Current state of a job.
-
#timestamp ⇒ String
Time at which this change was applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobChange
constructor
A new instance of JobChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#kind ⇒ String
Identifies this object as a job change.
Corresponds to the JSON property kind
243 244 245 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 243 def kind @kind end |
#state ⇒ Google::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 |
#timestamp ⇒ String
Time at which this change was applied.
Corresponds to the JSON property timestamp
253 254 255 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 253 def @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 |