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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
int |
setState
Output only. The state of this build's approval.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getConfig
Output only. Configuration for manual approval of this build.
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V1\ApprovalConfig|null |
hasConfig
clearConfig
setConfig
Output only. Configuration for manual approval of this build.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\ApprovalConfig
|
Returns | |
---|---|
Type | Description |
$this |
getResult
Output only. Result of manual approval for this Build.
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V1\ApprovalResult|null |
hasResult
clearResult
setResult
Output only. Result of manual approval for this Build.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\ApprovalResult
|
Returns | |
---|---|
Type | Description |
$this |