Google Cloud Deploy V1 Client - Class RetryPhase (0.14.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
NameDescription
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
TypeDescription
int|string

setTotalAttempts

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getBackoffMode

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

Returns
TypeDescription
int

setBackoffMode

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPhaseId

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

Returns
TypeDescription
string

setPhaseId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getJobId

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

Returns
TypeDescription
string

setJobId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttempts

Output only. Detail of a retry action.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAttempts

Output only. Detail of a retry action.

Parameter
NameDescription
var array<Google\Cloud\Deploy\V1\RetryAttempt>
Returns
TypeDescription
$this