class Google::Apis::AppengineV1beta::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]

Duration of time after the last request that an instance must wait before the instance is shut down. Corresponds to the JSON property `idleTimeout` @return [String]

max_instances[RW]

Maximum number of instances to create for this version. Corresponds to the JSON property `maxInstances` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/appengine_v1beta/classes.rb, line 452
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/appengine_v1beta/classes.rb, line 457
def update!(**args)
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
  @max_instances = args[:max_instances] if args.key?(:max_instances)
end