Google Cloud Build V1 Client - Class ApproveBuildRequest (0.9.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setName

Required. Name of the target build.

For example: "projects/{$project_id}/builds/{$build_id}"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApprovalResult

Approval decision and metadata.

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

hasApprovalResult

clearApprovalResult

setApprovalResult

Approval decision and metadata.

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