Google Cloud Bare Metal Solution V2 Client - Class NfsShare (0.2.8)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NfsShare.

An NFS share.

Generated from protobuf message google.cloud.baremetalsolution.v2.NfsShare

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the NFS share.

↳ nfs_share_id string

Output only. An identifier for the NFS share, generated by the backend.

↳ state int

The state of the NFS share.

↳ volume string

The volume containing the share.

↳ allowed_clients array<Google\Cloud\BareMetalSolution\V2\NfsShare\AllowedClient>

List of allowed access points.

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs.

getName

Output only. The name of the NFS share.

Returns
TypeDescription
string

setName

Output only. The name of the NFS share.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNfsShareId

Output only. An identifier for the NFS share, generated by the backend.

Returns
TypeDescription
string

setNfsShareId

Output only. An identifier for the NFS share, generated by the backend.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

The state of the NFS share.

Returns
TypeDescription
int

setState

The state of the NFS share.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVolume

The volume containing the share.

Returns
TypeDescription
string

setVolume

The volume containing the share.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowedClients

List of allowed access points.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedClients

List of allowed access points.

Parameter
NameDescription
var array<Google\Cloud\BareMetalSolution\V2\NfsShare\AllowedClient>
Returns
TypeDescription
$this

getLabels

Labels as key value pairs.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this