generated/google/apis/storagetransfer_v1/service.rb in google-api-client-0.46.0 vs generated/google/apis/storagetransfer_v1/service.rb in google-api-client-0.46.1
- old
+ new
@@ -115,11 +115,11 @@
execute_or_queue_command(command, &block)
end
# Gets a transfer job.
# @param [String] job_name
- # " Required. The job to get.
+ # Required. " The job to get.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform Console project that owns the
# job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -244,10 +244,11 @@
# before you canceled the job, tomorrow's transfer operation will compute a new
# delta with the five files that were not copied today plus any new files
# discovered tomorrow.
# @param [String] name
# The name of the operation resource to be cancelled.
+ # @param [Google::Apis::StoragetransferV1::CancelOperationRequest] cancel_operation_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.
@@ -261,11 +262,13 @@
# @return [Google::Apis::StoragetransferV1::Empty]
#
# @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 cancel_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
+ def cancel_transfer_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
+ command.request_representation = Google::Apis::StoragetransferV1::CancelOperationRequest::Representation
+ command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
command.response_class = Google::Apis::StoragetransferV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?