Class: Google::Apis::RedisV1::ClusterSlots
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::ClusterSlots
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
A series of slots belonging to a cluster.
Instance Attribute Summary collapse
-
#end_slots_exclusive ⇒ Fixnum
Output only.
-
#memory_size_gb ⇒ Fixnum
Output only.
-
#replica_count ⇒ Fixnum
Output only.
-
#start_slots_inclusive ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterSlots
constructor
A new instance of ClusterSlots.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterSlots
Returns a new instance of ClusterSlots.
143 144 145 |
# File 'lib/google/apis/redis_v1/classes.rb', line 143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_slots_exclusive ⇒ Fixnum
Output only. The end of the slots that make up this series.
Corresponds to the JSON property endSlotsExclusive
126 127 128 |
# File 'lib/google/apis/redis_v1/classes.rb', line 126 def end_slots_exclusive @end_slots_exclusive end |
#memory_size_gb ⇒ Fixnum
Output only. The total size of keyspace this series has.
Corresponds to the JSON property memorySizeGb
131 132 133 |
# File 'lib/google/apis/redis_v1/classes.rb', line 131 def memory_size_gb @memory_size_gb end |
#replica_count ⇒ Fixnum
Output only. The number of replicas this series has.
Corresponds to the JSON property replicaCount
136 137 138 |
# File 'lib/google/apis/redis_v1/classes.rb', line 136 def replica_count @replica_count end |
#start_slots_inclusive ⇒ Fixnum
Output only. The start of the slots that make up this series.
Corresponds to the JSON property startSlotsInclusive
141 142 143 |
# File 'lib/google/apis/redis_v1/classes.rb', line 141 def start_slots_inclusive @start_slots_inclusive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
148 149 150 151 152 153 |
# File 'lib/google/apis/redis_v1/classes.rb', line 148 def update!(**args) @end_slots_exclusive = args[:end_slots_exclusive] if args.key?(:end_slots_exclusive) @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb) @replica_count = args[:replica_count] if args.key?(:replica_count) @start_slots_inclusive = args[:start_slots_inclusive] if args.key?(:start_slots_inclusive) end |