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
-
#code ⇒ String
Machine-friendly representation of the condition Corresponds to the JSON property
code. -
#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.
4029 4030 4031 |
# File 'lib/google/apis/container_v1/classes.rb', line 4029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Machine-friendly representation of the condition
Corresponds to the JSON property code
4022 4023 4024 |
# File 'lib/google/apis/container_v1/classes.rb', line 4022 def code @code end |
#message ⇒ String
Human-friendly representation of the condition
Corresponds to the JSON property message
4027 4028 4029 |
# File 'lib/google/apis/container_v1/classes.rb', line 4027 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4034 4035 4036 4037 |
# File 'lib/google/apis/container_v1/classes.rb', line 4034 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |