Class: Google::Apis::CloudbuildV1::ApproveBuildRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

Request to approve or reject a pending build.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApproveBuildRequest

Returns a new instance of ApproveBuildRequest.



104
105
106
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 104

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#approval_resultGoogle::Apis::CloudbuildV1::ApprovalResult

ApprovalResult describes the decision and associated metadata of a manual approval of a build. Corresponds to the JSON property approvalResult



102
103
104
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 102

def approval_result
  @approval_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



109
110
111
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 109

def update!(**args)
  @approval_result = args[:approval_result] if args.key?(:approval_result)
end