class Google::Apis::AppengineV1beta4::BasicScaling

A module 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_v1beta4/classes.rb, line 559
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_v1beta4/classes.rb, line 564
def update!(**args)
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
  @max_instances = args[:max_instances] if args.key?(:max_instances)
end