Class: Google::Apis::AlloydbV1beta::AutoScalingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

Configuration for autoscaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoScalingConfig

Returns a new instance of AutoScalingConfig.



83
84
85
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 83

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

Instance Attribute Details

#policyGoogle::Apis::AlloydbV1beta::Policy

Policy for the autoscaler. Corresponds to the JSON property policy



75
76
77
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 75

def policy
  @policy
end

#schedulesArray<Google::Apis::AlloydbV1beta::Schedule>

Optional list of schedules for the MIG autoscaler. If not set, no schedules are created. Corresponds to the JSON property schedules



81
82
83
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 81

def schedules
  @schedules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 88

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