Class: Google::Apis::GkeonpremV1::ResourceStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatus

Returns a new instance of ResourceStatus.



3292
3293
3294
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3292

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conditionsArray<Google::Apis::GkeonpremV1::ResourceCondition>

ResourceCondition provide a standard mechanism for higher-level status reporting from controller. Corresponds to the JSON property conditions



3281
3282
3283
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3281

def conditions
  @conditions
end

#error_messageString

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

Returns:

  • (String)


3290
3291
3292
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3290

def error_message
  @error_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3297
3298
3299
3300
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3297

def update!(**args)
  @conditions = args[:conditions] if args.key?(:conditions)
  @error_message = args[:error_message] if args.key?(:error_message)
end