Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ZoneDistributionConfig.
Zone distribution config for allocation of cluster resources.
Generated from protobuf message google.cloud.redis.cluster.v1.ZoneDistributionConfig
Namespace
Google \ Cloud \ Redis \ Cluster \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ mode
int
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
↳ zone
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.
getMode
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
specified.
Returns
Type
Description
int
setMode
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
specified.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getZone
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
Type
Description
string
setZone
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Redis Cluster V1 Client - Class ZoneDistributionConfig (0.5.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.5.1 (latest)](/php/docs/reference/cloud-redis-cluster/latest/V1.ZoneDistributionConfig)\n- [0.5.0](/php/docs/reference/cloud-redis-cluster/0.5.0/V1.ZoneDistributionConfig)\n- [0.4.1](/php/docs/reference/cloud-redis-cluster/0.4.1/V1.ZoneDistributionConfig)\n- [0.3.2](/php/docs/reference/cloud-redis-cluster/0.3.2/V1.ZoneDistributionConfig)\n- [0.2.5](/php/docs/reference/cloud-redis-cluster/0.2.5/V1.ZoneDistributionConfig)\n- [0.1.0](/php/docs/reference/cloud-redis-cluster/0.1.0/V1.ZoneDistributionConfig) \nReference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ZoneDistributionConfig.\n\nZone distribution config for allocation of cluster resources.\n\nGenerated from protobuf message `google.cloud.redis.cluster.v1.ZoneDistributionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Redis \\\\ Cluster \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMode\n\nOptional. The mode of zone distribution. Defaults to MULTI_ZONE, when not\nspecified.\n\n### setMode\n\nOptional. The mode of zone distribution. Defaults to MULTI_ZONE, when not\nspecified.\n\n### getZone\n\nOptional. When SINGLE ZONE distribution is selected, zone field would be\nused to allocate all resources in that zone. This is not applicable to\nMULTI_ZONE, and would be ignored for MULTI_ZONE clusters.\n\n### setZone\n\nOptional. When SINGLE ZONE distribution is selected, zone field would be\nused to allocate all resources in that zone. This is not applicable to\nMULTI_ZONE, and would be ignored for MULTI_ZONE clusters."]]