Class: Google::Apis::RunV2::GoogleCloudRunV2Condition
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2Condition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Defines a status condition for a resource.
Instance Attribute Summary collapse
-
#execution_reason ⇒ String
Output only.
-
#last_transition_time ⇒ String
Last time the condition transitioned from one status to another.
-
#message ⇒ String
Human readable message indicating details about the current status.
-
#reason ⇒ String
Output only.
-
#revision_reason ⇒ String
Output only.
-
#severity ⇒ String
How to interpret failures of this condition, one of Error, Warning, Info Corresponds to the JSON property
severity
. -
#state ⇒ String
State of the condition.
-
#type ⇒ String
type is used to communicate the status of the reconciliation process.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2Condition
constructor
A new instance of GoogleCloudRunV2Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2Condition
Returns a new instance of GoogleCloudRunV2Condition.
218 219 220 |
# File 'lib/google/apis/run_v2/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#execution_reason ⇒ String
Output only. A reason for the execution condition.
Corresponds to the JSON property executionReason
178 179 180 |
# File 'lib/google/apis/run_v2/classes.rb', line 178 def execution_reason @execution_reason end |
#last_transition_time ⇒ String
Last time the condition transitioned from one status to another.
Corresponds to the JSON property lastTransitionTime
183 184 185 |
# File 'lib/google/apis/run_v2/classes.rb', line 183 def last_transition_time @last_transition_time end |
#message ⇒ String
Human readable message indicating details about the current status.
Corresponds to the JSON property message
188 189 190 |
# File 'lib/google/apis/run_v2/classes.rb', line 188 def @message end |
#reason ⇒ String
Output only. A common (service-level) reason for this condition.
Corresponds to the JSON property reason
193 194 195 |
# File 'lib/google/apis/run_v2/classes.rb', line 193 def reason @reason end |
#revision_reason ⇒ String
Output only. A reason for the revision condition.
Corresponds to the JSON property revisionReason
198 199 200 |
# File 'lib/google/apis/run_v2/classes.rb', line 198 def revision_reason @revision_reason end |
#severity ⇒ String
How to interpret failures of this condition, one of Error, Warning, Info
Corresponds to the JSON property severity
203 204 205 |
# File 'lib/google/apis/run_v2/classes.rb', line 203 def severity @severity end |
#state ⇒ String
State of the condition.
Corresponds to the JSON property state
208 209 210 |
# File 'lib/google/apis/run_v2/classes.rb', line 208 def state @state end |
#type ⇒ String
type is used to communicate the status of the reconciliation process. See also:
https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-
conditions-and-reporting Types common to all resources include: * "Ready":
True when the Resource is ready.
Corresponds to the JSON property type
216 217 218 |
# File 'lib/google/apis/run_v2/classes.rb', line 216 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 226 227 228 229 230 231 232 |
# File 'lib/google/apis/run_v2/classes.rb', line 223 def update!(**args) @execution_reason = args[:execution_reason] if args.key?(:execution_reason) @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time) @message = args[:message] if args.key?(:message) @reason = args[:reason] if args.key?(:reason) @revision_reason = args[:revision_reason] if args.key?(:revision_reason) @severity = args[:severity] if args.key?(:severity) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) end |