Google Cloud Appengine Admin V1 Client - Class BasicScaling (1.3.5)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class 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.

Generated from protobuf message google.appengine.v1.BasicScaling

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ idle_timeout Google\Protobuf\Duration

Duration of time after the last request that an instance must wait before the instance is shut down.

↳ max_instances int

Maximum number of instances to create for this version.

getIdleTimeout

Duration of time after the last request that an instance must wait before the instance is shut down.

Returns
Type Description
Google\Protobuf\Duration|null

hasIdleTimeout

clearIdleTimeout

setIdleTimeout

Duration of time after the last request that an instance must wait before the instance is shut down.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getMaxInstances

Maximum number of instances to create for this version.

Returns
Type Description
int

setMaxInstances

Maximum number of instances to create for this version.

Parameter
Name Description
var int
Returns
Type Description
$this