Class: Google::Apis::ContainerV1::StatusCondition
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::StatusCondition
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/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.
7400 7401 7402 |
# File 'lib/google/apis/container_v1/classes.rb', line 7400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_code ⇒ String
Canonical code of the condition.
Corresponds to the JSON property canonicalCode
7387 7388 7389 |
# File 'lib/google/apis/container_v1/classes.rb', line 7387 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
7393 7394 7395 |
# File 'lib/google/apis/container_v1/classes.rb', line 7393 def code @code end |
#message ⇒ String
Human-friendly representation of the condition
Corresponds to the JSON property message
7398 7399 7400 |
# File 'lib/google/apis/container_v1/classes.rb', line 7398 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7405 7406 7407 7408 7409 |
# File 'lib/google/apis/container_v1/classes.rb', line 7405 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 |