Class: Google::Apis::GkeonpremV1::BareMetalIslandModeCidrConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalIslandModeCidrConfig
- 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
Specifies the cluster CIDR configuration while running in island mode.
Instance Attribute Summary collapse
-
#pod_address_cidr_blocks ⇒ Array<String>
Required.
-
#service_address_cidr_blocks ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalIslandModeCidrConfig
constructor
A new instance of BareMetalIslandModeCidrConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalIslandModeCidrConfig
Returns a new instance of BareMetalIslandModeCidrConfig.
1232 1233 1234 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pod_address_cidr_blocks ⇒ Array<String>
Required. All pods in the cluster are assigned an RFC1918 IPv4 address from
these ranges. This field cannot be changed after creation.
Corresponds to the JSON property podAddressCidrBlocks
1223 1224 1225 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1223 def pod_address_cidr_blocks @pod_address_cidr_blocks end |
#service_address_cidr_blocks ⇒ Array<String>
Required. All services in the cluster are assigned an RFC1918 IPv4 address
from these ranges. This field is mutable after creation starting with version
1.15.
Corresponds to the JSON property serviceAddressCidrBlocks
1230 1231 1232 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1230 def service_address_cidr_blocks @service_address_cidr_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1237 1238 1239 1240 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1237 def update!(**args) @pod_address_cidr_blocks = args[:pod_address_cidr_blocks] if args.key?(:pod_address_cidr_blocks) @service_address_cidr_blocks = args[:service_address_cidr_blocks] if args.key?(:service_address_cidr_blocks) end |