# Google Cloud Container V1 Client - Class UsableSubnetwork (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 UsableSubnetwork.

UsableSubnetwork resource returns the subnetwork name, its associated network
and the primary CIDR range.

Generated from protobuf message `google.container.v1.UsableSubnetwork`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ subnetwork` | `string` Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet |
| `↳ network` | `string` Network Name. Example: projects/my-project/global/networks/my-network |
| `↳ ip_cidr_range` | `string` The range of internal addresses that are owned by this subnetwork. |
| `↳ secondary_ip_ranges` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.UsableSubnetworkSecondaryRange>` Secondary IP ranges. |
| `↳ status_message` | `string` A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message. |

### getSubnetwork

Subnetwork Name.

Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

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

### setSubnetwork

Subnetwork Name.

Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

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

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

### getNetwork

Network Name.

Example: projects/my-project/global/networks/my-network

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

### setNetwork

Network Name.

Example: projects/my-project/global/networks/my-network

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

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

### getIpCidrRange

The range of internal addresses that are owned by this subnetwork.

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

### setIpCidrRange

The range of internal addresses that are owned by this subnetwork.

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

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

### getSecondaryIpRanges

Secondary IP ranges.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.UsableSubnetworkSecondaryRange>` |   |

### setSecondaryIpRanges

Secondary IP ranges.

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

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

### getStatusMessage

A human readable status message representing the reasons for cases where
the caller cannot use the secondary ranges under the subnet. For example if
the secondary_ip_ranges is empty due to a permission issue, an insufficient
permission message will be given by status_message.

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

### setStatusMessage

A human readable status message representing the reasons for cases where
the caller cannot use the secondary ranges under the subnet. For example if
the secondary_ip_ranges is empty due to a permission issue, an insufficient
permission message will be given by status_message.

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

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