Google Cloud Build V1 Client - Class ApproveBuildRequest (0.7.3)

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

hasApprovalResult

clearApprovalResult

setApprovalResult

Approval decision and metadata.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: