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.
1246 1247 1248 |
# File 'lib/google/apis/run_v1/classes.rb', line 1246 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
1189 1190 1191 |
# File 'lib/google/apis/run_v1/classes.rb', line 1189 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
1196 1197 1198 |
# File 'lib/google/apis/run_v1/classes.rb', line 1196 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
1206 1207 1208 |
# File 'lib/google/apis/run_v1/classes.rb', line 1206 def conditions @conditions end |
#failed_count ⇒ Fixnum
Optional. The number of tasks which reached phase Failed.
Corresponds to the JSON property failedCount
1211 1212 1213 |
# File 'lib/google/apis/run_v1/classes.rb', line 1211 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
1216 1217 1218 |
# File 'lib/google/apis/run_v1/classes.rb', line 1216 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
1222 1223 1224 |
# File 'lib/google/apis/run_v1/classes.rb', line 1222 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
1227 1228 1229 |
# File 'lib/google/apis/run_v1/classes.rb', line 1227 def retried_count @retried_count end |
#running_count ⇒ Fixnum
Optional. The number of actively running tasks.
Corresponds to the JSON property runningCount
1232 1233 1234 |
# File 'lib/google/apis/run_v1/classes.rb', line 1232 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
1239 1240 1241 |
# File 'lib/google/apis/run_v1/classes.rb', line 1239 def start_time @start_time end |
#succeeded_count ⇒ Fixnum
Optional. The number of tasks which reached phase Succeeded.
Corresponds to the JSON property succeededCount
1244 1245 1246 |
# File 'lib/google/apis/run_v1/classes.rb', line 1244 def succeeded_count @succeeded_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/google/apis/run_v1/classes.rb', line 1251 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 |