Google Cloud Deploy V1 Client - Class RetryAttempt (0.16.0)

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

RetryAttempt represents an action of retrying the failed Cloud Deploy job.

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

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attempt int|string

Output only. The index of this retry attempt.

↳ wait Google\Protobuf\Duration

Output only. How long the operation will be paused.

↳ state int

Output only. Valid state of this retry action.

↳ state_desc string

Output only. Description of the state of the Retry.

getAttempt

Output only. The index of this retry attempt.

Returns
TypeDescription
int|string

setAttempt

Output only. The index of this retry attempt.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getWait

Output only. How long the operation will be paused.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasWait

clearWait

setWait

Output only. How long the operation will be paused.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getState

Output only. Valid state of this retry action.

Returns
TypeDescription
int

setState

Output only. Valid state of this retry action.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDesc

Output only. Description of the state of the Retry.

Returns
TypeDescription
string

setStateDesc

Output only. Description of the state of the Retry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this