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

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

Properties of the SKU instances being reserved.

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

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta \ Allocation \ SpecificSKUAllocation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ machine_type string

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

↳ guest_accelerator array<AllocatedInstanceProperties\AcceleratorConfig>

Specifies accelerator type and count.

↳ min_cpu_platform string

Minimum cpu platform the reservation.

↳ local_ssd array<AllocatedInstanceProperties\AllocatedDisk>

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

getMachineType

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

Returns
Type Description
string

setMachineType

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

Parameter
Name Description
var string
Returns
Type Description
$this

getGuestAccelerator

Specifies accelerator type and count.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setGuestAccelerator

Specifies accelerator type and count.

Parameter
Name Description
var array<AllocatedInstanceProperties\AcceleratorConfig>
Returns
Type Description
$this

getMinCpuPlatform

Minimum cpu platform the reservation.

Returns
Type Description
string

setMinCpuPlatform

Minimum cpu platform the reservation.

Parameter
Name Description
var string
Returns
Type Description
$this

getLocalSsd

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLocalSsd

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

Parameter
Name Description
var array<AllocatedInstanceProperties\AllocatedDisk>
Returns
Type Description
$this