Class: Google::Cloud::Build::V1::ApprovalResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

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

Defined Under Namespace

Modules: Decision

Instance Attribute Summary collapse

Instance Attribute Details

#approval_time::Google::Protobuf::Timestamp (readonly)

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

Returns:



1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1512

class ApprovalResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies whether or not this manual approval result is to approve
  # or reject a build.
  module Decision
    # Default enum type. This should not be used.
    DECISION_UNSPECIFIED = 0

    # Build is approved.
    APPROVED = 1

    # Build is rejected.
    REJECTED = 2
  end
end

#approver_account::String (readonly)

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

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.



1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1512

class ApprovalResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies whether or not this manual approval result is to approve
  # or reject a build.
  module Decision
    # Default enum type. This should not be used.
    DECISION_UNSPECIFIED = 0

    # Build is approved.
    APPROVED = 1

    # Build is rejected.
    REJECTED = 2
  end
end

#comment::String

Returns Optional. An optional comment for this manual approval result.

Returns:

  • (::String)

    Optional. An optional comment for this manual approval result.



1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1512

class ApprovalResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies whether or not this manual approval result is to approve
  # or reject a build.
  module Decision
    # Default enum type. This should not be used.
    DECISION_UNSPECIFIED = 0

    # Build is approved.
    APPROVED = 1

    # Build is rejected.
    REJECTED = 2
  end
end

#decision::Google::Cloud::Build::V1::ApprovalResult::Decision

Returns Required. The decision of this manual approval.

Returns:



1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1512

class ApprovalResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies whether or not this manual approval result is to approve
  # or reject a build.
  module Decision
    # Default enum type. This should not be used.
    DECISION_UNSPECIFIED = 0

    # Build is approved.
    APPROVED = 1

    # Build is rejected.
    REJECTED = 2
  end
end

#url::String

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



1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1512

class ApprovalResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies whether or not this manual approval result is to approve
  # or reject a build.
  module Decision
    # Default enum type. This should not be used.
    DECISION_UNSPECIFIED = 0

    # Build is approved.
    APPROVED = 1

    # Build is rejected.
    REJECTED = 2
  end
end