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.



3317
3318
3319
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3317

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



3306
3307
3308
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3306

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)


3315
3316
3317
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3315

def error_message
  @error_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3322
3323
3324
3325
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3322

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