Class: Google::Apis::ContainerV1::StatusCondition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

StatusCondition describes why a cluster or a node pool has a certain status (e. g., ERROR or DEGRADED).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StatusCondition

Returns a new instance of StatusCondition.



3971
3972
3973
# File 'generated/google/apis/container_v1/classes.rb', line 3971

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

Instance Attribute Details

#codeString

Machine-friendly representation of the condition Corresponds to the JSON property code

Returns:

  • (String)


3964
3965
3966
# File 'generated/google/apis/container_v1/classes.rb', line 3964

def code
  @code
end

#messageString

Human-friendly representation of the condition Corresponds to the JSON property message

Returns:

  • (String)


3969
3970
3971
# File 'generated/google/apis/container_v1/classes.rb', line 3969

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3976
3977
3978
3979
# File 'generated/google/apis/container_v1/classes.rb', line 3976

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