Google Cloud Build V1 Client - Class BuildApproval (0.9.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class BuildApproval.

BuildApproval describes a build's approval configuration, state, and result.

Generated from protobuf message google.devtools.cloudbuild.v1.BuildApproval

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

Output only. The state of this build's approval.

↳ config Google\Cloud\Build\V1\ApprovalConfig

Output only. Configuration for manual approval of this build.

↳ result Google\Cloud\Build\V1\ApprovalResult

Output only. Result of manual approval for this Build.

getState

Output only. The state of this build's approval.

Returns
TypeDescription
int

setState

Output only. The state of this build's approval.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getConfig

Output only. Configuration for manual approval of this build.

Returns
TypeDescription
Google\Cloud\Build\V1\ApprovalConfig|null

hasConfig

clearConfig

setConfig

Output only. Configuration for manual approval of this build.

Parameter
NameDescription
var Google\Cloud\Build\V1\ApprovalConfig
Returns
TypeDescription
$this

getResult

Output only. Result of manual approval for this Build.

Returns
TypeDescription
Google\Cloud\Build\V1\ApprovalResult|null

hasResult

clearResult

setResult

Output only. Result of manual approval for this Build.

Parameter
NameDescription
var Google\Cloud\Build\V1\ApprovalResult
Returns
TypeDescription
$this