# Google Cloud Bare Metal Solution V2 Client - Class UpdateNetworkRequest (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 UpdateNetworkRequest.

Message requesting to updating a network.

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

## 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` Required. The network to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments` |

### getNetwork

Required. The network to update.

The `name` field is used to identify the instance to update.
Format: projects/{project}/locations/{location}/networks/{network}

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

### hasNetwork

### clearNetwork

### setNetwork

Required. The network to update.

The `name` field is used to identify the instance to update.
Format: projects/{project}/locations/{location}/networks/{network}

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

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

### getUpdateMask

The list of fields to update.

The only currently supported fields are:
`labels`, `reservations`, `vrf.vlan_attachments`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The list of fields to update.

The only currently supported fields are:
`labels`, `reservations`, `vrf.vlan_attachments`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `network` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.Network` Required. The network to update. The `name` field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The list of fields to update. The only currently supported fields are: `labels`, `reservations`, `vrf.vlan_attachments` |

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