Class: Google::Apis::BigtableadminV2::AutoscalingLimits

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

Instance Method Summary collapse

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_nodesFixnum

Required. Maximum number of nodes to scale up to. Corresponds to the JSON property maxServeNodes

Returns:

  • (Fixnum)


251
252
253
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 251

def max_serve_nodes
  @max_serve_nodes
end

#min_serve_nodesFixnum

Required. Minimum number of nodes to scale down to. Corresponds to the JSON property minServeNodes

Returns:

  • (Fixnum)


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