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.



3336
3337
3338
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3336

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



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

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)


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

def error_message
  @error_message
end

#versionString

Reflect current version of the resource. Corresponds to the JSON property version

Returns:

  • (String)


3328
3329
3330
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3328

def version
  @version
end

#versionsGoogle::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