Class: Google::Apis::GkeonpremV1::ResourceCondition

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

ResourceCondition provides a standard mechanism for higher-level status reporting from controller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceCondition

Returns a new instance of ResourceCondition.



3496
3497
3498
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3496

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

Instance Attribute Details

#last_transition_timeString

Last time the condition transit from one status to another. Corresponds to the JSON property lastTransitionTime

Returns:

  • (String)


3473
3474
3475
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3473

def last_transition_time
  @last_transition_time
end

#messageString

Human-readable message indicating details about last transition. Corresponds to the JSON property message

Returns:

  • (String)


3478
3479
3480
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3478

def message
  @message
end

#reasonString

Machine-readable message indicating details about last transition. Corresponds to the JSON property reason

Returns:

  • (String)


3483
3484
3485
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3483

def reason
  @reason
end

#stateString

state of the condition. Corresponds to the JSON property state

Returns:

  • (String)


3488
3489
3490
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3488

def state
  @state
end

#typeString

Type of the condition. (e.g., ClusterRunning, NodePoolRunning or ServerSidePreflightReady) Corresponds to the JSON property type

Returns:

  • (String)


3494
3495
3496
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3494

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3501
3502
3503
3504
3505
3506
3507
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3501

def update!(**args)
  @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end