Class: Google::Apis::RedisV1beta1::ZoneDistributionConfig
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::ZoneDistributionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Overview
Zone distribution config for allocation of cluster resources.
Instance Attribute Summary collapse
-
#mode ⇒ String
Optional.
-
#zone ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ZoneDistributionConfig
constructor
A new instance of ZoneDistributionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ZoneDistributionConfig
Returns a new instance of ZoneDistributionConfig.
2587 2588 2589 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2587 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
specified.
Corresponds to the JSON property mode
2578 2579 2580 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2578 def mode @mode end |
#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.
Corresponds to the JSON property zone
2585 2586 2587 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2585 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2592 2593 2594 2595 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2592 def update!(**args) @mode = args[:mode] if args.key?(:mode) @zone = args[:zone] if args.key?(:zone) end |