# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::IPAllocationPolicy (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::IPAllocationPolicy.

Configuration for controlling how IPs are allocated in the
GKE cluster running the Apache Airflow software.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster_ipv4_cidr_block

    def cluster_ipv4_cidr_block() -> ::String

**Returns**

- (::String) --- Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `cluster_ipv4_cidr_block`, `cluster_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cluster_ipv4_cidr_block=

    def cluster_ipv4_cidr_block=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster.


  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `cluster_ipv4_cidr_block`, `cluster_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `cluster_ipv4_cidr_block`, `cluster_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cluster_secondary_range_name

    def cluster_secondary_range_name() -> ::String

**Returns**

- (::String) --- Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `cluster_secondary_range_name`, `cluster_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cluster_secondary_range_name=

    def cluster_secondary_range_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods.


  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `cluster_secondary_range_name`, `cluster_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `cluster_secondary_range_name`, `cluster_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #services_ipv4_cidr_block

    def services_ipv4_cidr_block() -> ::String

**Returns**

- (::String) --- Optional. The IP address range of the services IP addresses in this GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `services_ipv4_cidr_block`, `services_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #services_ipv4_cidr_block=

    def services_ipv4_cidr_block=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The IP address range of the services IP addresses in this GKE cluster.


  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `services_ipv4_cidr_block`, `services_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. The IP address range of the services IP addresses in this GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  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](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
  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.

  Note: The following fields are mutually exclusive: `services_ipv4_cidr_block`, `services_secondary_range_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #services_secondary_range_name

    def services_secondary_range_name() -> ::String

**Returns**

- (::String) --- Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `services_secondary_range_name`, `services_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #services_secondary_range_name=

    def services_secondary_range_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster.


  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `services_secondary_range_name`, `services_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster.

  For Cloud Composer environments in versions composer-1.*.* -airflow-*.* .\*,
  this field is applicable only when `use_ip_aliases` is true.

  Note: The following fields are mutually exclusive: `services_secondary_range_name`, `services_ipv4_cidr_block`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #use_ip_aliases

    def use_ip_aliases() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created.


  This field is only supported for Cloud Composer environments in versions
  composer-1.*.* -airflow-*.*.\*. Environments in newer versions always use
  VPC-native GKE clusters.

### #use_ip_aliases=

    def use_ip_aliases=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created.


  This field is only supported for Cloud Composer environments in versions
  composer-1.*.* -airflow-*.*.\*. Environments in newer versions always use
  VPC-native GKE clusters.
**Returns**

- (::Boolean) --- Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created.


  This field is only supported for Cloud Composer environments in versions
  composer-1.*.* -airflow-*.*.\*. Environments in newer versions always use
  VPC-native GKE clusters.