def cancel(group_name, service_name, project_name, task_name, custom_headers:nil)
      response = cancel_async(group_name, service_name, project_name, task_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def cancel(group_name, service_name, project_name, task_name, custom_headers:nil)
      response = cancel_async(group_name, service_name, project_name, task_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Cancel a task

 The tasks resource is a nested, proxy-only resource representing work
 performed by a DMS instance. This method cancels a task if it's currently
 queued or running.

 @param group_name [String] Name of the resource group
 @param service_name [String] Name of the service
 @param project_name [String] Name of the project
 @param task_name [String] Name of the Task
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ProjectTask] operation results.