Class: Google::Apis::CoordinateV1::Job
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::Job
- 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
-
#id ⇒ String
Job id.
-
#job_change ⇒ Array<Google::Apis::CoordinateV1::JobChange>
List of job changes since it was created.
-
#kind ⇒ String
Identifies this object as a job.
-
#state ⇒ Google::Apis::CoordinateV1::JobState
Current state of a job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
-
#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) ⇒ 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
#id ⇒ String
Job id.
Corresponds to the JSON property id
205 206 207 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 205 def id @id end |
#job_change ⇒ Array<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 |
#kind ⇒ String
Identifies this object as a job.
Corresponds to the JSON property kind
216 217 218 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 216 def kind @kind end |
#state ⇒ Google::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 |