# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::NfsShare (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::NfsShare.

An NFS share.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allowed_clients

    def allowed_clients() -> ::Array<::Google::Cloud::BareMetalSolution::V2::NfsShare::AllowedClient>

**Returns**

- (::Array\<[::Google::Cloud::BareMetalSolution::V2::NfsShare::AllowedClient](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-AllowedClient)\>) --- List of allowed access points.

### #allowed_clients=

    def allowed_clients=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::NfsShare::AllowedClient>

**Parameter**

- **value** (::Array\<[::Google::Cloud::BareMetalSolution::V2::NfsShare::AllowedClient](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-AllowedClient)\>) --- List of allowed access points.
**Returns**

- (::Array\<[::Google::Cloud::BareMetalSolution::V2::NfsShare::AllowedClient](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-AllowedClient)\>) --- List of allowed access points.

### #id

    def id() -> ::String

**Returns**

- (::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.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. The name of the NFS share.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The name of the NFS share.
**Returns**

- (::String) --- Immutable. The name of the NFS share.

### #nfs_share_id

    def nfs_share_id() -> ::String

**Returns**

- (::String) --- Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use `id` instead.

### #requested_size_gib

    def requested_size_gib() -> ::Integer

**Returns**

- (::Integer) --- The requested size, in GiB.

### #requested_size_gib=

    def requested_size_gib=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The requested size, in GiB.
**Returns**

- (::Integer) --- The requested size, in GiB.

### #state

    def state() -> ::Google::Cloud::BareMetalSolution::V2::NfsShare::State

**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::NfsShare::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-State)) --- Output only. The state of the NFS share.

### #storage_type

    def storage_type() -> ::Google::Cloud::BareMetalSolution::V2::NfsShare::StorageType

**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::NfsShare::StorageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-StorageType)) --- Immutable. The storage type of the underlying volume.

### #storage_type=

    def storage_type=(value) -> ::Google::Cloud::BareMetalSolution::V2::NfsShare::StorageType

**Parameter**

- **value** ([::Google::Cloud::BareMetalSolution::V2::NfsShare::StorageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-StorageType)) --- Immutable. The storage type of the underlying volume.
**Returns**

- ([::Google::Cloud::BareMetalSolution::V2::NfsShare::StorageType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-NfsShare-StorageType)) --- Immutable. The storage type of the underlying volume.

### #volume

    def volume() -> ::String

**Returns**

- (::String) --- Output only. The underlying volume of the share. Created automatically during provisioning.