Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class PersistentDiskDefaults.
Details for creation of a Persistent Disk.
Generated from protobuf message google.cloud.vmmigration.v1.PersistentDiskDefaults
Namespace
Google \ Cloud \ VMMigration \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ source_disk_number
int
Required. The ordinal number of the source VM disk.
↳ disk_name
string
Optional. The name of the Persistent Disk to create.
↳ disk_type
int
The disk type to use.
↳ additional_labels
↳ encryption
↳ vm_attachment_details
VmAttachmentDetails
Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.
getSourceDiskNumber
Required. The ordinal number of the source VM disk.
int
setSourceDiskNumber
Required. The ordinal number of the source VM disk.
var
int
$this
getDiskName
Optional. The name of the Persistent Disk to create.
string
setDiskName
Optional. The name of the Persistent Disk to create.
var
string
$this
getDiskType
The disk type to use.
int
setDiskType
The disk type to use.
var
int
Enum of type ComputeEngineDiskType .
$this
getAdditionalLabels
A map of labels to associate with the Persistent Disk.
setAdditionalLabels
A map of labels to associate with the Persistent Disk.
$this
getEncryption
Optional. The encryption to apply to the disk.
hasEncryption
clearEncryption
setEncryption
Optional. The encryption to apply to the disk.
$this
getVmAttachmentDetails
Optional. Details for attachment of the disk to a VM.
Used when the disk is set to be attached to a target VM.
hasVmAttachmentDetails
clearVmAttachmentDetails
setVmAttachmentDetails
Optional. Details for attachment of the disk to a VM.
Used when the disk is set to be attached to a target VM.
$this