Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::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.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#idle_timeout
defidle_timeout()->::Google::Protobuf::Duration
Returns
(::Google::Protobuf::Duration) — Duration of time after the last request that an instance must wait before
the instance is shut down.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::BasicScaling (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-BasicScaling)\n- [1.2.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.2.1/Google-Cloud-AppEngine-V1-BasicScaling)\n- [1.1.0](/ruby/docs/reference/google-cloud-app_engine-v1/1.1.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [1.0.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.0.1/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.10.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.10.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.9.2](/ruby/docs/reference/google-cloud-app_engine-v1/0.9.2/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.8.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.8.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.7.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.7.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.6.1](/ruby/docs/reference/google-cloud-app_engine-v1/0.6.1/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.5.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.5.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.4.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.4.0/Google-Cloud-AppEngine-V1-BasicScaling)\n- [0.3.6](/ruby/docs/reference/google-cloud-app_engine-v1/0.3.6/Google-Cloud-AppEngine-V1-BasicScaling) \nReference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::BasicScaling.\n\nA service with basic scaling will create an instance when the application\nreceives a request. The instance will be turned down when the app becomes\nidle. Basic scaling is ideal for work that is intermittent or driven by\nuser activity. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #idle_timeout\n\n def idle_timeout() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down.\n\n### #idle_timeout=\n\n def idle_timeout=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down.\n\n### #max_instances\n\n def max_instances() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Maximum number of instances to create for this version.\n\n### #max_instances=\n\n def max_instances=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Maximum number of instances to create for this version. \n**Returns**\n\n- (::Integer) --- Maximum number of instances to create for this version."]]