permalink |
---|
/bigquery_table/ |
bigquery_table
represents the google_bigquery_table
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withClustering()
fn withDatasetId()
fn withDeletionProtection()
fn withDescription()
fn withEncryptionConfiguration()
fn withEncryptionConfigurationMixin()
fn withExpirationTime()
fn withExternalDataConfiguration()
fn withExternalDataConfigurationMixin()
fn withFriendlyName()
fn withLabels()
fn withMaterializedView()
fn withMaterializedViewMixin()
fn withMaxStaleness()
fn withProject()
fn withRangePartitioning()
fn withRangePartitioningMixin()
fn withSchema()
fn withTableConstraints()
fn withTableConstraintsMixin()
fn withTableId()
fn withTimePartitioning()
fn withTimePartitioningMixin()
fn withView()
fn withViewMixin()
obj encryption_configuration
obj external_data_configuration
fn new()
obj external_data_configuration.avro_options
obj external_data_configuration.csv_options
obj external_data_configuration.google_sheets_options
obj external_data_configuration.hive_partitioning_options
obj external_data_configuration.json_options
obj external_data_configuration.parquet_options
obj materialized_view
obj range_partitioning
obj table_constraints
obj time_partitioning
obj view
new()
google.bigquery_table.new
injects a new google_bigquery_table
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.bigquery_table.new('some_id')
You can get the reference to the id
field of the created google.bigquery_table
using the reference:
$._ref.google_bigquery_table.some_id.get('id')
This is the same as directly entering "${ google_bigquery_table.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.clustering
(list
): Specifies column names to use for data clustering. Up to four top-level columns are allowed, and should be specified in descending priority order. Whennull
, theclustering
field will be omitted from the resulting object.dataset_id
(string
): The dataset ID to create the table in. Changing this forces a new resource to be created.deletion_protection
(bool
): Whether or not to allow Terraform to destroy the instance. Unless this field is set to false in Terraform state, a terraform destroy or terraform apply that would delete the instance will fail. Whennull
, thedeletion_protection
field will be omitted from the resulting object.description
(string
): The field description. Whennull
, thedescription
field will be omitted from the resulting object.expiration_time
(number
): The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. Whennull
, theexpiration_time
field will be omitted from the resulting object.friendly_name
(string
): A descriptive name for the table. Whennull
, thefriendly_name
field will be omitted from the resulting object.labels
(obj
): A mapping of labels to assign to the resource. Whennull
, thelabels
field will be omitted from the resulting object.max_staleness
(string
): The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type. Whennull
, themax_staleness
field will be omitted from the resulting object.project
(string
): The ID of the project in which the resource belongs. Whennull
, theproject
field will be omitted from the resulting object.schema
(string
): A JSON schema for the table. Whennull
, theschema
field will be omitted from the resulting object.table_id
(string
): A unique ID for the resource. Changing this forces a new resource to be created.encryption_configuration
(list[obj]
): Specifies how the table should be encrypted. If left blank, the table will be encrypted with a Google-managed key; that process is transparent to the user. Whennull
, theencryption_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.encryption_configuration.new constructor.external_data_configuration
(list[obj]
): Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. Whennull
, theexternal_data_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.new constructor.materialized_view
(list[obj]
): If specified, configures this table as a materialized view. Whennull
, thematerialized_view
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.materialized_view.new constructor.range_partitioning
(list[obj]
): If specified, configures range-based partitioning for this table. Whennull
, therange_partitioning
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.range_partitioning.new constructor.table_constraints
(list[obj]
): Defines the primary key and foreign keys. Whennull
, thetable_constraints
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.new constructor.time_partitioning
(list[obj]
): If specified, configures time-based partitioning for this table. Whennull
, thetime_partitioning
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.time_partitioning.new constructor.view
(list[obj]
): If specified, configures this table as a view. Whennull
, theview
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.view.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.bigquery_table.newAttrs
constructs a new object with attributes and blocks configured for the bigquery_table
Terraform resource.
Unlike google.bigquery_table.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
clustering
(list
): Specifies column names to use for data clustering. Up to four top-level columns are allowed, and should be specified in descending priority order. Whennull
, theclustering
field will be omitted from the resulting object.dataset_id
(string
): The dataset ID to create the table in. Changing this forces a new resource to be created.deletion_protection
(bool
): Whether or not to allow Terraform to destroy the instance. Unless this field is set to false in Terraform state, a terraform destroy or terraform apply that would delete the instance will fail. Whennull
, thedeletion_protection
field will be omitted from the resulting object.description
(string
): The field description. Whennull
, thedescription
field will be omitted from the resulting object.expiration_time
(number
): The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. Whennull
, theexpiration_time
field will be omitted from the resulting object.friendly_name
(string
): A descriptive name for the table. Whennull
, thefriendly_name
field will be omitted from the resulting object.labels
(obj
): A mapping of labels to assign to the resource. Whennull
, thelabels
field will be omitted from the resulting object.max_staleness
(string
): The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type. Whennull
, themax_staleness
field will be omitted from the resulting object.project
(string
): The ID of the project in which the resource belongs. Whennull
, theproject
field will be omitted from the resulting object.schema
(string
): A JSON schema for the table. Whennull
, theschema
field will be omitted from the resulting object.table_id
(string
): A unique ID for the resource. Changing this forces a new resource to be created.encryption_configuration
(list[obj]
): Specifies how the table should be encrypted. If left blank, the table will be encrypted with a Google-managed key; that process is transparent to the user. Whennull
, theencryption_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.encryption_configuration.new constructor.external_data_configuration
(list[obj]
): Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. Whennull
, theexternal_data_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.new constructor.materialized_view
(list[obj]
): If specified, configures this table as a materialized view. Whennull
, thematerialized_view
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.materialized_view.new constructor.range_partitioning
(list[obj]
): If specified, configures range-based partitioning for this table. Whennull
, therange_partitioning
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.range_partitioning.new constructor.table_constraints
(list[obj]
): Defines the primary key and foreign keys. Whennull
, thetable_constraints
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.new constructor.time_partitioning
(list[obj]
): If specified, configures time-based partitioning for this table. Whennull
, thetime_partitioning
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.time_partitioning.new constructor.view
(list[obj]
): If specified, configures this table as a view. Whennull
, theview
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.view.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
bigquery_table
resource into the root Terraform configuration.
withClustering()
google.list.withClustering
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the clustering field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theclustering
field.
withDatasetId()
google.string.withDatasetId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the dataset_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedataset_id
field.
withDeletionProtection()
google.bool.withDeletionProtection
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the deletion_protection field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedeletion_protection
field.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withEncryptionConfiguration()
google.list[obj].withEncryptionConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the encryption_configuration field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withEncryptionConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theencryption_configuration
field.
withEncryptionConfigurationMixin()
google.list[obj].withEncryptionConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the encryption_configuration field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withEncryptionConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theencryption_configuration
field.
withExpirationTime()
google.number.withExpirationTime
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the expiration_time field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theexpiration_time
field.
withExternalDataConfiguration()
google.list[obj].withExternalDataConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the external_data_configuration field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withExternalDataConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theexternal_data_configuration
field.
withExternalDataConfigurationMixin()
google.list[obj].withExternalDataConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the external_data_configuration field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withExternalDataConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theexternal_data_configuration
field.
withFriendlyName()
google.string.withFriendlyName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the friendly_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thefriendly_name
field.
withLabels()
google.obj.withLabels
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the labels field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thelabels
field.
withMaterializedView()
google.list[obj].withMaterializedView
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the materialized_view field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withMaterializedViewMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thematerialized_view
field.
withMaterializedViewMixin()
google.list[obj].withMaterializedViewMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the materialized_view field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withMaterializedView
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thematerialized_view
field.
withMaxStaleness()
google.string.withMaxStaleness
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the max_staleness field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themax_staleness
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withRangePartitioning()
google.list[obj].withRangePartitioning
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the range_partitioning field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withRangePartitioningMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therange_partitioning
field.
withRangePartitioningMixin()
google.list[obj].withRangePartitioningMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the range_partitioning field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withRangePartitioning
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therange_partitioning
field.
withSchema()
google.string.withSchema
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the schema field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theschema
field.
withTableConstraints()
google.list[obj].withTableConstraints
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the table_constraints field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withTableConstraintsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetable_constraints
field.
withTableConstraintsMixin()
google.list[obj].withTableConstraintsMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the table_constraints field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withTableConstraints
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetable_constraints
field.
withTableId()
google.string.withTableId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the table_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetable_id
field.
withTimePartitioning()
google.list[obj].withTimePartitioning
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the time_partitioning field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withTimePartitioningMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetime_partitioning
field.
withTimePartitioningMixin()
google.list[obj].withTimePartitioningMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the time_partitioning field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withTimePartitioning
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetime_partitioning
field.
withView()
google.list[obj].withView
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the view field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withViewMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theview
field.
withViewMixin()
google.list[obj].withViewMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the view field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withView
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theview
field.
new()
google.bigquery_table.encryption_configuration.new
constructs a new object with attributes and blocks configured for the encryption_configuration
Terraform sub block.
Args:
kms_key_name
(string
): The self link or full name of a key which should be used to encrypt this table. Note that the default bigquery service account will need to have encrypt/decrypt permissions on this key - you may want to see the google_bigquery_default_service_account datasource and the google_kms_crypto_key_iam_binding resource.
Returns:
- An attribute object that represents the
encryption_configuration
sub block.
new()
google.bigquery_table.external_data_configuration.new
constructs a new object with attributes and blocks configured for the external_data_configuration
Terraform sub block.
Args:
autodetect
(bool
): Let BigQuery try to autodetect the schema and format of the table.compression
(string
): The compression type of the data source. Valid values are "NONE" or "GZIP". Whennull
, thecompression
field will be omitted from the resulting object.connection_id
(string
): The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connectionId can have the form "{{project}}.{{location}}.{{connection_id}}" or "projects/{{project}}/locations/{{location}}/connections/{{connection_id}}". Whennull
, theconnection_id
field will be omitted from the resulting object.file_set_spec_type
(string
): Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include specifying manifest files. Only applicable to object storage systems. Whennull
, thefile_set_spec_type
field will be omitted from the resulting object.ignore_unknown_values
(bool
): Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Whennull
, theignore_unknown_values
field will be omitted from the resulting object.max_bad_records
(number
): The maximum number of bad records that BigQuery can ignore when reading data. Whennull
, themax_bad_records
field will be omitted from the resulting object.metadata_cache_mode
(string
): Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. Whennull
, themetadata_cache_mode
field will be omitted from the resulting object.object_metadata
(string
): Object Metadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the sourceUris. If ObjectMetadata is set, sourceFormat should be omitted. Whennull
, theobject_metadata
field will be omitted from the resulting object.reference_file_schema_uri
(string
): When creating an external table, the user can provide a reference file with the table schema. This is enabled for the following formats: AVRO, PARQUET, ORC. Whennull
, thereference_file_schema_uri
field will be omitted from the resulting object.schema
(string
): A JSON schema for the external table. Schema is required for CSV and JSON formats and is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats when using external tables. Whennull
, theschema
field will be omitted from the resulting object.source_format
(string
): Please see sourceFormat under ExternalDataConfiguration in Bigquery's public API documentation (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#externaldataconfiguration) for supported formats. To use "GOOGLE_SHEETS" the scopes must include "googleapis.com/auth/drive.readonly". Whennull
, thesource_format
field will be omitted from the resulting object.source_uris
(list
): A list of the fully-qualified URIs that point to your data in Google Cloud.avro_options
(list[obj]
): Additional options if source_format is set to "AVRO" Whennull
, theavro_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.avro_options.new constructor.csv_options
(list[obj]
): Additional properties to set if source_format is set to "CSV". Whennull
, thecsv_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.csv_options.new constructor.google_sheets_options
(list[obj]
): Additional options if source_format is set to "GOOGLE_SHEETS". Whennull
, thegoogle_sheets_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.google_sheets_options.new constructor.hive_partitioning_options
(list[obj]
): When set, configures hive partitioning support. Not all storage formats support hive partitioning -- requesting hive partitioning on an unsupported format will lead to an error, as will providing an invalid specification. Whennull
, thehive_partitioning_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.hive_partitioning_options.new constructor.json_options
(list[obj]
): Additional properties to set if sourceFormat is set to JSON." Whennull
, thejson_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.json_options.new constructor.parquet_options
(list[obj]
): Additional properties to set if sourceFormat is set to PARQUET." Whennull
, theparquet_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.external_data_configuration.parquet_options.new constructor.
Returns:
- An attribute object that represents the
external_data_configuration
sub block.
new()
google.bigquery_table.external_data_configuration.avro_options.new
constructs a new object with attributes and blocks configured for the avro_options
Terraform sub block.
Args:
use_avro_logical_types
(bool
): If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
Returns:
- An attribute object that represents the
avro_options
sub block.
new()
google.bigquery_table.external_data_configuration.csv_options.new
constructs a new object with attributes and blocks configured for the csv_options
Terraform sub block.
Args:
allow_jagged_rows
(bool
): Indicates if BigQuery should accept rows that are missing trailing optional columns. Whennull
, theallow_jagged_rows
field will be omitted from the resulting object.allow_quoted_newlines
(bool
): Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. Whennull
, theallow_quoted_newlines
field will be omitted from the resulting object.encoding
(string
): The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. Whennull
, theencoding
field will be omitted from the resulting object.field_delimiter
(string
): The separator for fields in a CSV file. Whennull
, thefield_delimiter
field will be omitted from the resulting object.quote
(string
): The value that is used to quote data sections in a CSV file. If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allow_quoted_newlines property to true. The API-side default is ", specified in Terraform escaped as ". Due to limitations with Terraform default values, this value is required to be explicitly set.skip_leading_rows
(number
): The number of rows at the top of a CSV file that BigQuery will skip when reading the data. Whennull
, theskip_leading_rows
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
csv_options
sub block.
new()
google.bigquery_table.external_data_configuration.google_sheets_options.new
constructs a new object with attributes and blocks configured for the google_sheets_options
Terraform sub block.
Args:
range
(string
): Range of a sheet to query from. Only used when non-empty. At least one of range or skip_leading_rows must be set. Typical format: "sheet_name!top_left_cell_id:bottom_right_cell_id" For example: "sheet1!A1:B20" Whennull
, therange
field will be omitted from the resulting object.skip_leading_rows
(number
): The number of rows at the top of the sheet that BigQuery will skip when reading the data. At least one of range or skip_leading_rows must be set. Whennull
, theskip_leading_rows
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
google_sheets_options
sub block.
new()
google.bigquery_table.external_data_configuration.hive_partitioning_options.new
constructs a new object with attributes and blocks configured for the hive_partitioning_options
Terraform sub block.
Args:
mode
(string
): When set, what mode of hive partitioning to use when reading data. Whennull
, themode
field will be omitted from the resulting object.require_partition_filter
(bool
): If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Whennull
, therequire_partition_filter
field will be omitted from the resulting object.source_uri_prefix
(string
): When hive partition detection is requested, a common for all source uris must be required. The prefix must end immediately before the partition key encoding begins. Whennull
, thesource_uri_prefix
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
hive_partitioning_options
sub block.
new()
google.bigquery_table.external_data_configuration.json_options.new
constructs a new object with attributes and blocks configured for the json_options
Terraform sub block.
Args:
encoding
(string
): The character encoding of the data. The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. Whennull
, theencoding
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
json_options
sub block.
new()
google.bigquery_table.external_data_configuration.parquet_options.new
constructs a new object with attributes and blocks configured for the parquet_options
Terraform sub block.
Args:
enable_list_inference
(bool
): Indicates whether to use schema inference specifically for Parquet LIST logical type. Whennull
, theenable_list_inference
field will be omitted from the resulting object.enum_as_string
(bool
): Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. Whennull
, theenum_as_string
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
parquet_options
sub block.
new()
google.bigquery_table.materialized_view.new
constructs a new object with attributes and blocks configured for the materialized_view
Terraform sub block.
Args:
allow_non_incremental_definition
(bool
): Allow non incremental materialized view definition. The default value is false. Whennull
, theallow_non_incremental_definition
field will be omitted from the resulting object.enable_refresh
(bool
): Specifies if BigQuery should automatically refresh materialized view when the base table is updated. The default is true. Whennull
, theenable_refresh
field will be omitted from the resulting object.query
(string
): A query whose result is persisted.refresh_interval_ms
(number
): Specifies maximum frequency at which this materialized view will be refreshed. The default is 1800000 Whennull
, therefresh_interval_ms
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
materialized_view
sub block.
new()
google.bigquery_table.range_partitioning.new
constructs a new object with attributes and blocks configured for the range_partitioning
Terraform sub block.
Args:
field
(string
): The field used to determine how to create a range-based partition.range
(list[obj]
): Information required to partition based on ranges. Structure is documented below. Whennull
, therange
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.range_partitioning.range.new constructor.
Returns:
- An attribute object that represents the
range_partitioning
sub block.
new()
google.bigquery_table.range_partitioning.range.new
constructs a new object with attributes and blocks configured for the range
Terraform sub block.
Args:
end
(number
): End of the range partitioning, exclusive.interval
(number
): The width of each range within the partition.start
(number
): Start of the range partitioning, inclusive.
Returns:
- An attribute object that represents the
range
sub block.
new()
google.bigquery_table.table_constraints.new
constructs a new object with attributes and blocks configured for the table_constraints
Terraform sub block.
Args:
foreign_keys
(list[obj]
): Present only if the table has a foreign key. The foreign key is not enforced. Whennull
, theforeign_keys
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.foreign_keys.new constructor.primary_key
(list[obj]
): Represents a primary key constraint on a table's columns. Present only if the table has a primary key. The primary key is not enforced. Whennull
, theprimary_key
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.primary_key.new constructor.
Returns:
- An attribute object that represents the
table_constraints
sub block.
new()
google.bigquery_table.table_constraints.foreign_keys.new
constructs a new object with attributes and blocks configured for the foreign_keys
Terraform sub block.
Args:
name
(string
): Set only if the foreign key constraint is named. Whennull
, thename
field will be omitted from the resulting object.column_references
(list[obj]
): The pair of the foreign key column and primary key column. Whennull
, thecolumn_references
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.foreign_keys.column_references.new constructor.referenced_table
(list[obj]
): The table that holds the primary key and is referenced by this foreign key. Whennull
, thereferenced_table
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.bigquery_table.table_constraints.foreign_keys.referenced_table.new constructor.
Returns:
- An attribute object that represents the
foreign_keys
sub block.
new()
google.bigquery_table.table_constraints.foreign_keys.column_references.new
constructs a new object with attributes and blocks configured for the column_references
Terraform sub block.
Args:
referenced_column
(string
): The column in the primary key that are referenced by the referencingColumn.referencing_column
(string
): The column that composes the foreign key.
Returns:
- An attribute object that represents the
column_references
sub block.
new()
google.bigquery_table.table_constraints.foreign_keys.referenced_table.new
constructs a new object with attributes and blocks configured for the referenced_table
Terraform sub block.
Args:
dataset_id
(string
): The ID of the dataset containing this table.project_id
(string
): The ID of the project containing this table.table_id
(string
): The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. Certain operations allow suffixing of the table ID with a partition decorator, such as sample_table$20190123.
Returns:
- An attribute object that represents the
referenced_table
sub block.
new()
google.bigquery_table.table_constraints.primary_key.new
constructs a new object with attributes and blocks configured for the primary_key
Terraform sub block.
Args:
columns
(list
): The columns that are composed of the primary key constraint.
Returns:
- An attribute object that represents the
primary_key
sub block.
new()
google.bigquery_table.time_partitioning.new
constructs a new object with attributes and blocks configured for the time_partitioning
Terraform sub block.
Args:
expiration_ms
(number
): Number of milliseconds for which to keep the storage for a partition. Whennull
, theexpiration_ms
field will be omitted from the resulting object.field
(string
): The field used to determine how to create a time-based partition. If time-based partitioning is enabled without this value, the table is partitioned based on the load time. Whennull
, thefield
field will be omitted from the resulting object.require_partition_filter
(bool
): If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Whennull
, therequire_partition_filter
field will be omitted from the resulting object.type
(string
): The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively.
Returns:
- An attribute object that represents the
time_partitioning
sub block.
new()
google.bigquery_table.view.new
constructs a new object with attributes and blocks configured for the view
Terraform sub block.
Args:
query
(string
): A query that BigQuery executes when the view is referenced.use_legacy_sql
(bool
): Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL Whennull
, theuse_legacy_sql
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
view
sub block.