Google Cloud Net App V1 Client - Class Volume (0.1.1)

Reference documentation and code samples for the Google Cloud Net App V1 Client class Volume.

Volume provides a filesystem that you can mount.

Generated from protobuf message google.cloud.netapp.v1.Volume

Namespace

Google \ Cloud \ NetApp \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Name of the volume

↳ state int

Output only. State of the volume

↳ state_details string

Output only. State details of the volume

↳ create_time Google\Protobuf\Timestamp

Output only. Create time of the volume

↳ share_name string

Required. Share name of the volume

↳ psa_range string

Output only. Name of the Private Service Access allocated range. This is optional. If not provided, any available range will be chosen.

↳ storage_pool string

Required. StoragePool name of the volume

↳ network string

Output only. VPC Network name. Format: projects/{project}/global/networks/{network}

↳ service_level int

Output only. Service level of the volume

↳ capacity_gib int|string

Required. Capacity in GIB of the volume

↳ export_policy Google\Cloud\NetApp\V1\ExportPolicy

Optional. Export policy of the volume

↳ protocols array

Required. Protocols required for the volume

↳ smb_settings array

Optional. SMB share settings for the volume.

↳ mount_options array<Google\Cloud\NetApp\V1\MountOption>

Output only. Mount options of this volume

↳ unix_permissions string

Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels as key value pairs

↳ description string

Optional. Description of the volume

↳ snapshot_policy Google\Cloud\NetApp\V1\SnapshotPolicy

Optional. SnapshotPolicy for a volume.

↳ snap_reserve float

Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.

↳ snapshot_directory bool

Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots.

↳ used_gib int|string

Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.

↳ security_style int

Optional. Security Style of the Volume

↳ kerberos_enabled bool

Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).

↳ ldap_enabled bool

Output only. Flag indicating if the volume is NFS LDAP enabled or not.

↳ active_directory string

Output only. Specifies the ActiveDirectory name of a SMB volume.

↳ restore_parameters Google\Cloud\NetApp\V1\RestoreParameters

Optional. Specifies the source of the volume to be created from.

↳ kms_config string

Output only. Specifies the KMS config to be used for volume encryption.

↳ encryption_type int

Output only. Specified the current volume encryption key source.

↳ has_replication bool

Output only. Indicates whether the volume is part of a replication relationship.

↳ restricted_actions array

Optional. List of actions that are restricted on this volume.

getName

Output only. Name of the volume

Returns
TypeDescription
string

setName

Output only. Name of the volume

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the volume

Returns
TypeDescription
int

setState

Output only. State of the volume

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDetails

Output only. State details of the volume

Returns
TypeDescription
string

setStateDetails

Output only. State details of the volume

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Create time of the volume

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Create time of the volume

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getShareName

Required. Share name of the volume

Returns
TypeDescription
string

setShareName

Required. Share name of the volume

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPsaRange

Output only. Name of the Private Service Access allocated range. This is optional. If not provided, any available range will be chosen.

Returns
TypeDescription
string

setPsaRange

Output only. Name of the Private Service Access allocated range. This is optional. If not provided, any available range will be chosen.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStoragePool

Required. StoragePool name of the volume

Returns
TypeDescription
string

setStoragePool

Required. StoragePool name of the volume

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Output only. VPC Network name.

Format: projects/{project}/global/networks/{network}

Returns
TypeDescription
string

setNetwork

Output only. VPC Network name.

Format: projects/{project}/global/networks/{network}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceLevel

Output only. Service level of the volume

Returns
TypeDescription
int

setServiceLevel

Output only. Service level of the volume

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCapacityGib

Required. Capacity in GIB of the volume

Returns
TypeDescription
int|string

setCapacityGib

Required. Capacity in GIB of the volume

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getExportPolicy

Optional. Export policy of the volume

Returns
TypeDescription
Google\Cloud\NetApp\V1\ExportPolicy|null

hasExportPolicy

clearExportPolicy

setExportPolicy

Optional. Export policy of the volume

Parameter
NameDescription
var Google\Cloud\NetApp\V1\ExportPolicy
Returns
TypeDescription
$this

getProtocols

Required. Protocols required for the volume

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProtocols

Required. Protocols required for the volume

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getSmbSettings

Optional. SMB share settings for the volume.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSmbSettings

Optional. SMB share settings for the volume.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getMountOptions

Output only. Mount options of this volume

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMountOptions

Output only. Mount options of this volume

Parameter
NameDescription
var array<Google\Cloud\NetApp\V1\MountOption>
Returns
TypeDescription
$this

getUnixPermissions

Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.

Returns
TypeDescription
string

setUnixPermissions

Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Optional. Labels as key value pairs

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels as key value pairs

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

getDescription

Optional. Description of the volume

Returns
TypeDescription
string

setDescription

Optional. Description of the volume

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnapshotPolicy

Optional. SnapshotPolicy for a volume.

Returns
TypeDescription
Google\Cloud\NetApp\V1\SnapshotPolicy|null

hasSnapshotPolicy

clearSnapshotPolicy

setSnapshotPolicy

Optional. SnapshotPolicy for a volume.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\SnapshotPolicy
Returns
TypeDescription
$this

getSnapReserve

Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.

Returns
TypeDescription
float

setSnapReserve

Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getSnapshotDirectory

Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots.

Returns
TypeDescription
bool

setSnapshotDirectory

Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getUsedGib

Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.

Returns
TypeDescription
int|string

setUsedGib

Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getSecurityStyle

Optional. Security Style of the Volume

Returns
TypeDescription
int

setSecurityStyle

Optional. Security Style of the Volume

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKerberosEnabled

Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).

Returns
TypeDescription
bool

setKerberosEnabled

Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLdapEnabled

Output only. Flag indicating if the volume is NFS LDAP enabled or not.

Returns
TypeDescription
bool

setLdapEnabled

Output only. Flag indicating if the volume is NFS LDAP enabled or not.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getActiveDirectory

Output only. Specifies the ActiveDirectory name of a SMB volume.

Returns
TypeDescription
string

setActiveDirectory

Output only. Specifies the ActiveDirectory name of a SMB volume.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRestoreParameters

Optional. Specifies the source of the volume to be created from.

Returns
TypeDescription
Google\Cloud\NetApp\V1\RestoreParameters|null

hasRestoreParameters

clearRestoreParameters

setRestoreParameters

Optional. Specifies the source of the volume to be created from.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\RestoreParameters
Returns
TypeDescription
$this

getKmsConfig

Output only. Specifies the KMS config to be used for volume encryption.

Returns
TypeDescription
string

setKmsConfig

Output only. Specifies the KMS config to be used for volume encryption.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEncryptionType

Output only. Specified the current volume encryption key source.

Returns
TypeDescription
int

setEncryptionType

Output only. Specified the current volume encryption key source.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHasReplication

Output only. Indicates whether the volume is part of a replication relationship.

Returns
TypeDescription
bool

setHasReplication

Output only. Indicates whether the volume is part of a replication relationship.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getRestrictedActions

Optional. List of actions that are restricted on this volume.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRestrictedActions

Optional. List of actions that are restricted on this volume.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this