Class: Google::Apis::RunV1alpha1::JobStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::JobStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
JobStatus represents the current state of a Job.
Instance Attribute Summary collapse
-
#active ⇒ Fixnum
Optional.
-
#completion_time ⇒ String
Optional.
-
#conditions ⇒ Array<Google::Apis::RunV1alpha1::JobCondition>
Optional.
-
#failed ⇒ Fixnum
Optional.
-
#image_digest ⇒ String
Optional.
-
#instances ⇒ Array<Google::Apis::RunV1alpha1::InstanceStatus>
Optional.
-
#observed_generation ⇒ Fixnum
Optional.
-
#start_time ⇒ String
Optional.
-
#succeeded ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobStatus
constructor
A new instance of JobStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobStatus
Returns a new instance of JobStatus.
2417 2418 2419 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2417 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Fixnum
Optional. The number of actively running instances. +optional
Corresponds to the JSON property active
2365 2366 2367 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2365 def active @active end |
#completion_time ⇒ String
Optional. Represents time when the job was completed. It is not guaranteed to
be set in happens-before order across separate operations. It is represented
in RFC3339 form and is in UTC. +optional
Corresponds to the JSON property completionTime
2372 2373 2374 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2372 def completion_time @completion_time end |
#conditions ⇒ Array<Google::Apis::RunV1alpha1::JobCondition>
Optional. The latest available observations of a job's current state. More
info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
completion/ +optional
Corresponds to the JSON property conditions
2379 2380 2381 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2379 def conditions @conditions end |
#failed ⇒ Fixnum
Optional. The number of instances which reached phase Failed. +optional
Corresponds to the JSON property failed
2384 2385 2386 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2384 def failed @failed end |
#image_digest ⇒ String
Optional. ImageDigest holds the resolved digest for the image specified within
.Spec.Template.Spec.Container.Image. The digest is resolved during the
creation of the Job. This field holds the digest value regardless of whether a
tag or digest was originally specified in the Container object.
Corresponds to the JSON property imageDigest
2392 2393 2394 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2392 def image_digest @image_digest end |
#instances ⇒ Array<Google::Apis::RunV1alpha1::InstanceStatus>
Optional. Status of completed, failed, and running instances. +optional
Corresponds to the JSON property instances
2397 2398 2399 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2397 def instances @instances end |
#observed_generation ⇒ Fixnum
Optional. The 'generation' of the job that was last processed by the
controller.
Corresponds to the JSON property observedGeneration
2403 2404 2405 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2403 def observed_generation @observed_generation end |
#start_time ⇒ String
Optional. Represents time when the job was acknowledged by the job controller.
It is not guaranteed to be set in happens-before order across separate
operations. It is represented in RFC3339 form and is in UTC. +optional
Corresponds to the JSON property startTime
2410 2411 2412 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2410 def start_time @start_time end |
#succeeded ⇒ Fixnum
Optional. The number of instances which reached phase Succeeded. +optional
Corresponds to the JSON property succeeded
2415 2416 2417 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2415 def succeeded @succeeded end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2422 def update!(**args) @active = args[:active] if args.key?(:active) @completion_time = args[:completion_time] if args.key?(:completion_time) @conditions = args[:conditions] if args.key?(:conditions) @failed = args[:failed] if args.key?(:failed) @image_digest = args[:image_digest] if args.key?(:image_digest) @instances = args[:instances] if args.key?(:instances) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @start_time = args[:start_time] if args.key?(:start_time) @succeeded = args[:succeeded] if args.key?(:succeeded) end |