Google Cloud Deploy V1 Client - Class Retry (1.0.0)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class Retry.

Retries the failed job.

Generated from protobuf message google.cloud.deploy.v1.Retry

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ attempts int|string

Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.

↳ wait Google\Protobuf\Duration

Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.

↳ backoff_mode int

Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if wait is 0.

getAttempts

Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.

Returns
Type Description
int|string

setAttempts

Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getWait

Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.

Returns
Type Description
Google\Protobuf\Duration|null

hasWait

clearWait

setWait

Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.

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

getBackoffMode

Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if wait is 0.

Returns
Type Description
int

setBackoffMode

Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if wait is 0.

Parameter
Name Description
var int
Returns
Type Description
$this