Compute V1 Client - Class InstanceFlexibilityPolicy (2.18.0)

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

A flexible specification of machine types for instances to create.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance_selections array|Google\Protobuf\Internal\MapField

Specifies named instance selections that define properties for instances created in bulk. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.

getInstanceSelections

Specifies named instance selections that define properties for instances created in bulk.

Key is an arbitrary, unique RFC1035 string that identifies the instance selection.

Returns
Type Description
Google\Protobuf\Internal\MapField

setInstanceSelections

Specifies named instance selections that define properties for instances created in bulk.

Key is an arbitrary, unique RFC1035 string that identifies the instance selection.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this