Google Cloud Capacity Planner V1beta Client - Class AllocatedDisk (0.1.0)

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class AllocatedDisk.

A specification of the interface and size of disk attached to the instance.

Generated from protobuf message google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta \ Allocation \ SpecificSKUAllocation \ AllocatedInstanceProperties

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ disk_size_gb int|string

Specifies the size of the disk in base-2 GB.

↳ disk_interface int

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

getDiskSizeGb

Specifies the size of the disk in base-2 GB.

Returns
Type Description
int|string

setDiskSizeGb

Specifies the size of the disk in base-2 GB.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDiskInterface

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

Returns
Type Description
int Enum of type DiskInterface.

setDiskInterface

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

Parameter
Name Description
var int

Enum of type DiskInterface.

Returns
Type Description
$this