Compute V1 Client - Class CapacityAdviceRequestDistributionPolicy (2.14.1)

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

Distribution policy.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ target_shape string

Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or BALANCED. Check the TargetShape enum for the list of possible values.

↳ zones array<CapacityAdviceRequestDistributionPolicyZoneConfiguration>

Zones where Capacity Advisor looks for capacity.

getTargetShape

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

Check the TargetShape enum for the list of possible values.

Returns
Type Description
string

hasTargetShape

clearTargetShape

setTargetShape

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

Check the TargetShape enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getZones

Zones where Capacity Advisor looks for capacity.

Returns
Type Description
Google\Protobuf\RepeatedField<CapacityAdviceRequestDistributionPolicyZoneConfiguration>

setZones

Zones where Capacity Advisor looks for capacity.

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