Class CopyJob (2.4.0)
 
 
 
 
 
 
 Stay organized with collections
 
 
 
 Save and categorize content based on your preferences.
 
   
 
 
 
 
 - 3.38.0 (latest)
 - 3.37.0
 - 3.36.0
 - 3.35.1
 - 3.34.0
 - 3.33.0
 - 3.31.0
 - 3.30.0
 - 3.29.0
 - 3.27.0
 - 3.26.0
 - 3.25.0
 - 3.24.0
 - 3.23.1
 - 3.22.0
 - 3.21.0
 - 3.20.1
 - 3.19.0
 - 3.18.0
 - 3.17.2
 - 3.16.0
 - 3.15.0
 - 3.14.1
 - 3.13.0
 - 3.12.0
 - 3.11.4
 - 3.4.0
 - 3.3.6
 - 3.2.0
 - 3.1.0
 - 3.0.1
 - 2.34.4
 - 2.33.0
 - 2.32.0
 - 2.31.0
 - 2.30.1
 - 2.29.0
 - 2.28.1
 - 2.27.1
 - 2.26.0
 - 2.25.2
 - 2.24.1
 - 2.23.3
 - 2.22.1
 - 2.21.0
 - 2.20.0
 - 2.19.0
 - 2.18.0
 - 2.17.0
 - 2.16.1
 - 2.15.0
 - 2.14.0
 - 2.13.1
 - 2.12.0
 - 2.11.0
 - 2.10.0
 - 2.9.0
 - 2.8.0
 - 2.7.0
 - 2.6.2
 - 2.5.0
 - 2.4.0
 - 2.3.1
 - 2.2.0
 - 2.1.0
 - 2.0.0
 - 1.28.2
 - 1.27.2
 - 1.26.1
 - 1.25.0
 - 1.24.0
 - 1.23.1
 - 1.22.0
 - 1.21.0
 - 1.20.0
 - 1.19.0
 - 1.18.0
 - 1.17.0
 - 1.16.0
 
CopyJob(job_id, sources, destination, client, job_config=None)Asynchronous job: copy data into a table from other tables.
Parameters
str
 	the job's ID, within the project belonging to client.
List[google.cloud.bigquery.table.TableReference]
 	Table from which data is to be loaded.
google.cloud.bigquery.table.TableReference
 	Table into which data is to be loaded.
google.cloud.bigquery.client.Client 
 	A client which holds credentials and project configuration for the dataset (which requires a project).
Optional[google.cloud.bigquery.job.CopyJobConfig]
 	Extra configuration options for the copy job.
Inheritance
builtins.object > google.api_core.future.base.Future > google.api_core.future.polling.PollingFuture > google.cloud.bigquery.job.base._AsyncJob > CopyJobProperties
create_disposition
See create_disposition.
created
Datetime at which the job was created.
destination
google.cloud.bigquery.table.TableReference: Table into which data is to be loaded.
destination_encryption_configuration
google.cloud.bigquery.encryption_configuration.EncryptionConfiguration: Custom encryption configuration for the destination table.
Custom encryption configuration (e.g., Cloud KMS keys) or :data:None
if using default encryption.
See destination_encryption_configuration.
ended
Datetime at which the job finished.
error_result
Error information about the job as a whole.
errors
Information about individual errors generated by the job.
etag
ETag for the job resource.
Methods
add_done_callback
add_done_callback(fn)Add a callback to be executed when the operation is complete.
If the operation is not already complete, this will start a helper thread to poll for the status of the operation in the background.
Callable[Future]
 The callback to execute when the operation is complete.
cancel
cancel(client=None, retry=<google.api_core.retry.Retry object>, timeout=None)API call: cancel job via a POST request
See https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/cancel
Optional[google.cloud.bigquery.client.Client]
 the client to use. If not passed, falls back to the client stored on the current dataset.
Optional[google.api_core.retry.Retry]
 How to retry the RPC.
Optional[float]
 The number of seconds to wait for the underlying HTTP transport before using retry
cancelled
cancelled()Check if the job has been cancelled.
This always returns False. It's not possible to check if a job was
cancelled in the API. This method is here to satisfy the interface
for google.api_core.future.Future.
done
done(retry=<google.api_core.retry.Retry object>, timeout=None, reload=True)Checks if the job is complete.
Optional[google.api_core.retry.Retry]
 How to retry the RPC.
Optional[float]
 The number of seconds to wait for the underlying HTTP transport before using retry.
Optional[bool]
 If True, make an API call to refresh the job state of unfinished jobs before checking. Default True.
exception
exception(timeout=None)Get the exception from the operation, blocking if necessary.
int
 How long to wait for the operation to complete. If None, wait indefinitely.
exists
exists(client=None, retry=<google.api_core.retry.Retry object>, timeout=None)API call: test for the existence of the job via a GET request
See https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/get
Optional[google.cloud.bigquery.client.Client]
 the client to use. If not passed, falls back to the client stored on the current dataset.
Optional[google.api_core.retry.Retry]
 How to retry the RPC.
Optional[float]
 The number of seconds to wait for the underlying HTTP transport before using retry.