1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class InstanceNetworkConfig.

Metadata related to instance-level network configuration.

Generated from protobuf message `google.cloud.alloydb.v1.Instance.InstanceNetworkConfig`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1 \\ Instance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ authorized_external_networks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.InstanceNetworkConfig.AuthorizedNetwork>` Optional. A list of external network authorized to access this instance. |
| `↳ enable_public_ip` | `bool` Optional. Enabling public ip for the instance. |
| `↳ enable_outbound_public_ip` | `bool` Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet. |
| `↳ network` | `string` Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`. |
| `↳ allocated_ip_range_override` | `string` Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/[-a-z0-9]*[a-z0-9])?. |

### getAuthorizedExternalNetworks

Optional. A list of external network authorized to access this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.InstanceNetworkConfig.AuthorizedNetwork>` |   |

### setAuthorizedExternalNetworks

Optional. A list of external network authorized to access this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.Instance.InstanceNetworkConfig.AuthorizedNetwork>` |

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

### getEnablePublicIp

Optional. Enabling public ip for the instance.

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

### setEnablePublicIp

Optional. Enabling public ip for the instance.

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

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

### getEnableOutboundPublicIp

Optional. Enabling an outbound public IP address to support a database
server sending requests out into the internet.

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

### setEnableOutboundPublicIp

Optional. Enabling an outbound public IP address to support a database
server sending requests out into the internet.

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

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

### getNetwork

Output only. The resource link for the VPC network in which instance
resources are created and from which they are accessible via Private IP.

This will be the same value as the parent cluster's network. It is
specified in the form: //
`projects/{project_number}/global/networks/{network_id}`.

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

### setNetwork

Output only. The resource link for the VPC network in which instance
resources are created and from which they are accessible via Private IP.

This will be the same value as the parent cluster's network. It is
specified in the form: //
`projects/{project_number}/global/networks/{network_id}`.

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

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

### getAllocatedIpRangeOverride

Optional. Name of the allocated IP range for the private IP AlloyDB
instance, for example: "google-managed-services-default". If set, the
instance IPs will be created from this allocated range and will override
the IP range used by the parent cluster. The range name must comply with
[RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
the name must be 1-63 characters long and match the regular expression
[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/[-a-z0-9]*[a-z0-9])?.

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

### setAllocatedIpRangeOverride

Optional. Name of the allocated IP range for the private IP AlloyDB
instance, for example: "google-managed-services-default". If set, the
instance IPs will be created from this allocated range and will override
the IP range used by the parent cluster. The range name must comply with
[RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
the name must be 1-63 characters long and match the regular expression
[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/[-a-z0-9]*[a-z0-9])?.

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

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