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:



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1260

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.



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1260

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.



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1260

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:



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1260

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.



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1260

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