Google Cloud Deploy V1 Client - Class RetryPhase (1.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.

↳ phase_id string

Output only. The phase ID of the phase that includes the job being retried.

↳ job_id string

Output only. The job ID for the Job to retry.

↳ 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

getPhaseId

Output only. The phase ID of the phase that includes the job being retried.

Returns
Type Description
string

setPhaseId

Output only. The phase ID of the phase that includes the job being retried.

Parameter
Name Description
var string
Returns
Type Description
$this

getJobId

Output only. The job ID for the Job to retry.

Returns
Type Description
string

setJobId

Output only. The job ID for the Job to retry.

Parameter
Name Description
var string
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