Class: Google::Apis::GkeonpremV1::ResourceStatus
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::ResourceStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
ResourceStatus describes why a cluster or node pool has a certain status. (e.g. , ERROR or DEGRADED).
Instance Attribute Summary collapse
-
#conditions ⇒ Array<Google::Apis::GkeonpremV1::ResourceCondition>
ResourceCondition provide a standard mechanism for higher-level status reporting from controller.
-
#error_message ⇒ String
Human-friendly representation of the error message from controller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceStatus
constructor
A new instance of ResourceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceStatus
Returns a new instance of ResourceStatus.
3236 3237 3238 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conditions ⇒ Array<Google::Apis::GkeonpremV1::ResourceCondition>
ResourceCondition provide a standard mechanism for higher-level status
reporting from controller.
Corresponds to the JSON property conditions
3225 3226 3227 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3225 def conditions @conditions end |
#error_message ⇒ String
Human-friendly representation of the error message from controller. The error
message can be temporary as the controller controller creates a cluster or
node pool. If the error message persists for a longer period of time, it can
be used to surface error message to indicate real problems requiring user
intervention.
Corresponds to the JSON property errorMessage
3234 3235 3236 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3234 def @error_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3241 3242 3243 3244 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3241 def update!(**args) @conditions = args[:conditions] if args.key?(:conditions) @error_message = args[:error_message] if args.key?(:error_message) end |