Class: Google::Apis::GkeonpremV1::BareMetalAdminIslandModeCidrConfig

Inherits:
Object
  • Object
show all
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

BareMetalAdminIslandModeCidrConfig specifies the cluster CIDR configuration while running in island mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalAdminIslandModeCidrConfig

Returns a new instance of BareMetalAdminIslandModeCidrConfig.



427
428
429
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 427

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pod_address_cidr_blocksArray<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

Returns:

  • (Array<String>)


419
420
421
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 419

def pod_address_cidr_blocks
  @pod_address_cidr_blocks
end

#service_address_cidr_blocksArray<String>

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation. Corresponds to the JSON property serviceAddressCidrBlocks

Returns:

  • (Array<String>)


425
426
427
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 425

def service_address_cidr_blocks
  @service_address_cidr_blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



432
433
434
435
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 432

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