Interface DistributionPolicyOrBuilder (1.98.0)

public interface DistributionPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getTargetShape()

public abstract String getTargetShape()

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

optional string target_shape = 338621299;

Returns
Type Description
String

The targetShape.

getTargetShapeBytes()

public abstract ByteString getTargetShapeBytes()

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

optional string target_shape = 338621299;

Returns
Type Description
ByteString

The bytes for targetShape.

getZones(int index)

public abstract DistributionPolicyZoneConfiguration getZones(int index)

Zones where the regional managed instance group will create and manage its instances. By default, a regional MIG doesn't automatically select an AI zone to create instances, even if an AI zone is available in the specified region. To create instances in an AI zone in the selected region, you must explicitly specify it in the distribution policy together with the other preferred zones.

repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Parameter
Name Description
index int
Returns
Type Description
DistributionPolicyZoneConfiguration

getZonesCount()

public abstract int getZonesCount()

Zones where the regional managed instance group will create and manage its instances. By default, a regional MIG doesn't automatically select an AI zone to create instances, even if an AI zone is available in the specified region. To create instances in an AI zone in the selected region, you must explicitly specify it in the distribution policy together with the other preferred zones.

repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Returns
Type Description
int

getZonesList()

public abstract List<DistributionPolicyZoneConfiguration> getZonesList()

Zones where the regional managed instance group will create and manage its instances. By default, a regional MIG doesn't automatically select an AI zone to create instances, even if an AI zone is available in the specified region. To create instances in an AI zone in the selected region, you must explicitly specify it in the distribution policy together with the other preferred zones.

repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Returns
Type Description
List<DistributionPolicyZoneConfiguration>

getZonesOrBuilder(int index)

public abstract DistributionPolicyZoneConfigurationOrBuilder getZonesOrBuilder(int index)

Zones where the regional managed instance group will create and manage its instances. By default, a regional MIG doesn't automatically select an AI zone to create instances, even if an AI zone is available in the specified region. To create instances in an AI zone in the selected region, you must explicitly specify it in the distribution policy together with the other preferred zones.

repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Parameter
Name Description
index int
Returns
Type Description
DistributionPolicyZoneConfigurationOrBuilder

getZonesOrBuilderList()

public abstract List<? extends DistributionPolicyZoneConfigurationOrBuilder> getZonesOrBuilderList()

Zones where the regional managed instance group will create and manage its instances. By default, a regional MIG doesn't automatically select an AI zone to create instances, even if an AI zone is available in the specified region. To create instances in an AI zone in the selected region, you must explicitly specify it in the distribution policy together with the other preferred zones.

repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.DistributionPolicyZoneConfigurationOrBuilder>

hasTargetShape()

public abstract boolean hasTargetShape()

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

optional string target_shape = 338621299;

Returns
Type Description
boolean

Whether the targetShape field is set.