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 \ VolumeConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Type | Description |
string |
|
setNetworkId
Network to use to publish the export.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineId
Either a single machine, identified by an ID, or a comma-separated list of machine IDs.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMachineId
setMachineId
Either a single machine, identified by an ID, or a comma-separated list of machine IDs.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCidr
A CIDR range.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasCidr
setCidr
A CIDR range.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPermissions
Export permissions.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Permissions. |
setPermissions
Export permissions.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Permissions. |
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowSuid
Allow the setuid flag.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setAllowSuid
Allow the setuid flag.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowDev
Allow dev flag in NfsShare AllowedClientsRequest.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setAllowDev
Allow dev flag in NfsShare AllowedClientsRequest.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getClient
| Returns | |
|---|---|
| Type | Description |
string |
|