Google Cloud Deploy V1 Client - Class RetryPhase (2.0.0)

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

RetryPhase contains the retry attempts and the metadata for initiating a new attempt.

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

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ total_attempts int|string

Output only. The number of attempts that have been made.

↳ backoff_mode int

Output only. The pattern of how the wait time of the retry attempt is calculated.

↳ attempts array<Google\Cloud\Deploy\V1\RetryAttempt>

Output only. Detail of a retry action.

getTotalAttempts

Output only. The number of attempts that have been made.

Returns
Type Description
int|string

setTotalAttempts

Output only. The number of attempts that have been made.

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

getBackoffMode

Output only. The pattern of how the wait time of the retry attempt is calculated.

Returns
Type Description
int

setBackoffMode

Output only. The pattern of how the wait time of the retry attempt is calculated.

Parameter
Name Description
var int
Returns
Type Description
$this

getAttempts

Output only. Detail of a retry action.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAttempts

Output only. Detail of a retry action.

Parameter
Name Description
var array<Google\Cloud\Deploy\V1\RetryAttempt>
Returns
Type Description
$this