# Google Cloud Bare Metal Solution V2 Client - Class NetworkUsage (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.6.5 0.5.2 0.4.0 0.3.2 0.2.8 Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NetworkUsage.

Network with all used IP addresses.

Generated from protobuf message `google.cloud.baremetalsolution.v2.NetworkUsage`

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.Network` Network. |
| `↳ used_ips` | `string[]` All used IP addresses in this network. |

### getNetwork

Network.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.Network|null` |   |

### hasNetwork

### clearNetwork

### setNetwork

Network.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.Network` |

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

### getUsedIps

All used IP addresses in this network.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setUsedIps

All used IP addresses in this network.

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

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