Class: Google::Apis::RedisV1beta1::UpdateInfo

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

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.



4577
4578
4579
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4577

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

Instance Attribute Details

#target_node_typeString

Target node type for redis cluster. Corresponds to the JSON property targetNodeType

Returns:

  • (String)


4565
4566
4567
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4565

def target_node_type
  @target_node_type
end

#target_replica_countFixnum

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

Returns:

  • (Fixnum)


4570
4571
4572
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4570

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)


4575
4576
4577
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4575

def target_shard_count
  @target_shard_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4582
4583
4584
4585
4586
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4582

def update!(**args)
  @target_node_type = args[:target_node_type] if args.key?(:target_node_type)
  @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