Google Cloud Migration Center V1 Client - Class DiskEntry (0.3.1)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class DiskEntry.

Single disk entry.

Generated from protobuf message google.cloud.migrationcenter.v1.DiskEntry

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ capacity_bytes int|string

Disk capacity.

↳ free_bytes int|string

Disk free space.

↳ disk_label string

Disk label.

↳ disk_label_type string

Disk label type (e.g. BIOS/GPT)

↳ interface_type int

Disks interface type.

↳ partitions Google\Cloud\MigrationCenter\V1\DiskPartitionList

Partition layout.

↳ hw_address string

Disk hardware address (e.g. 0:1 for SCSI).

↳ vmware Google\Cloud\MigrationCenter\V1\VmwareDiskConfig

VMware disk details.

getCapacityBytes

Disk capacity.

Returns
TypeDescription
int|string

setCapacityBytes

Disk capacity.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getFreeBytes

Disk free space.

Returns
TypeDescription
int|string

setFreeBytes

Disk free space.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDiskLabel

Disk label.

Returns
TypeDescription
string

setDiskLabel

Disk label.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDiskLabelType

Disk label type (e.g. BIOS/GPT)

Returns
TypeDescription
string

setDiskLabelType

Disk label type (e.g. BIOS/GPT)

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterfaceType

Disks interface type.

Returns
TypeDescription
int

setInterfaceType

Disks interface type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPartitions

Partition layout.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\DiskPartitionList|null

hasPartitions

clearPartitions

setPartitions

Partition layout.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\DiskPartitionList
Returns
TypeDescription
$this

getHwAddress

Disk hardware address (e.g. 0:1 for SCSI).

Returns
TypeDescription
string

setHwAddress

Disk hardware address (e.g. 0:1 for SCSI).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVmware

VMware disk details.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\VmwareDiskConfig|null

hasVmware

setVmware

VMware disk details.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\VmwareDiskConfig
Returns
TypeDescription
$this

getPlatformSpecific

Returns
TypeDescription
string