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.
1163 1164 1165 |
# File 'lib/google/apis/run_v1/classes.rb', line 1163 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
1106 1107 1108 |
# File 'lib/google/apis/run_v1/classes.rb', line 1106 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
1113 1114 1115 |
# File 'lib/google/apis/run_v1/classes.rb', line 1113 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
1123 1124 1125 |
# File 'lib/google/apis/run_v1/classes.rb', line 1123 def conditions @conditions end |
#failed_count ⇒ Fixnum
Optional. The number of tasks which reached phase Failed.
Corresponds to the JSON property failedCount
1128 1129 1130 |
# File 'lib/google/apis/run_v1/classes.rb', line 1128 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
1133 1134 1135 |
# File 'lib/google/apis/run_v1/classes.rb', line 1133 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
1139 1140 1141 |
# File 'lib/google/apis/run_v1/classes.rb', line 1139 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
1144 1145 1146 |
# File 'lib/google/apis/run_v1/classes.rb', line 1144 def retried_count @retried_count end |
#running_count ⇒ Fixnum
Optional. The number of actively running tasks.
Corresponds to the JSON property runningCount
1149 1150 1151 |
# File 'lib/google/apis/run_v1/classes.rb', line 1149 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
1156 1157 1158 |
# File 'lib/google/apis/run_v1/classes.rb', line 1156 def start_time @start_time end |
#succeeded_count ⇒ Fixnum
Optional. The number of tasks which reached phase Succeeded.
Corresponds to the JSON property succeededCount
1161 1162 1163 |
# File 'lib/google/apis/run_v1/classes.rb', line 1161 def succeeded_count @succeeded_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 |
# File 'lib/google/apis/run_v1/classes.rb', line 1168 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 |