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.
Parameters | |
---|---|
Name | Description |
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 |
array|Google\Protobuf\Internal\MapField
A map of labels to associate with the Persistent Disk. |
↳ encryption |
Encryption
Optional. The encryption to apply to the disk. |
↳ 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.
Returns | |
---|---|
Type | Description |
int |
setSourceDiskNumber
Required. The ordinal number of the source VM disk.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDiskName
Optional. The name of the Persistent Disk to create.
Returns | |
---|---|
Type | Description |
string |
setDiskName
Optional. The name of the Persistent Disk to create.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDiskType
The disk type to use.
Returns | |
---|---|
Type | Description |
int |
Enum of type ComputeEngineDiskType. |
setDiskType
The disk type to use.
Parameter | |
---|---|
Name | Description |
var |
int
Enum of type ComputeEngineDiskType. |
Returns | |
---|---|
Type | Description |
$this |
getAdditionalLabels
A map of labels to associate with the Persistent Disk.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setAdditionalLabels
A map of labels to associate with the Persistent Disk.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getEncryption
Optional. The encryption to apply to the disk.
Returns | |
---|---|
Type | Description |
Encryption|null |
hasEncryption
clearEncryption
setEncryption
Optional. The encryption to apply to the disk.
Parameter | |
---|---|
Name | Description |
var |
Encryption
|
Returns | |
---|---|
Type | Description |
$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.
Returns | |
---|---|
Type | Description |
VmAttachmentDetails|null |
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.
Parameter | |
---|---|
Name | Description |
var |
VmAttachmentDetails
|
Returns | |
---|---|
Type | Description |
$this |