Class: Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb

Overview

Zone distribution config for allocation of cluster resources.

Defined Under Namespace

Modules: ZoneDistributionMode

Instance Attribute Summary collapse

Instance Attribute Details

#mode::Google::Cloud::Redis::Cluster::V1beta1::ZoneDistributionConfig::ZoneDistributionMode

Returns Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

Returns:



1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb', line 1113

class ZoneDistributionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Defines various modes of zone distribution.
  module ZoneDistributionMode
    # Not Set. Default: MULTI_ZONE
    ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0

    # Distribute all resources across 3 zones picked at random, within the
    # region.
    MULTI_ZONE = 1

    # Distribute all resources in a single zone. The zone field must be
    # specified, when this mode is selected.
    SINGLE_ZONE = 2
  end
end

#zone::String

Returns 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.



1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb', line 1113

class ZoneDistributionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Defines various modes of zone distribution.
  module ZoneDistributionMode
    # Not Set. Default: MULTI_ZONE
    ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0

    # Distribute all resources across 3 zones picked at random, within the
    # region.
    MULTI_ZONE = 1

    # Distribute all resources in a single zone. The zone field must be
    # specified, when this mode is selected.
    SINGLE_ZONE = 2
  end
end