Google Cloud Run V2 Client - Class RestartPolicy (1.15.0)

Reference documentation and code samples for the Google Cloud Run V2 Client class RestartPolicy.

Restart policy options for the instance. If not provided, the default is ON_FAILURE.

Protobuf type google.cloud.run.v2.Instance.RestartPolicy

Namespace

Google \ Cloud \ Run \ V2 \ Instance

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

RESTART_POLICY_UNSPECIFIED

Value: 0

Unspecified restart policy.

Generated from protobuf enum RESTART_POLICY_UNSPECIFIED = 0;

ALWAYS

Value: 1

Always restart the instance.

Generated from protobuf enum ALWAYS = 1;

ON_FAILURE

Value: 2

Restart if the instance terminates with non-zero exit code.

Generated from protobuf enum ON_FAILURE = 2;

NEVER

Value: 3

Never restart the instance.

Generated from protobuf enum NEVER = 3;