Class: Google::Apis::RunV1alpha1::JobStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobStatus

Returns a new instance of JobStatus.



928
929
930
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 928

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

Instance Attribute Details

#activeFixnum

Optional. The number of actively running instances. +optional Corresponds to the JSON property active

Returns:

  • (Fixnum)


876
877
878
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 876

def active
  @active
end

#completion_timeString

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

Returns:

  • (String)


883
884
885
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 883

def completion_time
  @completion_time
end

#conditionsArray<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



890
891
892
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 890

def conditions
  @conditions
end

#failedFixnum

Optional. The number of instances which reached phase Failed. +optional Corresponds to the JSON property failed

Returns:

  • (Fixnum)


895
896
897
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 895

def failed
  @failed
end

#image_digestString

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

Returns:

  • (String)


903
904
905
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 903

def image_digest
  @image_digest
end

#instancesArray<Google::Apis::RunV1alpha1::InstanceStatus>

Optional. Status of completed, failed, and running instances. +optional Corresponds to the JSON property instances



908
909
910
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 908

def instances
  @instances
end

#observed_generationFixnum

Optional. The 'generation' of the job that was last processed by the controller. Corresponds to the JSON property observedGeneration

Returns:

  • (Fixnum)


914
915
916
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 914

def observed_generation
  @observed_generation
end

#start_timeString

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

Returns:

  • (String)


921
922
923
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 921

def start_time
  @start_time
end

#succeededFixnum

Optional. The number of instances which reached phase Succeeded. +optional Corresponds to the JSON property succeeded

Returns:

  • (Fixnum)


926
927
928
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 926

def succeeded
  @succeeded
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
937
938
939
940
941
942
943
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 933

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