Class: Google::Apis::RedisV1::ClusterSlots

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_exclusiveFixnum

Output only. The end of the slots that make up this series. Corresponds to the JSON property endSlotsExclusive

Returns:

  • (Fixnum)


126
127
128
# File 'lib/google/apis/redis_v1/classes.rb', line 126

def end_slots_exclusive
  @end_slots_exclusive
end

#memory_size_gbFixnum

Output only. The total size of keyspace this series has. Corresponds to the JSON property memorySizeGb

Returns:

  • (Fixnum)


131
132
133
# File 'lib/google/apis/redis_v1/classes.rb', line 131

def memory_size_gb
  @memory_size_gb
end

#replica_countFixnum

Output only. The number of replicas this series has. Corresponds to the JSON property replicaCount

Returns:

  • (Fixnum)


136
137
138
# File 'lib/google/apis/redis_v1/classes.rb', line 136

def replica_count
  @replica_count
end

#start_slots_inclusiveFixnum

Output only. The start of the slots that make up this series. Corresponds to the JSON property startSlotsInclusive

Returns:

  • (Fixnum)


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