Class: Google::Apis::GkeonpremV1::BareMetalDrainingMachine
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalDrainingMachine
- 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
Represents a machine that is currently draining.
Instance Attribute Summary collapse
-
#node_ip ⇒ String
Draining machine IP address.
-
#pod_count ⇒ Fixnum
The count of pods yet to drain.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalDrainingMachine
constructor
A new instance of BareMetalDrainingMachine.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalDrainingMachine
Returns a new instance of BareMetalDrainingMachine.
1415 1416 1417 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1415 def initialize(**args) update!(**args) end |
Instance Attribute Details
#node_ip ⇒ String
Draining machine IP address.
Corresponds to the JSON property nodeIp
1408 1409 1410 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1408 def node_ip @node_ip end |
#pod_count ⇒ Fixnum
The count of pods yet to drain.
Corresponds to the JSON property podCount
1413 1414 1415 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1413 def pod_count @pod_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1420 1421 1422 1423 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1420 def update!(**args) @node_ip = args[:node_ip] if args.key?(:node_ip) @pod_count = args[:pod_count] if args.key?(:pod_count) end |