# Cloud Build V1 API - Class Google::Cloud::Build::V1::ApprovalResult (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::ApprovalResult.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #approval_time

    def approval_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the approval decision was made.

### #approver_account

    def approver_account() -> ::String

**Returns**

- (::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.

### #comment

    def comment() -> ::String

**Returns**

- (::String) --- Optional. An optional comment for this manual approval result.

### #comment=

    def comment=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. An optional comment for this manual approval result.
**Returns**

- (::String) --- Optional. An optional comment for this manual approval result.

### #decision

    def decision() -> ::Google::Cloud::Build::V1::ApprovalResult::Decision

**Returns**

- ([::Google::Cloud::Build::V1::ApprovalResult::Decision](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-ApprovalResult-Decision)) --- Required. The decision of this manual approval.

### #decision=

    def decision=(value) -> ::Google::Cloud::Build::V1::ApprovalResult::Decision

**Parameter**

- **value** ([::Google::Cloud::Build::V1::ApprovalResult::Decision](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-ApprovalResult-Decision)) --- Required. The decision of this manual approval.
**Returns**

- ([::Google::Cloud::Build::V1::ApprovalResult::Decision](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-ApprovalResult-Decision)) --- Required. The decision of this manual approval.

### #url

    def url() -> ::String

**Returns**

- (::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.

### #url=

    def url=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.