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 \ InstanceMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
RESTART_POLICY_UNSPECIFIED
Value: 0Unspecified restart policy.
Generated from protobuf enum RESTART_POLICY_UNSPECIFIED = 0;
ALWAYS
Value: 1Always restart the instance.
Generated from protobuf enum ALWAYS = 1;
ON_FAILURE
Value: 2Restart if the instance terminates with non-zero exit code.
Generated from protobuf enum ON_FAILURE = 2;
NEVER
Value: 3Never restart the instance.
Generated from protobuf enum NEVER = 3;