Class: Google::Apis::ComposerV1beta1::IpAllocationPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/composer_v1beta1/classes.rb,
generated/google/apis/composer_v1beta1/representations.rb,
generated/google/apis/composer_v1beta1/representations.rb

Overview

Configuration for controlling how IPs are allocated in the GKE cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IpAllocationPolicy

Returns a new instance of IpAllocationPolicy.



308
309
310
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 308

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

Instance Attribute Details

#cluster_ipv4_cidr_blockString

Optional. The IP address range used to allocate IP addresses to pods in the cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Specify cluster_secondary_range_name or cluster_ipv4_cidr_block but not both. Corresponds to the JSON property clusterIpv4CidrBlock

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 266

def cluster_ipv4_cidr_block
  @cluster_ipv4_cidr_block
end

#cluster_secondary_range_nameString

Optional. The name of the cluster's secondary range used to allocate IP addresses to pods. Specify either cluster_secondary_range_name or cluster_ipv4_cidr_block but not both. This field is applicable only when use_ip_aliases is true. Corresponds to the JSON property clusterSecondaryRangeName

Returns:

  • (String)


274
275
276
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 274

def cluster_secondary_range_name
  @cluster_secondary_range_name
end

#services_ipv4_cidr_blockString

Optional. The IP address range of the services IP addresses in this cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Specify services_secondary_range_name or services_ipv4_cidr_block but not both. Corresponds to the JSON property servicesIpv4CidrBlock

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 291

def services_ipv4_cidr_block
  @services_ipv4_cidr_block
end

#services_secondary_range_nameString

Optional. The name of the services' secondary range used to allocate IP addresses to the cluster. Specify either services_secondary_range_name or services_ipv4_cidr_block but not both. This field is applicable only when use_ip_aliases is true. Corresponds to the JSON property servicesSecondaryRangeName

Returns:

  • (String)


299
300
301
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 299

def services_secondary_range_name
  @services_secondary_range_name
end

#use_ip_aliasesBoolean Also known as: use_ip_aliases?

Optional. Whether or not to enable Alias IPs in the GKE cluster. If true, a VPC-native cluster is created. Corresponds to the JSON property useIpAliases

Returns:

  • (Boolean)


305
306
307
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 305

def use_ip_aliases
  @use_ip_aliases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



313
314
315
316
317
318
319
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 313

def update!(**args)
  @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block)
  @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name)
  @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block)
  @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name)
  @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases)
end