Compute V1 Client - Class TargetShape (2.14.1)

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

Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or BALANCED.

Protobuf type google.cloud.compute.v1.CapacityAdviceRequestDistributionPolicy.TargetShape

Namespace

Google \ Cloud \ Compute \ V1 \ CapacityAdviceRequestDistributionPolicy

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

UNDEFINED_TARGET_SHAPE

Value: 0

A value indicating that the enum field is not set.

Generated from protobuf enum UNDEFINED_TARGET_SHAPE = 0;

ANY

Value: 64972

Picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints.

Generated from protobuf enum ANY = 64972;

ANY_SINGLE_ZONE

Value: 61100880

Creates all VM instances within a single zone. The zone is selected based on the present resource constraints.

Generated from protobuf enum ANY_SINGLE_ZONE = 61100880;

BALANCED

Value: 468409608

Prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure.

Generated from protobuf enum BALANCED = 468409608;

TARGET_SHAPE_UNSPECIFIED

Value: 449316907

Default value, unused.

Generated from protobuf enum TARGET_SHAPE_UNSPECIFIED = 449316907;