Class: Google::Apis::RedisV1beta1::UpdateInfo
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::UpdateInfo
- 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
-
#target_node_type ⇒ String
Target node type for redis cluster.
-
#target_replica_count ⇒ Fixnum
Target number of replica nodes per shard.
-
#target_shard_count ⇒ Fixnum
Target number of shards for redis cluster Corresponds to the JSON property
targetShardCount.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateInfo
constructor
A new instance of UpdateInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateInfo
Returns a new instance of UpdateInfo.
4629 4630 4631 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4629 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_node_type ⇒ String
Target node type for redis cluster.
Corresponds to the JSON property targetNodeType
4617 4618 4619 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4617 def target_node_type @target_node_type end |
#target_replica_count ⇒ Fixnum
Target number of replica nodes per shard.
Corresponds to the JSON property targetReplicaCount
4622 4623 4624 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4622 def target_replica_count @target_replica_count end |
#target_shard_count ⇒ Fixnum
Target number of shards for redis cluster
Corresponds to the JSON property targetShardCount
4627 4628 4629 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4627 def target_shard_count @target_shard_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4634 4635 4636 4637 4638 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 4634 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 |