Class: Google::Apis::RunV1::TaskStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::TaskStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
TaskStatus represents the status of a task.
Instance Attribute Summary collapse
-
#completion_time ⇒ String
Optional.
-
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Optional.
-
#index ⇒ Fixnum
Required.
-
#last_attempt_result ⇒ Google::Apis::RunV1::TaskAttemptResult
Result of a task attempt.
-
#log_uri ⇒ String
Optional.
-
#observed_generation ⇒ Fixnum
Optional.
-
#retried ⇒ Fixnum
Optional.
-
#start_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskStatus
constructor
A new instance of TaskStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskStatus
Returns a new instance of TaskStatus.
3884 3885 3886 |
# File 'lib/google/apis/run_v1/classes.rb', line 3884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completion_time ⇒ String
Optional. Represents time when the task 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.
Corresponds to the JSON property completionTime
3839 3840 3841 |
# File 'lib/google/apis/run_v1/classes.rb', line 3839 def completion_time @completion_time end |
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Optional. Conditions communicate information about ongoing/complete
reconciliation processes that bring the "spec" inline with the observed state
of the world. Task-specific conditions include: * Started
: True
when the
task has started to execute. * Completed
: True
when the task has succeeded.
False
when the task has failed.
Corresponds to the JSON property conditions
3848 3849 3850 |
# File 'lib/google/apis/run_v1/classes.rb', line 3848 def conditions @conditions end |
#index ⇒ Fixnum
Required. Index of the task, unique per execution, and beginning at 0.
Corresponds to the JSON property index
3853 3854 3855 |
# File 'lib/google/apis/run_v1/classes.rb', line 3853 def index @index end |
#last_attempt_result ⇒ Google::Apis::RunV1::TaskAttemptResult
Result of a task attempt.
Corresponds to the JSON property lastAttemptResult
3858 3859 3860 |
# File 'lib/google/apis/run_v1/classes.rb', line 3858 def last_attempt_result @last_attempt_result end |
#log_uri ⇒ String
Optional. URI where logs for this task can be found in Cloud Console.
Corresponds to the JSON property logUri
3863 3864 3865 |
# File 'lib/google/apis/run_v1/classes.rb', line 3863 def log_uri @log_uri end |
#observed_generation ⇒ Fixnum
Optional. The 'generation' of the task that was last processed by the
controller.
Corresponds to the JSON property observedGeneration
3869 3870 3871 |
# File 'lib/google/apis/run_v1/classes.rb', line 3869 def observed_generation @observed_generation end |
#retried ⇒ Fixnum
Optional. The number of times this task was retried. Instances are retried
when they fail up to the maxRetries limit.
Corresponds to the JSON property retried
3875 3876 3877 |
# File 'lib/google/apis/run_v1/classes.rb', line 3875 def retried @retried end |
#start_time ⇒ String
Optional. Represents time when the task started to run. It is not guaranteed
to be set in happens-before order across separate operations. It is
represented in RFC3339 form and is in UTC.
Corresponds to the JSON property startTime
3882 3883 3884 |
# File 'lib/google/apis/run_v1/classes.rb', line 3882 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 |
# File 'lib/google/apis/run_v1/classes.rb', line 3889 def update!(**args) @completion_time = args[:completion_time] if args.key?(:completion_time) @conditions = args[:conditions] if args.key?(:conditions) @index = args[:index] if args.key?(:index) @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result) @log_uri = args[:log_uri] if args.key?(:log_uri) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @retried = args[:retried] if args.key?(:retried) @start_time = args[:start_time] if args.key?(:start_time) end |