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

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class BootDiskDefaults.

BootDiskDefaults hold information about the boot disk of a VM.

Generated from protobuf message google.cloud.vmmigration.v1.BootDiskDefaults

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ image
BootDiskDefaults\DiskImageDefaults

The image to use when creating the disk.

↳ disk_name
string

Optional. The name of the disk.

↳ disk_type
int

Optional. The type of disk provisioning to use for the VM.

↳ device_name
string

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

↳ encryption
Encryption

Optional. The encryption to apply to the boot disk.

getImage

The image to use when creating the disk.

Returns
Type
Description

hasImage

setImage

The image to use when creating the disk.

Parameter
Name
Description
Returns
Type
Description
$this

getDiskName

Optional. The name of the disk.

Returns
Type
Description
string

setDiskName

Optional. The name of the disk.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDiskType

Optional. The type of disk provisioning to use for the VM.

Returns
Type
Description
int
Enum of type ComputeEngineDiskType .

setDiskType

Optional. The type of disk provisioning to use for the VM.

Parameter
Name
Description
var
int

Enum of type ComputeEngineDiskType .

Returns
Type
Description
$this

getDeviceName

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

Returns
Type
Description
string

setDeviceName

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getEncryption

Optional. The encryption to apply to the boot disk.

Returns
Type
Description
Encryption |null

hasEncryption

clearEncryption

setEncryption

Optional. The encryption to apply to the boot disk.

Parameter
Name
Description
Returns
Type
Description
$this

getSource

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: