# Google Cloud Container V1 Client - Class IPEndpointsConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class IPEndpointsConfig.

IP endpoints configuration.

Generated from protobuf message `google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig`

## Namespace

Google \\ Cloud \\ Container \\ V1 \\ ControlPlaneEndpointsConfig

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getEnabled

Controls whether to allow direct IP access.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnabled

### clearEnabled

### setEnabled

Controls whether to allow direct IP access.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnablePublicEndpoint

Controls whether the control plane allows access through a public IP.

It is invalid to specify both
PrivateClusterConfig.enablePrivateEndpoint and this field at the same
time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnablePublicEndpoint

### clearEnablePublicEndpoint

### setEnablePublicEndpoint

Controls whether the control plane allows access through a public IP.

It is invalid to specify both
PrivateClusterConfig.enablePrivateEndpoint and this field at the same
time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGlobalAccess

Controls whether the control plane's private endpoint is accessible from
sources in other regions.

It is invalid to specify both
[PrivateClusterMasterGlobalAccessConfig.enabled](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.PrivateClusterMasterGlobalAccessConfig#_Google_Cloud_Container_V1_PrivateClusterMasterGlobalAccessConfig__getEnabled__)
and this field at the same time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasGlobalAccess

### clearGlobalAccess

### setGlobalAccess

Controls whether the control plane's private endpoint is accessible from
sources in other regions.

It is invalid to specify both
[PrivateClusterMasterGlobalAccessConfig.enabled](https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.PrivateClusterMasterGlobalAccessConfig#_Google_Cloud_Container_V1_PrivateClusterMasterGlobalAccessConfig__getEnabled__)
and this field at the same time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthorizedNetworksConfig

Configuration of authorized networks. If enabled, restricts access to the
control plane based on source IP.

It is invalid to specify both
Cluster.masterAuthorizedNetworksConfig and this field at the same
time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.MasterAuthorizedNetworksConfig|null` |   |

### hasAuthorizedNetworksConfig

### clearAuthorizedNetworksConfig

### setAuthorizedNetworksConfig

Configuration of authorized networks. If enabled, restricts access to the
control plane based on source IP.

It is invalid to specify both
Cluster.masterAuthorizedNetworksConfig and this field at the same
time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.MasterAuthorizedNetworksConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublicEndpoint

Output only. The external IP address of this cluster's control plane.

Only populated if enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPublicEndpoint

Output only. The external IP address of this cluster's control plane.

Only populated if enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivateEndpoint

Output only. The internal IP address of this cluster's control plane.

Only populated if enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivateEndpoint

Output only. The internal IP address of this cluster's control plane.

Only populated if enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivateEndpointSubnetwork

Subnet to provision the master's private endpoint during cluster
creation. Specified in projects/*/regions/* /subnetworks/\* format. It is
invalid to specify both
PrivateClusterConfig.privateEndpointSubnetwork and this field at the
same time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivateEndpointSubnetwork

Subnet to provision the master's private endpoint during cluster
creation. Specified in projects/*/regions/* /subnetworks/\* format. It is
invalid to specify both
PrivateClusterConfig.privateEndpointSubnetwork and this field at the
same time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |