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
-
#domain_mapping_reason ⇒ String
A reason for the domain mapping condition.
-
#execution_reason ⇒ String
A reason for the execution condition.
-
#internal_reason ⇒ String
A reason for the internal condition.
-
#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
A common (service-level) reason for this condition.
-
#revision_reason ⇒ String
A reason for the revision condition.
-
#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.
141 142 143 |
# File 'lib/google/apis/run_v2/classes.rb', line 141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain_mapping_reason ⇒ String
A reason for the domain mapping condition.
Corresponds to the JSON property domainMappingReason
91 92 93 |
# File 'lib/google/apis/run_v2/classes.rb', line 91 def domain_mapping_reason @domain_mapping_reason end |
#execution_reason ⇒ String
A reason for the execution condition.
Corresponds to the JSON property executionReason
96 97 98 |
# File 'lib/google/apis/run_v2/classes.rb', line 96 def execution_reason @execution_reason end |
#internal_reason ⇒ String
A reason for the internal condition.
Corresponds to the JSON property internalReason
101 102 103 |
# File 'lib/google/apis/run_v2/classes.rb', line 101 def internal_reason @internal_reason end |
#last_transition_time ⇒ String
Last time the condition transitioned from one status to another.
Corresponds to the JSON property lastTransitionTime
106 107 108 |
# File 'lib/google/apis/run_v2/classes.rb', line 106 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
111 112 113 |
# File 'lib/google/apis/run_v2/classes.rb', line 111 def @message end |
#reason ⇒ String
A common (service-level) reason for this condition.
Corresponds to the JSON property reason
116 117 118 |
# File 'lib/google/apis/run_v2/classes.rb', line 116 def reason @reason end |
#revision_reason ⇒ String
A reason for the revision condition.
Corresponds to the JSON property revisionReason
121 122 123 |
# File 'lib/google/apis/run_v2/classes.rb', line 121 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
126 127 128 |
# File 'lib/google/apis/run_v2/classes.rb', line 126 def severity @severity end |
#state ⇒ String
State of the condition.
Corresponds to the JSON property state
131 132 133 |
# File 'lib/google/apis/run_v2/classes.rb', line 131 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
139 140 141 |
# File 'lib/google/apis/run_v2/classes.rb', line 139 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/google/apis/run_v2/classes.rb', line 146 def update!(**args) @domain_mapping_reason = args[:domain_mapping_reason] if args.key?(:domain_mapping_reason) @execution_reason = args[:execution_reason] if args.key?(:execution_reason) @internal_reason = args[:internal_reason] if args.key?(:internal_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 |