Class: Google::Apis::AppengineV1::BasicScaling
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1::BasicScaling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#idle_timeout ⇒ String
Duration of time after the last request that an instance must wait before the instance is shut down.
-
#max_instances ⇒ Fixnum
Maximum number of instances to create for this version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicScaling
constructor
A new instance of BasicScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BasicScaling
Returns a new instance of BasicScaling
1911 1912 1913 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 1911 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_timeout ⇒ String
Duration of time after the last request that an instance must wait before the
instance is shut down.
Corresponds to the JSON property idleTimeout
1909 1910 1911 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 1909 def idle_timeout @idle_timeout end |
#max_instances ⇒ Fixnum
Maximum number of instances to create for this version.
Corresponds to the JSON property maxInstances
1903 1904 1905 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 1903 def max_instances @max_instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1916 1917 1918 1919 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 1916 def update!(**args) @max_instances = args[:max_instances] if args.key?(:max_instances) @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout) end |