lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.10.0 vs lib/google/apis/clouddeploy_v1/service.rb in google-apis-clouddeploy_v1-0.11.0

- old
+ new

@@ -526,9 +526,43 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Abandons a Release in the Delivery Pipeline. + # @param [String] name + # Required. Name of the Release. Format is projects/`project`/locations/` + # location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`. + # @param [Google::Apis::ClouddeployV1::AbandonReleaseRequest] abandon_release_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ClouddeployV1::AbandonReleaseResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClouddeployV1::AbandonReleaseResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def abandon_release(name, abandon_release_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:abandon', options) + command.request_representation = Google::Apis::ClouddeployV1::AbandonReleaseRequest::Representation + command.request_object = abandon_release_request_object + command.response_representation = Google::Apis::ClouddeployV1::AbandonReleaseResponse::Representation + command.response_class = Google::Apis::ClouddeployV1::AbandonReleaseResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new Release in a given project and location. # @param [String] parent # Required. The parent collection in which the `Release` should be created. # Format should be projects/`project_id`/locations/`location_name`/ # deliveryPipelines/`pipeline_name`.