Class BigQueryDestination (0.1.0)

BigQueryDestination(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A BigQuery destination for exporting assets to.

Attributes

Name Description
dataset str
Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.
table str
Required. The BigQuery table to which the snapshot result should be written.
partition_key google.cloud.capacityplanner_v1beta.types.BigQueryDestination.PartitionKey
Optional. The partition key for BigQuery partitioned table.
write_disposition google.cloud.capacityplanner_v1beta.types.BigQueryDestination.WriteDisposition
Optional. Specifies the action that occurs if the destination table or partition already exists.
create_disposition google.cloud.capacityplanner_v1beta.types.BigQueryDestination.CreateDisposition
Optional. Specifies the action that occurs if the destination table does not exist
gcs_location str
Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

Classes

CreateDisposition

CreateDisposition(value)

Specifies the action that occurs if the destination table does not exist. By default, a new table will be created.

PartitionKey

PartitionKey(value)

This enum determines the partition key column for the BigQuery tables. Partitioning can improve query performance and reduce query cost by filtering partitions. Refer to https://cloud.google.com/bigquery/docs/partitioned-tables for details.

WriteDisposition

WriteDisposition(value)

Specifies the action that occurs if the destination table or partition already exists. By default, the data will be appended to the existing table.