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

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



5046
5047
5048
# File 'lib/google/apis/container_v1/classes.rb', line 5046

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

Instance Attribute Details

#canonical_codeString

Canonical code of the condition. Corresponds to the JSON property canonicalCode

Returns:

  • (String)


5033
5034
5035
# File 'lib/google/apis/container_v1/classes.rb', line 5033

def canonical_code
  @canonical_code
end

#codeString

Machine-friendly representation of the condition Deprecated. Use canonical_code instead. Corresponds to the JSON property code

Returns:

  • (String)


5039
5040
5041
# File 'lib/google/apis/container_v1/classes.rb', line 5039

def code
  @code
end

#messageString

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

Returns:

  • (String)


5044
5045
5046
# File 'lib/google/apis/container_v1/classes.rb', line 5044

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5051
5052
5053
5054
5055
# File 'lib/google/apis/container_v1/classes.rb', line 5051

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