Class: Google::Apis::ContainerV1beta1::StatusCondition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StatusCondition

Returns a new instance of StatusCondition.



4303
4304
4305
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4303

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


4296
4297
4298
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4296

def code
  @code
end

#messageString

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

Returns:

  • (String)


4301
4302
4303
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4301

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4308
4309
4310
4311
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4308

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