Class: Google::Apis::BigtableadminV2::AutoscalingLimits
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::AutoscalingLimits
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
Limits for the number of nodes a Cluster can autoscale up/down to.
Instance Attribute Summary collapse
-
#max_serve_nodes ⇒ Fixnum
Required.
-
#min_serve_nodes ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingLimits
constructor
A new instance of AutoscalingLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingLimits
Returns a new instance of AutoscalingLimits.
258 259 260 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 258 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_serve_nodes ⇒ Fixnum
Required. Maximum number of nodes to scale up to.
Corresponds to the JSON property maxServeNodes
251 252 253 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 251 def max_serve_nodes @max_serve_nodes end |
#min_serve_nodes ⇒ Fixnum
Required. Minimum number of nodes to scale down to.
Corresponds to the JSON property minServeNodes
256 257 258 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 256 def min_serve_nodes @min_serve_nodes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
263 264 265 266 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 263 def update!(**args) @max_serve_nodes = args[:max_serve_nodes] if args.key?(:max_serve_nodes) @min_serve_nodes = args[:min_serve_nodes] if args.key?(:min_serve_nodes) end |