Compute V1 Client - Class FutureResourcesSpecSpecificSKUResources (2.4.0)

Reference documentation and code samples for the Compute V1 Client class FutureResourcesSpecSpecificSKUResources.

Generated from protobuf message google.cloud.compute.v1.FutureResourcesSpecSpecificSKUResources

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance_count int|string

Size of the request, in instance count.

↳ local_ssd_partitions array<FutureResourcesSpecLocalSsdPartition>

Local SSD partitions. You do not have to include SSD partitions that are built in the machine type.

↳ machine_type string

The machine type to use for instances that will use the reservation. This field only accepts machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU reservations.

getInstanceCount

Size of the request, in instance count.

Returns
Type Description
int|string

hasInstanceCount

clearInstanceCount

setInstanceCount

Size of the request, in instance count.

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

getLocalSsdPartitions

Local SSD partitions. You do not have to include SSD partitions that are built in the machine type.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLocalSsdPartitions

Local SSD partitions. You do not have to include SSD partitions that are built in the machine type.

Parameter
Name Description
var array<FutureResourcesSpecLocalSsdPartition>
Returns
Type Description
$this

getMachineType

The machine type to use for instances that will use the reservation.

This field only accepts machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU reservations.

Returns
Type Description
string

hasMachineType

clearMachineType

setMachineType

The machine type to use for instances that will use the reservation.

This field only accepts machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU reservations.

Parameter
Name Description
var string
Returns
Type Description
$this