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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getMaxInstances

Maximum number of instances to create for this version.

Returns
TypeDescription
int

setMaxInstances

Maximum number of instances to create for this version.

Parameter
NameDescription
var int
Returns
TypeDescription
$this