Google Cloud Run V2 Client - Class TaskAttemptResult (1.5.0)

Reference documentation and code samples for the Google Cloud Run V2 Client class TaskAttemptResult.

Result of a task attempt.

Generated from protobuf message google.cloud.run.v2.TaskAttemptResult

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ status Google\Rpc\Status

Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.

↳ exit_code int

Output only. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.

getStatus

Output only. The status of this attempt.

If the status code is OK, then the attempt succeeded.

Returns
Type Description
Google\Rpc\Status|null

hasStatus

clearStatus

setStatus

Output only. The status of this attempt.

If the status code is OK, then the attempt succeeded.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getExitCode

Output only. The exit code of this attempt.

This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.

Returns
Type Description
int

setExitCode

Output only. The exit code of this attempt.

This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.

Parameter
Name Description
var int
Returns
Type Description
$this