Class: Google::Apis::GkeonpremV1::BareMetalMaintenanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalMaintenanceConfig
- 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
Specifies configurations to put bare metal nodes in and out of maintenance.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalMaintenanceConfig
constructor
A new instance of BareMetalMaintenanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalMaintenanceConfig
Returns a new instance of BareMetalMaintenanceConfig.
1497 1498 1499 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1497 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maintenance_address_cidr_blocks ⇒ Array<String>
Required. All IPv4 address from these ranges will be placed into maintenance
mode. Nodes in maintenance mode will be cordoned and drained. When both of
these are true, the "baremetal.cluster.gke.io/maintenance" annotation will be
set on the node resource.
Corresponds to the JSON property maintenanceAddressCidrBlocks
1495 1496 1497 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1495 def maintenance_address_cidr_blocks @maintenance_address_cidr_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1502 1503 1504 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1502 def update!(**args) @maintenance_address_cidr_blocks = args[:maintenance_address_cidr_blocks] if args.key?(:maintenance_address_cidr_blocks) end |