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

Message for creating an NFS share.

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

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent project and location. |
| `↳ nfs_share` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare` Required. The NfsShare to create. |

### getParent

Required. The parent project and location.

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

### setParent

Required. The parent project and location.

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

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

### getNfsShare

Required. The NfsShare to create.

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

### hasNfsShare

### clearNfsShare

### setNfsShare

Required. The NfsShare to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent project and location. Please see BareMetalSolutionClient::locationName() for help formatting this field. |
| `nfsShare` | `https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare` Required. The NfsShare to create. |

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