Class ApprovalResult (2.0.0)

public sealed class ApprovalResult : IMessage<ApprovalResult>, IEquatable<ApprovalResult>, IDeepCloneable<ApprovalResult>, IBufferMessage, IMessage

ApprovalResult describes the decision and associated metadata of a manual approval of a build.

Inheritance

Object > ApprovalResult

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

ApprovalResult()

public ApprovalResult()

ApprovalResult(ApprovalResult)

public ApprovalResult(ApprovalResult other)
Parameter
NameDescription
otherApprovalResult

Properties

ApprovalTime

public Timestamp ApprovalTime { get; set; }

Output only. The time when the approval decision was made.

Property Value
TypeDescription
Timestamp

ApproverAccount

public string ApproverAccount { get; set; }

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.

Property Value
TypeDescription
String

Comment

public string Comment { get; set; }

Optional. An optional comment for this manual approval result.

Property Value
TypeDescription
String

Decision

public ApprovalResult.Types.Decision Decision { get; set; }

Required. The decision of this manual approval.

Property Value
TypeDescription
ApprovalResult.Types.Decision

Url

public string Url { get; set; }

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.

Property Value
TypeDescription
String