# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::BasicScaling (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 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

    def idle_timeout() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down.

### #idle_timeout=

    def idle_timeout=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Duration of time after the last request that an instance must wait before the instance is shut down.

### #max_instances

    def max_instances() -> ::Integer

**Returns**

- (::Integer) --- Maximum number of instances to create for this version.

### #max_instances=

    def max_instances=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum number of instances to create for this version.
**Returns**

- (::Integer) --- Maximum number of instances to create for this version.