Compute V1 Client - Class DistributionPolicy (1.5.0)

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

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

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ target_shape
string

The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType). Check the TargetShape enum for the list of possible values.

↳ zones
array< Google\Cloud\Compute\V1\DistributionPolicyZoneConfiguration >

Zones where the regional managed instance group will create and manage its instances.

getTargetShape

The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).

Check the TargetShape enum for the list of possible values.

Generated from protobuf field optional string target_shape = 338621299;

Returns
Type
Description
string

hasTargetShape

clearTargetShape

setTargetShape

The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).

Check the TargetShape enum for the list of possible values.

Generated from protobuf field optional string target_shape = 338621299;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getZones

Zones where the regional managed instance group will create and manage its instances.

Generated from protobuf field repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Returns
Type
Description
Google\Protobuf\Internal\RepeatedField

setZones

Zones where the regional managed instance group will create and manage its instances.

Generated from protobuf field repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: