Compute V1 Client - Class InstanceFlexibilityPolicy (2.6.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

Specification of alternative, flexible instance subsets. One of them will be selected to create the instances based on various criteria, like: - ranks, - location policy, - current capacity, - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.

getInstanceSelections

Specification of alternative, flexible instance subsets.

One of them will be selected to create the instances based on various criteria, like:

  • ranks,
  • location policy,
  • current capacity,
  • available reservations (you can specify affinity in InstanceProperties),
  • SWAN/GOOSE limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.
Returns
Type Description
Google\Protobuf\Internal\MapField

setInstanceSelections

Specification of alternative, flexible instance subsets.

One of them will be selected to create the instances based on various criteria, like:

  • ranks,
  • location policy,
  • current capacity,
  • available reservations (you can specify affinity in InstanceProperties),
  • SWAN/GOOSE limitations. 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