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 \ V2Methods
__construct
Constructor.
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
↳ machine_ids
array
Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
↳ nfs_exports
↳ 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.
string
setName
Output only. The name of the volume config.
var
string
$this
getId
A transient unique identifier to identify a volume within an ProvisioningConfig request.
string
setId
A transient unique identifier to identify a volume within an ProvisioningConfig request.
var
string
$this
getSnapshotsEnabled
Whether snapshots should be enabled.
bool
setSnapshotsEnabled
Whether snapshots should be enabled.
var
bool
$this
getType
The type of this Volume.
int
setType
The type of this Volume.
var
int
$this
getProtocol
Volume protocol.
int
setProtocol
Volume protocol.
var
int
$this
getSizeGb
The requested size of this volume, in GB.
int
setSizeGb
The requested size of this volume, in GB.
var
int
$this
getLunRanges
LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
setLunRanges
LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
$this
getMachineIds
Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
setMachineIds
Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
var
string[]
$this
getNfsExports
NFS exports. Set only when protocol is PROTOCOL_NFS.
setNfsExports
NFS exports. Set only when protocol is PROTOCOL_NFS.
$this
getUserNote
User note field, it can be used by customers to add additional information for the BMS Ops team .
string
setUserNote
User note field, it can be used by customers to add additional information for the BMS Ops team .
var
string
$this
getGcpService
The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning .
string
setGcpService
The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning .
var
string
$this
getPerformanceTier
Performance tier of the Volume.
Default is SHARED.
int
setPerformanceTier
Performance tier of the Volume.
Default is SHARED.
var
int
$this