def cancel(resource_group_name, registry_name, run_id, custom_headers:nil)
      response = cancel_async(resource_group_name, registry_name, run_id, custom_headers:custom_headers).value!
      nil
    end
def cancel(resource_group_name, registry_name, run_id, custom_headers:nil)
      response = cancel_async(resource_group_name, registry_name, run_id, custom_headers:custom_headers).value!
      nil
    end
Cancel an existing run.

 @param resource_group_name [String] The name of the resource group to which
 the container registry belongs.
 @param registry_name [String] The name of the container registry.
 @param run_id [String] The run ID.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.