Class: Google::Apis::GkeonpremV1::BareMetalMachineDrainStatus
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalMachineDrainStatus
- 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 more...
Overview
Represents the status of node machines that are undergoing drain operations.
Instance Attribute Summary collapse
-
#drained_machines ⇒ Array<Google::Apis::GkeonpremV1::BareMetalDrainedMachine>
The list of drained machines.
-
#draining_machines ⇒ Array<Google::Apis::GkeonpremV1::BareMetalDrainingMachine>
The list of draning machines.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalMachineDrainStatus
constructor
A new instance of BareMetalMachineDrainStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalMachineDrainStatus
Returns a new instance of BareMetalMachineDrainStatus.
1474 1475 1476 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drained_machines ⇒ Array<Google::Apis::GkeonpremV1::BareMetalDrainedMachine>
The list of drained machines.
Corresponds to the JSON property drainedMachines
1467 1468 1469 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1467 def drained_machines @drained_machines end |
#draining_machines ⇒ Array<Google::Apis::GkeonpremV1::BareMetalDrainingMachine>
The list of draning machines.
Corresponds to the JSON property drainingMachines
1472 1473 1474 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1472 def draining_machines @draining_machines end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1479 1480 1481 1482 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1479 def update!(**args) @drained_machines = args[:drained_machines] if args.key?(:drained_machines) @draining_machines = args[:draining_machines] if args.key?(:draining_machines) end |