Class: Google::Apis::CoordinateV1::Job

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

A job.

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) ⇒ Job

Returns a new instance of Job.



223
224
225
# File 'generated/google/apis/coordinate_v1/classes.rb', line 223

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

Instance Attribute Details

#idString

Job id. Corresponds to the JSON property id

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/coordinate_v1/classes.rb', line 205

def id
  @id
end

#job_changeArray<Google::Apis::CoordinateV1::JobChange>

List of job changes since it was created. The first change corresponds to the state of the job when it was created. Corresponds to the JSON property jobChange



211
212
213
# File 'generated/google/apis/coordinate_v1/classes.rb', line 211

def job_change
  @job_change
end

#kindString

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

Returns:

  • (String)


216
217
218
# File 'generated/google/apis/coordinate_v1/classes.rb', line 216

def kind
  @kind
end

#stateGoogle::Apis::CoordinateV1::JobState

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



221
222
223
# File 'generated/google/apis/coordinate_v1/classes.rb', line 221

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



228
229
230
231
232
233
# File 'generated/google/apis/coordinate_v1/classes.rb', line 228

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