Class: Google::Apis::ContainerV1beta1::StatusCondition
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::StatusCondition
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Overview
StatusCondition describes why a cluster or a node pool has a certain status (e. g., ERROR or DEGRADED).
Instance Attribute Summary collapse
-
#canonical_code ⇒ String
Canonical code of the condition.
-
#code ⇒ String
Machine-friendly representation of the condition Deprecated.
-
#message ⇒ String
Human-friendly representation of the condition Corresponds to the JSON property
message
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StatusCondition
constructor
A new instance of StatusCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StatusCondition
Returns a new instance of StatusCondition.
4545 4546 4547 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_code ⇒ String
Canonical code of the condition.
Corresponds to the JSON property canonicalCode
4532 4533 4534 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4532 def canonical_code @canonical_code end |
#code ⇒ String
Machine-friendly representation of the condition Deprecated. Use
canonical_code instead.
Corresponds to the JSON property code
4538 4539 4540 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4538 def code @code end |
#message ⇒ String
Human-friendly representation of the condition
Corresponds to the JSON property message
4543 4544 4545 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4543 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4550 4551 4552 4553 4554 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4550 def update!(**args) @canonical_code = args[:canonical_code] if args.key?(:canonical_code) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |