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.
-
#version ⇒ String
Reflect current version of the resource.
-
#versions ⇒ Google::Apis::GkeonpremV1::Versions
Versions describes the mapping of a given version to the number of machines under this version.
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.
3336 3337 3338 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3336 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
3314 3315 3316 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3314 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
3323 3324 3325 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3323 def @error_message end |
#version ⇒ String
Reflect current version of the resource.
Corresponds to the JSON property version
3328 3329 3330 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3328 def version @version end |
#versions ⇒ Google::Apis::GkeonpremV1::Versions
Versions describes the mapping of a given version to the number of machines
under this version.
Corresponds to the JSON property versions
3334 3335 3336 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3334 def versions @versions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3341 3342 3343 3344 3345 3346 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3341 def update!(**args) @conditions = args[:conditions] if args.key?(:conditions) @error_message = args[:error_message] if args.key?(:error_message) @version = args[:version] if args.key?(:version) @versions = args[:versions] if args.key?(:versions) end |