Class: Google::Apis::AppengineV1beta4::BasicScaling
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::BasicScaling
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#idle_timeout ⇒ String
The instance will be shut down this amount of time after receiving its last request.
-
#max_instances ⇒ Fixnum
The maximum number of instances for App Engine 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::Hashable
Constructor Details
#initialize(**args) ⇒ BasicScaling
Returns a new instance of BasicScaling.
559 560 561 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 559 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_timeout ⇒ String
The instance will be shut down this amount of time after receiving its last
request.
Corresponds to the JSON property idleTimeout
552 553 554 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 552 def idle_timeout @idle_timeout end |
#max_instances ⇒ Fixnum
The maximum number of instances for App Engine to create for this version.
Corresponds to the JSON property maxInstances
557 558 559 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 557 def max_instances @max_instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
564 565 566 567 |
# 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 |