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

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

Configuration parameters for a new volume.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the volume config.

↳ id string

A transient unique identifier to identify a volume within an ProvisioningConfig request.

↳ snapshots_enabled bool

Whether snapshots should be enabled.

↳ type int

The type of this Volume.

↳ protocol int

Volume protocol.

↳ size_gb int

The requested size of this volume, in GB.

↳ lun_ranges array<Google\Cloud\BareMetalSolution\V2\VolumeConfig\LunRange>

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

↳ machine_ids array

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

↳ nfs_exports array<Google\Cloud\BareMetalSolution\V2\VolumeConfig\NfsExport>

NFS exports. Set only when protocol is PROTOCOL_NFS.

↳ user_note string

User note field, it can be used by customers to add additional information for the BMS Ops team .

↳ gcp_service string

The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

↳ performance_tier int

Performance tier of the Volume. Default is SHARED.

getName

Output only. The name of the volume config.

Returns
TypeDescription
string

setName

Output only. The name of the volume config.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

A transient unique identifier to identify a volume within an ProvisioningConfig request.

Returns
TypeDescription
string

setId

A transient unique identifier to identify a volume within an ProvisioningConfig request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnapshotsEnabled

Whether snapshots should be enabled.

Returns
TypeDescription
bool

setSnapshotsEnabled

Whether snapshots should be enabled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getType

The type of this Volume.

Returns
TypeDescription
int

setType

The type of this Volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProtocol

Volume protocol.

Returns
TypeDescription
int

setProtocol

Volume protocol.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSizeGb

The requested size of this volume, in GB.

Returns
TypeDescription
int

setSizeGb

The requested size of this volume, in GB.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLunRanges

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLunRanges

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

Parameter
NameDescription
var array<Google\Cloud\BareMetalSolution\V2\VolumeConfig\LunRange>
Returns
TypeDescription
$this

getMachineIds

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMachineIds

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getNfsExports

NFS exports. Set only when protocol is PROTOCOL_NFS.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNfsExports

NFS exports. Set only when protocol is PROTOCOL_NFS.

Parameter
NameDescription
var array<Google\Cloud\BareMetalSolution\V2\VolumeConfig\NfsExport>
Returns
TypeDescription
$this

getUserNote

User note field, it can be used by customers to add additional information for the BMS Ops team .

Returns
TypeDescription
string

setUserNote

User note field, it can be used by customers to add additional information for the BMS Ops team .

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGcpService

The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

Returns
TypeDescription
string

setGcpService

The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPerformanceTier

Performance tier of the Volume.

Default is SHARED.

Returns
TypeDescription
int

setPerformanceTier

Performance tier of the Volume.

Default is SHARED.

Parameter
NameDescription
var int
Returns
TypeDescription
$this