Class: Google::Apis::RunV1::ExecutionStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::ExecutionStatus
- 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
ExecutionStatus represents the current state of an Execution.
Instance Attribute Summary collapse
-
#cancelled_count ⇒ Fixnum
Optional.
-
#completion_time ⇒ String
Optional.
-
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Optional.
-
#failed_count ⇒ Fixnum
Optional.
-
#log_uri ⇒ String
Optional.
-
#observed_generation ⇒ Fixnum
Optional.
-
#retried_count ⇒ Fixnum
Optional.
-
#running_count ⇒ Fixnum
Optional.
-
#start_time ⇒ String
Optional.
-
#succeeded_count ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionStatus
constructor
A new instance of ExecutionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionStatus
Returns a new instance of ExecutionStatus.
1171 1172 1173 |
# File 'lib/google/apis/run_v1/classes.rb', line 1171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cancelled_count ⇒ Fixnum
Optional. The number of tasks which reached phase Cancelled.
Corresponds to the JSON property cancelledCount
1114 1115 1116 |
# File 'lib/google/apis/run_v1/classes.rb', line 1114 def cancelled_count @cancelled_count end |
#completion_time ⇒ String
Optional. Represents the time that the execution 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
1121 1122 1123 |
# File 'lib/google/apis/run_v1/classes.rb', line 1121 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. Execution-specific conditions include: * ResourcesAvailable
:
True
when underlying resources have been provisioned. * Started
: True
when the execution has started to execute. * Completed
: True
when the
execution has succeeded. False
when the execution has failed.
Corresponds to the JSON property conditions
1131 1132 1133 |
# File 'lib/google/apis/run_v1/classes.rb', line 1131 def conditions @conditions end |
#failed_count ⇒ Fixnum
Optional. The number of tasks which reached phase Failed.
Corresponds to the JSON property failedCount
1136 1137 1138 |
# File 'lib/google/apis/run_v1/classes.rb', line 1136 def failed_count @failed_count end |
#log_uri ⇒ String
Optional. URI where logs for this execution can be found in Cloud Console.
Corresponds to the JSON property logUri
1141 1142 1143 |
# File 'lib/google/apis/run_v1/classes.rb', line 1141 def log_uri @log_uri end |
#observed_generation ⇒ Fixnum
Optional. The 'generation' of the execution that was last processed by the
controller.
Corresponds to the JSON property observedGeneration
1147 1148 1149 |
# File 'lib/google/apis/run_v1/classes.rb', line 1147 def observed_generation @observed_generation end |
#retried_count ⇒ Fixnum
Optional. The number of tasks which have retried at least once.
Corresponds to the JSON property retriedCount
1152 1153 1154 |
# File 'lib/google/apis/run_v1/classes.rb', line 1152 def retried_count @retried_count end |
#running_count ⇒ Fixnum
Optional. The number of actively running tasks.
Corresponds to the JSON property runningCount
1157 1158 1159 |
# File 'lib/google/apis/run_v1/classes.rb', line 1157 def running_count @running_count end |
#start_time ⇒ String
Optional. Represents the time that the execution 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
1164 1165 1166 |
# File 'lib/google/apis/run_v1/classes.rb', line 1164 def start_time @start_time end |
#succeeded_count ⇒ Fixnum
Optional. The number of tasks which reached phase Succeeded.
Corresponds to the JSON property succeededCount
1169 1170 1171 |
# File 'lib/google/apis/run_v1/classes.rb', line 1169 def succeeded_count @succeeded_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/google/apis/run_v1/classes.rb', line 1176 def update!(**args) @cancelled_count = args[:cancelled_count] if args.key?(:cancelled_count) @completion_time = args[:completion_time] if args.key?(:completion_time) @conditions = args[:conditions] if args.key?(:conditions) @failed_count = args[:failed_count] if args.key?(:failed_count) @log_uri = args[:log_uri] if args.key?(:log_uri) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @retried_count = args[:retried_count] if args.key?(:retried_count) @running_count = args[:running_count] if args.key?(:running_count) @start_time = args[:start_time] if args.key?(:start_time) @succeeded_count = args[:succeeded_count] if args.key?(:succeeded_count) end |