Google Cloud Bare Metal Solution V2 Client - Class NfsExport (0.5.2)

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

A NFS export entry.

Generated from protobuf message google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ VolumeConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network_id string

Network to use to publish the export.

↳ machine_id string

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

↳ cidr string

A CIDR range.

↳ permissions int

Export permissions.

↳ no_root_squash bool

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

↳ allow_suid bool

Allow the setuid flag.

↳ allow_dev bool

Allow dev flag in NfsShare AllowedClientsRequest.

getNetworkId

Network to use to publish the export.

Returns
TypeDescription
string

setNetworkId

Network to use to publish the export.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMachineId

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

Returns
TypeDescription
string

hasMachineId

setMachineId

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCidr

A CIDR range.

Returns
TypeDescription
string

hasCidr

setCidr

A CIDR range.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPermissions

Export permissions.

Returns
TypeDescription
int

setPermissions

Export permissions.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNoRootSquash

Disable root squashing, which is a feature of NFS.

Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

Returns
TypeDescription
bool

setNoRootSquash

Disable root squashing, which is a feature of NFS.

Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAllowSuid

Allow the setuid flag.

Returns
TypeDescription
bool

setAllowSuid

Allow the setuid flag.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAllowDev

Allow dev flag in NfsShare AllowedClientsRequest.

Returns
TypeDescription
bool

setAllowDev

Allow dev flag in NfsShare AllowedClientsRequest.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getClient

Returns
TypeDescription
string