Class: Google::Apis::RunV1alpha1::InstanceStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::InstanceStatus
- 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
Instance represents the status of an instance of a Job.
Instance Attribute Summary collapse
-
#completion_time ⇒ String
Optional.
-
#failed ⇒ Fixnum
Optional.
-
#index ⇒ Fixnum
Required.
-
#last_attempt_result ⇒ Google::Apis::RunV1alpha1::InstanceAttemptResult
Result of an instance attempt.
-
#last_exit_code ⇒ Fixnum
Optional.
-
#restarted ⇒ Fixnum
Optional.
-
#start_time ⇒ String
Optional.
-
#succeeded ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceStatus
constructor
A new instance of InstanceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceStatus
Returns a new instance of InstanceStatus.
768 769 770 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completion_time ⇒ String
Optional. Represents time when the instance 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
727 728 729 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 727 def completion_time @completion_time end |
#failed ⇒ Fixnum
Optional. The number of times this instance exited with code > 0; +optional
Corresponds to the JSON property failed
732 733 734 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 732 def failed @failed end |
#index ⇒ Fixnum
Required. Index of the instance, unique per Job, and beginning at 0.
Corresponds to the JSON property index
737 738 739 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 737 def index @index end |
#last_attempt_result ⇒ Google::Apis::RunV1alpha1::InstanceAttemptResult
Result of an instance attempt.
Corresponds to the JSON property lastAttemptResult
742 743 744 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 742 def last_attempt_result @last_attempt_result end |
#last_exit_code ⇒ Fixnum
Optional. Last exit code seen for this instance. +optional
Corresponds to the JSON property lastExitCode
747 748 749 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 747 def last_exit_code @last_exit_code end |
#restarted ⇒ Fixnum
Optional. The number of times this instance was restarted. Instances are
restarted according the restartPolicy configured in the Job template. +
optional
Corresponds to the JSON property restarted
754 755 756 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 754 def restarted @restarted end |
#start_time ⇒ String
Optional. Represents time when the instance was created 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
761 762 763 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 761 def start_time @start_time end |
#succeeded ⇒ Fixnum
Optional. The number of times this instance exited with code == 0. +optional
Corresponds to the JSON property succeeded
766 767 768 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 766 def succeeded @succeeded end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
773 774 775 776 777 778 779 780 781 782 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 773 def update!(**args) @completion_time = args[:completion_time] if args.key?(:completion_time) @failed = args[:failed] if args.key?(:failed) @index = args[:index] if args.key?(:index) @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result) @last_exit_code = args[:last_exit_code] if args.key?(:last_exit_code) @restarted = args[:restarted] if args.key?(:restarted) @start_time = args[:start_time] if args.key?(:start_time) @succeeded = args[:succeeded] if args.key?(:succeeded) end |