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

Message requesting to updating an NFS share.

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

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ nfs_share` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare` Required. The NFS share to update. The `name` field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} |
| `↳ 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` `allowed_clients` |

### getNfsShare

Required. The NFS share to update.

The `name` field is used to identify the NFS share to update.
Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}

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

### hasNfsShare

### clearNfsShare

### setNfsShare

Required. The NFS share to update.

The `name` field is used to identify the NFS share to update.
Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}

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

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

### getUpdateMask

The list of fields to update.

The only currently supported fields are:
`labels`
`allowed_clients`

| **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`
`allowed_clients`

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `nfsShare` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare` Required. The NFS share to update. The `name` field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The list of fields to update. The only currently supported fields are: `labels` `allowed_clients` |

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