Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::DistributionPolicy.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#target_shape
def target_shape() -> ::String
Returns
- (::String) — 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.
#target_shape=
def target_shape=(value) -> ::String
Parameter
- value (::String) — 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.
Returns
- (::String) — 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.
#zones
def zones() -> ::Array<::Google::Cloud::Compute::V1::DistributionPolicyZoneConfiguration>
Returns
- (::Array<::Google::Cloud::Compute::V1::DistributionPolicyZoneConfiguration>) — 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.
#zones=
def zones=(value) -> ::Array<::Google::Cloud::Compute::V1::DistributionPolicyZoneConfiguration>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::DistributionPolicyZoneConfiguration>) — 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.
Returns
- (::Array<::Google::Cloud::Compute::V1::DistributionPolicyZoneConfiguration>) — 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.