Google Cloud Vm Migration V1 Client - Class PersistentDiskDefaults (1.1.0)

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 \ V1

Methods

__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

setAdditionalLabels

A map of labels to associate with the Persistent Disk.

Parameter
Name
Description
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
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

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: