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

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

Represents an 'access point' for the share.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ NfsShare

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

The network the access point sits on.

↳ share_ip string

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

↳ allowed_clients_cidr string

The subnet of IP addresses permitted to access the share.

↳ mount_permissions int

Mount permissions.

↳ allow_dev bool

Allow dev flag. Which controls whether to allow creation of devices.

↳ allow_suid bool

Allow the setuid flag.

↳ 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.

↳ nfs_path string

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

getNetwork

The network the access point sits on.

Returns
TypeDescription
string

setNetwork

The network the access point sits on.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShareIp

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

Returns
TypeDescription
string

setShareIp

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowedClientsCidr

The subnet of IP addresses permitted to access the share.

Returns
TypeDescription
string

setAllowedClientsCidr

The subnet of IP addresses permitted to access the share.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMountPermissions

Mount permissions.

Returns
TypeDescription
int

setMountPermissions

Mount permissions.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAllowDev

Allow dev flag. Which controls whether to allow creation of devices.

Returns
TypeDescription
bool

setAllowDev

Allow dev flag. Which controls whether to allow creation of devices.

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

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

getNfsPath

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name.

example like "10.0.0.0:/g123456789-nfs001"

Returns
TypeDescription
string

setNfsPath

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name.

example like "10.0.0.0:/g123456789-nfs001"

Parameter
NameDescription
var string
Returns
TypeDescription
$this