Class CopyJob (3.33.0)

  CopyJob 
 ( 
 job_id 
 , 
 sources 
 , 
 destination 
 , 
 client 
 , 
 job_config 
 = 
 None 
 ) 
 

Asynchronous job: copy data into a table from other tables.

Parameters

Name
Description
job_id
str

the job's ID, within the project belonging to client .

sources
List[ google.cloud.bigquery.table.TableReference ]

Table from which data is to be loaded.

destination
google.cloud.bigquery.table.TableReference

Table into which data is to be loaded.

client
google.cloud.bigquery.client.Client

A client which holds credentials and project configuration for the dataset (which requires a project).

job_config
Optional[ google.cloud.bigquery.job.CopyJobConfig ]

Extra configuration options for the copy job.

Properties

configuration

The configuration for this copy job.

create_disposition

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 .

sources

List[ google.cloud.bigquery.table.TableReference ]): Table(s) from which data is to be loaded.

write_disposition

Methods

from_api_repr

  from_api_repr 
 ( 
 resource 
 , 
 client 
 ) 
 

Factory: construct a job given its API representation

Parameters
Name
Description
resource
Dict

dataset job representation returned from the API

client
google.cloud.bigquery.client.Client

Client which holds credentials and project configuration for the dataset.

Returns
Type
Description
google.cloud.bigquery.job.CopyJob
Job parsed from resource .

to_api_repr

  to_api_repr 
 () 
 

Generate a resource for _begin .

Create a Mobile Website
View Site in Mobile | Classic
Share by: