# Memorystore V1BETA API - Class Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig (v0.12.0)

0.12.0 (latest) 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1BETA API class Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig.

Zone distribution configuration for allocation of instance resources.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mode

    def mode() -> ::Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig::ZoneDistributionMode

**Returns**

- ([::Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. Current zone distribution mode. Defaults to MULTI_ZONE.

### #mode=

    def mode=(value) -> ::Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig::ZoneDistributionMode

**Parameter**

- **value** ([::Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
**Returns**

- ([::Google::Cloud::Memorystore::V1beta::ZoneDistributionConfig::ZoneDistributionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-ZoneDistributionConfig-ZoneDistributionMode)) --- Optional. Current zone distribution mode. Defaults to MULTI_ZONE.

### #zone

    def zone() -> ::String

**Returns**

- (::String) --- Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
**Returns**

- (::String) --- Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.