[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare)\n- [1.0.4](/php/docs/reference/cloud-bare-metal-solution/1.0.4/V2.NfsShare)\n- [0.6.5](/php/docs/reference/cloud-bare-metal-solution/0.6.5/V2.NfsShare)\n- [0.5.2](/php/docs/reference/cloud-bare-metal-solution/0.5.2/V2.NfsShare)\n- [0.4.0](/php/docs/reference/cloud-bare-metal-solution/0.4.0/V2.NfsShare)\n- [0.3.2](/php/docs/reference/cloud-bare-metal-solution/0.3.2/V2.NfsShare)\n- [0.2.8](/php/docs/reference/cloud-bare-metal-solution/0.2.8/V2.NfsShare) \nReference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NfsShare.\n\nAn NFS share.\n\nGenerated from protobuf message `google.cloud.baremetalsolution.v2.NfsShare`\n\nNamespace Google \\\\ Cloud \\\\ BareMetalSolution \\\\ V2\n\nMethods\n\n__construct \nConstructor.\n\n| **Parameters** ||\n|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Name** | **Description** |\n| `data` | `array` Optional. Data for populating the Message object. |\n| `↳ name` | `string` Immutable. The name of the NFS share. |\n| `↳ nfs_share_id` | `string` Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use `id` instead. |\n| `↳ id` | `string` Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future. |\n| `↳ state` | `int` Output only. The state of the NFS share. |\n| `↳ volume` | `string` Output only. The underlying volume of the share. Created automatically during provisioning. |\n| `↳ allowed_clients` | `array\u003c`[NfsShare\\AllowedClient](/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare.AllowedClient)`\u003e` List of allowed access points. |\n| `↳ labels` | `array|`[Google\\Protobuf\\Internal\\MapField](https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField) Labels as key value pairs. |\n| `↳ requested_size_gib` | `int|string` The requested size, in GiB. |\n| `↳ storage_type` | `int` Immutable. The storage type of the underlying volume. |\n\ngetName \nImmutable. The name of the NFS share.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetName \nImmutable. The name of the NFS share.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetNfsShareId \nOutput only. An identifier for the NFS share, generated by the backend.\n\nThis field will be deprecated in the future, use `id` instead.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetNfsShareId \nOutput only. An identifier for the NFS share, generated by the backend.\n\nThis field will be deprecated in the future, use `id` instead.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetId \nOutput only. An identifier for the NFS share, generated by the backend.\n\nThis is the same value as nfs_share_id and will replace it in the future.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetId \nOutput only. An identifier for the NFS share, generated by the backend.\n\nThis is the same value as nfs_share_id and will replace it in the future.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetState \nOutput only. The state of the NFS share.\n\n| **Returns** ||\n|----------|---------------------|\n| **Type** | **Description** |\n| `int` | Enum of type State. |\n\nsetState \nOutput only. The state of the NFS share.\n\n| **Parameter** ||\n|----------|---------------------------|\n| **Name** | **Description** |\n| `var` | `int` Enum of type State. |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetVolume \nOutput only. The underlying volume of the share. Created automatically\nduring provisioning.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetVolume \nOutput only. The underlying volume of the share. Created automatically\nduring provisioning.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetAllowedClients \nList of allowed access points.\n\n| **Returns** ||\n|------------------------------------------------------------------------------------------------------------------------------|-----------------|\n| **Type** | **Description** |\n| [Google\\Protobuf\\Internal\\RepeatedField](https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField) | |\n\nsetAllowedClients \nList of allowed access points.\n\n| **Parameter** ||\n|----------|---------------------------------------------------------------------------------------------------------------------|\n| **Name** | **Description** |\n| `var` | `array\u003c`[NfsShare\\AllowedClient](/php/docs/reference/cloud-bare-metal-solution/latest/V2.NfsShare.AllowedClient)`\u003e` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetLabels \nLabels as key value pairs.\n\n| **Returns** ||\n|--------------------------------------------------------------------------------------------------------------------|-----------------|\n| **Type** | **Description** |\n| [Google\\Protobuf\\Internal\\MapField](https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField) | |\n\nsetLabels \nLabels as key value pairs.\n\n| **Parameter** ||\n|----------|----------------------------------------------------------------------------------------------------------------------------|\n| **Name** | **Description** |\n| `var` | `array|`[Google\\Protobuf\\Internal\\MapField](https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField) |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetRequestedSizeGib \nThe requested size, in GiB.\n\n| **Returns** ||\n|--------------|-----------------|\n| **Type** | **Description** |\n| `int|string` | |\n\nsetRequestedSizeGib \nThe requested size, in GiB.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `int|string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetStorageType \nImmutable. The storage type of the underlying volume.\n\n| **Returns** ||\n|----------|---------------------------|\n| **Type** | **Description** |\n| `int` | Enum of type StorageType. |\n\nsetStorageType \nImmutable. The storage type of the underlying volume.\n\n| **Parameter** ||\n|----------|---------------------------------|\n| **Name** | **Description** |\n| `var` | `int` Enum of type StorageType. |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |"]]