Class: Google::Apis::GkeonpremV1::ResourceCondition
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::ResourceCondition
- 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
-
#last_transition_time ⇒ String
Last time the condition transit from one status to another.
-
#message ⇒ String
Human-readable message indicating details about last transition.
-
#reason ⇒ String
Machine-readable message indicating details about last transition.
-
#state ⇒ String
state of the condition.
-
#type ⇒ String
Type of the condition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceCondition
constructor
A new instance of ResourceCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceCondition
Returns a new instance of ResourceCondition.
3054 3055 3056 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3054 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_transition_time ⇒ String
Last time the condition transit from one status to another.
Corresponds to the JSON property lastTransitionTime
3031 3032 3033 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3031 def last_transition_time @last_transition_time end |
#message ⇒ String
Human-readable message indicating details about last transition.
Corresponds to the JSON property message
3036 3037 3038 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3036 def @message end |
#reason ⇒ String
Machine-readable message indicating details about last transition.
Corresponds to the JSON property reason
3041 3042 3043 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3041 def reason @reason end |
#state ⇒ String
state of the condition.
Corresponds to the JSON property state
3046 3047 3048 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3046 def state @state end |
#type ⇒ String
Type of the condition. (e.g., ClusterRunning, NodePoolRunning or
ServerSidePreflightReady)
Corresponds to the JSON property type
3052 3053 3054 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3052 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3059 3060 3061 3062 3063 3064 3065 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3059 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 |