Reference documentation and code samples for the Google Cloud Build V1 Client class ApprovalResult.
ApprovalResult describes the decision and associated metadata of a manual approval of a build.
Generated from protobuf message google.devtools.cloudbuild.v1.ApprovalResult
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ approver_account
string
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
↳ approval_time
↳ decision
int
Required. The decision of this manual approval.
↳ comment
string
Optional. An optional comment for this manual approval result.
↳ url
string
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
getApproverAccount
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string
setApproverAccount
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
var
string
$this
getApprovalTime
Output only. The time when the approval decision was made.
hasApprovalTime
clearApprovalTime
setApprovalTime
Output only. The time when the approval decision was made.
$this
getDecision
Required. The decision of this manual approval.
int
setDecision
Required. The decision of this manual approval.
var
int
$this
getComment
Optional. An optional comment for this manual approval result.
string
setComment
Optional. An optional comment for this manual approval result.
var
string
$this
getUrl
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string
setUrl
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
var
string
$this