Class: Google::Apis::GkeonpremV1::BareMetalAdminMaintenanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalAdminMaintenanceConfig
- 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
BareMetalAdminMaintenanceConfig specifies configurations to put bare metal Admin cluster CRs nodes in and out of maintenance.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalAdminMaintenanceConfig
constructor
A new instance of BareMetalAdminMaintenanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalAdminMaintenanceConfig
Returns a new instance of BareMetalAdminMaintenanceConfig.
658 659 660 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 658 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
656 657 658 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 656 def maintenance_address_cidr_blocks @maintenance_address_cidr_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
663 664 665 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 663 def update!(**args) @maintenance_address_cidr_blocks = args[:maintenance_address_cidr_blocks] if args.key?(:maintenance_address_cidr_blocks) end |