# Google Cloud Memorystore for Redis V1BETA1 API - Class Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1BETA1 API class Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig.

Zone distribution config for allocation of cluster resources.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mode

    def mode() -> ::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

### #mode=

    def mode=(value) -> ::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode

**Parameter**

- **value** ([::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

### #zone

    def zone() -> ::String

**Returns**

- (::String) --- Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
**Returns**

- (::String) --- Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.