Class: Google::Apis::BigtableadminV1::ClusterAutoscalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV1::ClusterAutoscalingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v1/classes.rb,
lib/google/apis/bigtableadmin_v1/representations.rb,
lib/google/apis/bigtableadmin_v1/representations.rb
Overview
Autoscaling config for a cluster.
Instance Attribute Summary collapse
-
#autoscaling_limits ⇒ Google::Apis::BigtableadminV1::AutoscalingLimits
Limits for the number of nodes a Cluster can autoscale up/down to.
-
#autoscaling_targets ⇒ Google::Apis::BigtableadminV1::AutoscalingTargets
The Autoscaling targets for a Cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterAutoscalingConfig
constructor
A new instance of ClusterAutoscalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterAutoscalingConfig
Returns a new instance of ClusterAutoscalingConfig.
261 262 263 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling_limits ⇒ Google::Apis::BigtableadminV1::AutoscalingLimits
Limits for the number of nodes a Cluster can autoscale up/down to.
Corresponds to the JSON property autoscalingLimits
254 255 256 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 254 def autoscaling_limits @autoscaling_limits end |
#autoscaling_targets ⇒ Google::Apis::BigtableadminV1::AutoscalingTargets
The Autoscaling targets for a Cluster. These determine the recommended nodes.
Corresponds to the JSON property autoscalingTargets
259 260 261 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 259 def autoscaling_targets @autoscaling_targets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
266 267 268 269 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 266 def update!(**args) @autoscaling_limits = args[:autoscaling_limits] if args.key?(:autoscaling_limits) @autoscaling_targets = args[:autoscaling_targets] if args.key?(:autoscaling_targets) end |