Class: Google::Apis::RedisV1::UpdateInfo

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

Represents information about an updating cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateInfo

Returns a new instance of UpdateInfo.



2481
2482
2483
# File 'lib/google/apis/redis_v1/classes.rb', line 2481

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#target_replica_countFixnum

Target number of replica nodes per shard. Corresponds to the JSON property targetReplicaCount

Returns:

  • (Fixnum)


2474
2475
2476
# File 'lib/google/apis/redis_v1/classes.rb', line 2474

def target_replica_count
  @target_replica_count
end

#target_shard_countFixnum

Target number of shards for redis cluster Corresponds to the JSON property targetShardCount

Returns:

  • (Fixnum)


2479
2480
2481
# File 'lib/google/apis/redis_v1/classes.rb', line 2479

def target_shard_count
  @target_shard_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2486
2487
2488
2489
# File 'lib/google/apis/redis_v1/classes.rb', line 2486

def update!(**args)
  @target_replica_count = args[:target_replica_count] if args.key?(:target_replica_count)
  @target_shard_count = args[:target_shard_count] if args.key?(:target_shard_count)
end