class Google::Apis::AppengineV1beta5::BasicScaling
A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
Attributes
idle_timeout[RW]
The instance will be shut down this amount of time after receiving its last request. Corresponds to the JSON property `idleTimeout` @return [String]
max_instances[RW]
The maximum number of instances for App Engine to create for this version. Corresponds to the JSON property `maxInstances` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/appengine_v1beta5/classes.rb, line 766 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/appengine_v1beta5/classes.rb, line 771 def update!(**args) @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout) @max_instances = args[:max_instances] if args.key?(:max_instances) end