google/cloud/bigquery/client.py
def cancel_job(self, job_id, project=None, retry=DEFAULT_RETRY):
        """Attempt to cancel a job from a job ID.

        See
        https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/cancel

        :type job_id: str
        :param job_id: Name of the job.

        :type project: str
        :param project:
            project ID owning the job (defaults to the client's project)

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: One of:
                :class:`google.cloud.bigquery.job.LoadJob`,
                :class:`google.cloud.bigquery.job.CopyJob`,
                :class:`google.cloud.bigquery.job.ExtractJob`,
                or :class:`google.cloud.bigquery.job.QueryJob`
        :returns:
            Concrete job instance, based on the resource returned by the API.
        """
        extra_params = {'projection': 'full'}

        if project is None:
            project = self.project

        path = '/projects/{}/jobs/{}/cancel'.format(project, job_id)

        resource = self._call_api(
            retry, method='POST', path=path, query_params=extra_params)

        return self.job_from_resource(resource['job'])
Attempt to cancel a job from a job ID.

        See
        https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/cancel

        :type job_id: str
        :param job_id: Name of the job.

        :type project: str
        :param project:
            project ID owning the job (defaults to the client's project)

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: One of:
                :class:`google.cloud.bigquery.job.LoadJob`,
                :class:`google.cloud.bigquery.job.CopyJob`,
                :class:`google.cloud.bigquery.job.ExtractJob`,
                or :class:`google.cloud.bigquery.job.QueryJob`
        :returns:
            Concrete job instance, based on the resource returned by the API.
        
Attempt to cancel a job from a job ID.
Attempt to cancel a job from a job ID .
def cancel_job(self, job_id, project=None, retry=DEFAULT_RETRY):
        extra_params = {'projection': 'full'}
        if project is None:
            project = self.project
        path = '/projects/{}/jobs/{}/cancel'.format(project, job_id)
        resource = self._call_api(
            retry, method='POST', path=path, query_params=extra_params)
        return self.job_from_resource(resource['job'])
def cancel_job ( self , job_id , project = None , retry = DEFAULT_RETRY ) : extra_params = { 'projection' : 'full' } if project is None : project = self . project path = '/projects/{}/jobs/{}/cancel' . format ( project , job_id ) resource = self . _call_api ( retry , method = 'POST' , path = path , query_params = extra_params ) return self . job_from_resource ( resource [ 'job' ] )
Attempt to cancel a job from a job ID.
Attempt to cancel a job from a job ID .
"""Attempt to cancel a job from a job ID.

        See
        https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/cancel

        :type job_id: str
        :param job_id: Name of the job.

        :type project: str
        :param project:
            project ID owning the job (defaults to the client's project)

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: One of:
                :class:`google.cloud.bigquery.job.LoadJob`,
                :class:`google.cloud.bigquery.job.CopyJob`,
                :class:`google.cloud.bigquery.job.ExtractJob`,
                or :class:`google.cloud.bigquery.job.QueryJob`
        :returns:
            Concrete job instance, based on the resource returned by the API.
        """
Concrete job instance, based on the resource returned by the API.
Concrete job instance based on the resource returned by the API .
One of:
:class:`google.cloud.bigquery.job.LoadJob`,
:class:`google.cloud.bigquery.job.CopyJob`,
:class:`google.cloud.bigquery.job.ExtractJob`,
or :class:`google.cloud.bigquery.job.QueryJob`
self
job_id
Name of the job.
Name of the job .
project
project ID owning the job (defaults to the client's project)
project ID owning the job ( defaults to the client ' s project )
the client's project)
retry
(Optional) How to retry the RPC.
( Optional ) How to retry the RPC .