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.



710
711
712
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 710

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



703
704
705
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 703

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



708
709
710
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 708

def autoscaling_targets
  @autoscaling_targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



715
716
717
718
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 715

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