Class: Google::Apis::BigtableadminV2::ClusterAutoscalingConfig

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

Autoscaling config for a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterAutoscalingConfig

Returns a new instance of ClusterAutoscalingConfig.



687
688
689
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 687

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

Instance Attribute Details

#autoscaling_limitsGoogle::Apis::BigtableadminV2::AutoscalingLimits

Limits for the number of nodes a Cluster can autoscale up/down to. Corresponds to the JSON property autoscalingLimits



680
681
682
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 680

def autoscaling_limits
  @autoscaling_limits
end

#autoscaling_targetsGoogle::Apis::BigtableadminV2::AutoscalingTargets

The Autoscaling targets for a Cluster. These determine the recommended nodes. Corresponds to the JSON property autoscalingTargets



685
686
687
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 685

def autoscaling_targets
  @autoscaling_targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



692
693
694
695
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 692

def update!(**args)
  @autoscaling_limits = args[:autoscaling_limits] if args.key?(:autoscaling_limits)
  @autoscaling_targets = args[:autoscaling_targets] if args.key?(:autoscaling_targets)
end