GetTableExternalDataConfiguration constructor
- required Input<
bool> autodetect, - required Input<
List< avroOptions,GetTableExternalDataConfigurationAvroOption> > - required Input<
List< bigtableOptions,GetTableExternalDataConfigurationBigtableOption> > - required Input<
String> compression, - required Input<
String> connectionId, - required Input<
List< csvOptions,GetTableExternalDataConfigurationCsvOption> > - required Input<
List< decimalTargetTypes,String> > - required Input<
String> fileSetSpecType, - required Input<
List< googleSheetsOptions,GetTableExternalDataConfigurationGoogleSheetsOption> > - required Input<
List< hivePartitioningOptions,GetTableExternalDataConfigurationHivePartitioningOption> > - required Input<
bool> ignoreUnknownValues, - required Input<
String> jsonExtension, - required Input<
List< jsonOptions,GetTableExternalDataConfigurationJsonOption> > - required Input<
int> maxBadRecords, - required Input<
String> metadataCacheMode, - required Input<
String> objectMetadata, - required Input<
List< parquetOptions,GetTableExternalDataConfigurationParquetOption> > - required Input<
String> referenceFileSchemaUri, - required Input<
String> schema, - required Input<
String> sourceFormat, - required Input<
List< sourceUris,String> >
Creates a new GetTableExternalDataConfiguration.
autodetect Let BigQuery try to autodetect the schema and format of the table.
avroOptions Additional options if sourceFormat is set to "AVRO"
bigtableOptions Additional options if sourceFormat is set to BIGTABLE.
compression The compression type of the data source. Valid values are "NONE" or "GZIP".
connectionId 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>".
csvOptions Additional properties to set if sourceFormat is set to "CSV".
decimalTargetTypes The data types that could be used as a target type when converting decimal values.
fileSetSpecType 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.
googleSheetsOptions Additional options if sourceFormat is set to "GOOGLE_SHEETS".
hivePartitioningOptions 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.
ignoreUnknownValues 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.
jsonExtension Load option to be used together with sourceFormat newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and sourceFormat must be set to NEWLINE_DELIMITED_JSON).
jsonOptions Additional properties to set if sourceFormat is set to JSON.
maxBadRecords The maximum number of bad records that BigQuery can ignore when reading data.
metadataCacheMode Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source.
objectMetadata 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.
parquetOptions Additional properties to set if sourceFormat is set to PARQUET.
referenceFileSchemaUri 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.
schema 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.
sourceFormat 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".
sourceUris A list of the fully-qualified URIs that point to your data in Google Cloud.
Implementation
const GetTableExternalDataConfiguration({
required this.autodetect,
required this.avroOptions,
required this.bigtableOptions,
required this.compression,
required this.connectionId,
required this.csvOptions,
required this.decimalTargetTypes,
required this.fileSetSpecType,
required this.googleSheetsOptions,
required this.hivePartitioningOptions,
required this.ignoreUnknownValues,
required this.jsonExtension,
required this.jsonOptions,
required this.maxBadRecords,
required this.metadataCacheMode,
required this.objectMetadata,
required this.parquetOptions,
required this.referenceFileSchemaUri,
required this.schema,
required this.sourceFormat,
required this.sourceUris,
});