Reference documentation and code samples for the Google Cloud Build V1 Client class ApproveBuildRequest.
Request to approve or reject a pending build.
Generated from protobuf message google.devtools.cloudbuild.v1.ApproveBuildRequest
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}" |
↳ approval_result |
Google\Cloud\Build\V1\ApprovalResult
Approval decision and metadata. |
getName
Required. Name of the target build.
For example: "projects/{$project_id}/builds/{$build_id}"
Returns | |
---|---|
Type | Description |
string |
setName
Required. Name of the target build.
For example: "projects/{$project_id}/builds/{$build_id}"
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getApprovalResult
Approval decision and metadata.
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V1\ApprovalResult|null |
hasApprovalResult
clearApprovalResult
setApprovalResult
Approval decision and metadata.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\ApprovalResult
|
Returns | |
---|---|
Type | Description |
$this |