-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_table_types.go
executable file
·1447 lines (1116 loc) · 66.1 KB
/
zz_table_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AvroOptionsInitParameters struct {
// If is set to true, indicates whether
// to interpret logical types as the corresponding BigQuery data type
// (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
UseAvroLogicalTypes *bool `json:"useAvroLogicalTypes,omitempty" tf:"use_avro_logical_types,omitempty"`
}
type AvroOptionsObservation struct {
// If is set to true, indicates whether
// to interpret logical types as the corresponding BigQuery data type
// (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
UseAvroLogicalTypes *bool `json:"useAvroLogicalTypes,omitempty" tf:"use_avro_logical_types,omitempty"`
}
type AvroOptionsParameters struct {
// If is set to true, indicates whether
// to interpret logical types as the corresponding BigQuery data type
// (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
// +kubebuilder:validation:Optional
UseAvroLogicalTypes *bool `json:"useAvroLogicalTypes" tf:"use_avro_logical_types,omitempty"`
}
type ColumnReferencesInitParameters struct {
// : The column in the primary key that are
// referenced by the referencingColumn
ReferencedColumn *string `json:"referencedColumn,omitempty" tf:"referenced_column,omitempty"`
// : The column that composes the foreign key.
ReferencingColumn *string `json:"referencingColumn,omitempty" tf:"referencing_column,omitempty"`
}
type ColumnReferencesObservation struct {
// : The column in the primary key that are
// referenced by the referencingColumn
ReferencedColumn *string `json:"referencedColumn,omitempty" tf:"referenced_column,omitempty"`
// : The column that composes the foreign key.
ReferencingColumn *string `json:"referencingColumn,omitempty" tf:"referencing_column,omitempty"`
}
type ColumnReferencesParameters struct {
// : The column in the primary key that are
// referenced by the referencingColumn
// +kubebuilder:validation:Optional
ReferencedColumn *string `json:"referencedColumn" tf:"referenced_column,omitempty"`
// : The column that composes the foreign key.
// +kubebuilder:validation:Optional
ReferencingColumn *string `json:"referencingColumn" tf:"referencing_column,omitempty"`
}
type CsvOptionsInitParameters struct {
// Indicates if BigQuery should accept rows
// that are missing trailing optional columns.
AllowJaggedRows *bool `json:"allowJaggedRows,omitempty" tf:"allow_jagged_rows,omitempty"`
// Indicates if BigQuery should allow
// quoted data sections that contain newline characters in a CSV file.
// The default value is false.
AllowQuotedNewlines *bool `json:"allowQuotedNewlines,omitempty" tf:"allow_quoted_newlines,omitempty"`
// 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.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// The separator for fields in a CSV file.
FieldDelimiter *string `json:"fieldDelimiter,omitempty" tf:"field_delimiter,omitempty"`
// 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.
Quote *string `json:"quote,omitempty" tf:"quote,omitempty"`
// 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.
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type CsvOptionsObservation struct {
// Indicates if BigQuery should accept rows
// that are missing trailing optional columns.
AllowJaggedRows *bool `json:"allowJaggedRows,omitempty" tf:"allow_jagged_rows,omitempty"`
// Indicates if BigQuery should allow
// quoted data sections that contain newline characters in a CSV file.
// The default value is false.
AllowQuotedNewlines *bool `json:"allowQuotedNewlines,omitempty" tf:"allow_quoted_newlines,omitempty"`
// 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.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// The separator for fields in a CSV file.
FieldDelimiter *string `json:"fieldDelimiter,omitempty" tf:"field_delimiter,omitempty"`
// 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.
Quote *string `json:"quote,omitempty" tf:"quote,omitempty"`
// 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.
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type CsvOptionsParameters struct {
// Indicates if BigQuery should accept rows
// that are missing trailing optional columns.
// +kubebuilder:validation:Optional
AllowJaggedRows *bool `json:"allowJaggedRows,omitempty" tf:"allow_jagged_rows,omitempty"`
// Indicates if BigQuery should allow
// quoted data sections that contain newline characters in a CSV file.
// The default value is false.
// +kubebuilder:validation:Optional
AllowQuotedNewlines *bool `json:"allowQuotedNewlines,omitempty" tf:"allow_quoted_newlines,omitempty"`
// 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.
// +kubebuilder:validation:Optional
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// The separator for fields in a CSV file.
// +kubebuilder:validation:Optional
FieldDelimiter *string `json:"fieldDelimiter,omitempty" tf:"field_delimiter,omitempty"`
// 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.
// +kubebuilder:validation:Optional
Quote *string `json:"quote" tf:"quote,omitempty"`
// 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.
// +kubebuilder:validation:Optional
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type EncryptionConfigurationInitParameters struct {
// 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.
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type EncryptionConfigurationObservation struct {
// 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.
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
// The self link or full name of the kms key version used to encrypt this table.
KMSKeyVersion *string `json:"kmsKeyVersion,omitempty" tf:"kms_key_version,omitempty"`
}
type EncryptionConfigurationParameters struct {
// 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.
// +kubebuilder:validation:Optional
KMSKeyName *string `json:"kmsKeyName" tf:"kms_key_name,omitempty"`
}
type ExternalDataConfigurationInitParameters struct {
// - Let BigQuery try to autodetect the schema
// and format of the table.
Autodetect *bool `json:"autodetect,omitempty" tf:"autodetect,omitempty"`
// Additional options if source_format is set to
// "AVRO". Structure is documented below.
AvroOptions *AvroOptionsInitParameters `json:"avroOptions,omitempty" tf:"avro_options,omitempty"`
// The compression type of the data source.
// Valid values are "NONE" or "GZIP".
Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`
// The connection specifying the credentials to be used to read
// external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id can have
// the form {{project}}.{{location}}.{{connection_id}}
// or projects/{{project}}/locations/{{location}}/connections/{{connection_id}}.
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Additional properties to set if
// source_format is set to "CSV". Structure is documented below.
CsvOptions *CsvOptionsInitParameters `json:"csvOptions,omitempty" tf:"csv_options,omitempty"`
// 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. Docs
FileSetSpecType *string `json:"fileSetSpecType,omitempty" tf:"file_set_spec_type,omitempty"`
// Additional options if
// source_format is set to "GOOGLE_SHEETS". Structure is
// documented below.
GoogleSheetsOptions *GoogleSheetsOptionsInitParameters `json:"googleSheetsOptions,omitempty" tf:"google_sheets_options,omitempty"`
// 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. Structure is documented below.
HivePartitioningOptions *HivePartitioningOptionsInitParameters `json:"hivePartitioningOptions,omitempty" tf:"hive_partitioning_options,omitempty"`
// 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.
IgnoreUnknownValues *bool `json:"ignoreUnknownValues,omitempty" tf:"ignore_unknown_values,omitempty"`
// Additional properties to set if
// source_format is set to "JSON". Structure is documented below.
JSONOptions *JSONOptionsInitParameters `json:"jsonOptions,omitempty" tf:"json_options,omitempty"`
// The maximum number of bad records that
// BigQuery can ignore when reading data.
MaxBadRecords *float64 `json:"maxBadRecords,omitempty" tf:"max_bad_records,omitempty"`
// Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. Valid values are AUTOMATIC and MANUAL.
MetadataCacheMode *string `json:"metadataCacheMode,omitempty" tf:"metadata_cache_mode,omitempty"`
// Object Metadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the sourceUris. If object_metadata is set, source_format should be omitted.
ObjectMetadata *string `json:"objectMetadata,omitempty" tf:"object_metadata,omitempty"`
// Additional properties to set if
// source_format is set to "PARQUET". Structure is documented below.
ParquetOptions *ExternalDataConfigurationParquetOptionsInitParameters `json:"parquetOptions,omitempty" tf:"parquet_options,omitempty"`
// 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.
ReferenceFileSchemaURI *string `json:"referenceFileSchemaUri,omitempty" tf:"reference_file_schema_uri,omitempty"`
// A JSON schema for the external table. Schema is required
// for CSV and JSON formats if autodetect is not on. Schema is disallowed
// for Google Cloud Bigtable, Cloud Datastore backups, Avro, Iceberg, ORC and Parquet formats.
// ~>NOTE: Because this field expects a JSON string, any changes to the
// string will create a diff, even if the JSON itself hasn't changed.
// Furthermore drift for this field cannot not be detected because BigQuery
// only uses this schema to compute the effective schema for the table, therefore
// any changes on the configured value will force the table to be recreated.
// This schema is effectively only applied when creating a table from an external
// datasource, after creation the computed schema will be stored in
// google_bigquery_table.schema
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// The data format. Please see sourceFormat under
// ExternalDataConfiguration
// in Bigquery's public API documentation for supported formats. To use "GOOGLE_SHEETS"
// the scopes must include "https://www.googleapis.com/auth/drive.readonly".
SourceFormat *string `json:"sourceFormat,omitempty" tf:"source_format,omitempty"`
// A list of the fully-qualified URIs that point to
// your data in Google Cloud.
SourceUris []*string `json:"sourceUris,omitempty" tf:"source_uris,omitempty"`
}
type ExternalDataConfigurationObservation struct {
// - Let BigQuery try to autodetect the schema
// and format of the table.
Autodetect *bool `json:"autodetect,omitempty" tf:"autodetect,omitempty"`
// Additional options if source_format is set to
// "AVRO". Structure is documented below.
AvroOptions *AvroOptionsObservation `json:"avroOptions,omitempty" tf:"avro_options,omitempty"`
// The compression type of the data source.
// Valid values are "NONE" or "GZIP".
Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`
// The connection specifying the credentials to be used to read
// external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id can have
// the form {{project}}.{{location}}.{{connection_id}}
// or projects/{{project}}/locations/{{location}}/connections/{{connection_id}}.
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Additional properties to set if
// source_format is set to "CSV". Structure is documented below.
CsvOptions *CsvOptionsObservation `json:"csvOptions,omitempty" tf:"csv_options,omitempty"`
// 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. Docs
FileSetSpecType *string `json:"fileSetSpecType,omitempty" tf:"file_set_spec_type,omitempty"`
// Additional options if
// source_format is set to "GOOGLE_SHEETS". Structure is
// documented below.
GoogleSheetsOptions *GoogleSheetsOptionsObservation `json:"googleSheetsOptions,omitempty" tf:"google_sheets_options,omitempty"`
// 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. Structure is documented below.
HivePartitioningOptions *HivePartitioningOptionsObservation `json:"hivePartitioningOptions,omitempty" tf:"hive_partitioning_options,omitempty"`
// 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.
IgnoreUnknownValues *bool `json:"ignoreUnknownValues,omitempty" tf:"ignore_unknown_values,omitempty"`
// Additional properties to set if
// source_format is set to "JSON". Structure is documented below.
JSONOptions *JSONOptionsObservation `json:"jsonOptions,omitempty" tf:"json_options,omitempty"`
// The maximum number of bad records that
// BigQuery can ignore when reading data.
MaxBadRecords *float64 `json:"maxBadRecords,omitempty" tf:"max_bad_records,omitempty"`
// Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. Valid values are AUTOMATIC and MANUAL.
MetadataCacheMode *string `json:"metadataCacheMode,omitempty" tf:"metadata_cache_mode,omitempty"`
// Object Metadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the sourceUris. If object_metadata is set, source_format should be omitted.
ObjectMetadata *string `json:"objectMetadata,omitempty" tf:"object_metadata,omitempty"`
// Additional properties to set if
// source_format is set to "PARQUET". Structure is documented below.
ParquetOptions *ExternalDataConfigurationParquetOptionsObservation `json:"parquetOptions,omitempty" tf:"parquet_options,omitempty"`
// 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.
ReferenceFileSchemaURI *string `json:"referenceFileSchemaUri,omitempty" tf:"reference_file_schema_uri,omitempty"`
// A JSON schema for the external table. Schema is required
// for CSV and JSON formats if autodetect is not on. Schema is disallowed
// for Google Cloud Bigtable, Cloud Datastore backups, Avro, Iceberg, ORC and Parquet formats.
// ~>NOTE: Because this field expects a JSON string, any changes to the
// string will create a diff, even if the JSON itself hasn't changed.
// Furthermore drift for this field cannot not be detected because BigQuery
// only uses this schema to compute the effective schema for the table, therefore
// any changes on the configured value will force the table to be recreated.
// This schema is effectively only applied when creating a table from an external
// datasource, after creation the computed schema will be stored in
// google_bigquery_table.schema
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// The data format. Please see sourceFormat under
// ExternalDataConfiguration
// in Bigquery's public API documentation for supported formats. To use "GOOGLE_SHEETS"
// the scopes must include "https://www.googleapis.com/auth/drive.readonly".
SourceFormat *string `json:"sourceFormat,omitempty" tf:"source_format,omitempty"`
// A list of the fully-qualified URIs that point to
// your data in Google Cloud.
SourceUris []*string `json:"sourceUris,omitempty" tf:"source_uris,omitempty"`
}
type ExternalDataConfigurationParameters struct {
// - Let BigQuery try to autodetect the schema
// and format of the table.
// +kubebuilder:validation:Optional
Autodetect *bool `json:"autodetect" tf:"autodetect,omitempty"`
// Additional options if source_format is set to
// "AVRO". Structure is documented below.
// +kubebuilder:validation:Optional
AvroOptions *AvroOptionsParameters `json:"avroOptions,omitempty" tf:"avro_options,omitempty"`
// The compression type of the data source.
// Valid values are "NONE" or "GZIP".
// +kubebuilder:validation:Optional
Compression *string `json:"compression,omitempty" tf:"compression,omitempty"`
// The connection specifying the credentials to be used to read
// external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id can have
// the form {{project}}.{{location}}.{{connection_id}}
// or projects/{{project}}/locations/{{location}}/connections/{{connection_id}}.
// +kubebuilder:validation:Optional
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Additional properties to set if
// source_format is set to "CSV". Structure is documented below.
// +kubebuilder:validation:Optional
CsvOptions *CsvOptionsParameters `json:"csvOptions,omitempty" tf:"csv_options,omitempty"`
// 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. Docs
// +kubebuilder:validation:Optional
FileSetSpecType *string `json:"fileSetSpecType,omitempty" tf:"file_set_spec_type,omitempty"`
// Additional options if
// source_format is set to "GOOGLE_SHEETS". Structure is
// documented below.
// +kubebuilder:validation:Optional
GoogleSheetsOptions *GoogleSheetsOptionsParameters `json:"googleSheetsOptions,omitempty" tf:"google_sheets_options,omitempty"`
// 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. Structure is documented below.
// +kubebuilder:validation:Optional
HivePartitioningOptions *HivePartitioningOptionsParameters `json:"hivePartitioningOptions,omitempty" tf:"hive_partitioning_options,omitempty"`
// 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.
// +kubebuilder:validation:Optional
IgnoreUnknownValues *bool `json:"ignoreUnknownValues,omitempty" tf:"ignore_unknown_values,omitempty"`
// Additional properties to set if
// source_format is set to "JSON". Structure is documented below.
// +kubebuilder:validation:Optional
JSONOptions *JSONOptionsParameters `json:"jsonOptions,omitempty" tf:"json_options,omitempty"`
// The maximum number of bad records that
// BigQuery can ignore when reading data.
// +kubebuilder:validation:Optional
MaxBadRecords *float64 `json:"maxBadRecords,omitempty" tf:"max_bad_records,omitempty"`
// Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. Valid values are AUTOMATIC and MANUAL.
// +kubebuilder:validation:Optional
MetadataCacheMode *string `json:"metadataCacheMode,omitempty" tf:"metadata_cache_mode,omitempty"`
// Object Metadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the sourceUris. If object_metadata is set, source_format should be omitted.
// +kubebuilder:validation:Optional
ObjectMetadata *string `json:"objectMetadata,omitempty" tf:"object_metadata,omitempty"`
// Additional properties to set if
// source_format is set to "PARQUET". Structure is documented below.
// +kubebuilder:validation:Optional
ParquetOptions *ExternalDataConfigurationParquetOptionsParameters `json:"parquetOptions,omitempty" tf:"parquet_options,omitempty"`
// 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.
// +kubebuilder:validation:Optional
ReferenceFileSchemaURI *string `json:"referenceFileSchemaUri,omitempty" tf:"reference_file_schema_uri,omitempty"`
// A JSON schema for the external table. Schema is required
// for CSV and JSON formats if autodetect is not on. Schema is disallowed
// for Google Cloud Bigtable, Cloud Datastore backups, Avro, Iceberg, ORC and Parquet formats.
// ~>NOTE: Because this field expects a JSON string, any changes to the
// string will create a diff, even if the JSON itself hasn't changed.
// Furthermore drift for this field cannot not be detected because BigQuery
// only uses this schema to compute the effective schema for the table, therefore
// any changes on the configured value will force the table to be recreated.
// This schema is effectively only applied when creating a table from an external
// datasource, after creation the computed schema will be stored in
// google_bigquery_table.schema
// +kubebuilder:validation:Optional
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// The data format. Please see sourceFormat under
// ExternalDataConfiguration
// in Bigquery's public API documentation for supported formats. To use "GOOGLE_SHEETS"
// the scopes must include "https://www.googleapis.com/auth/drive.readonly".
// +kubebuilder:validation:Optional
SourceFormat *string `json:"sourceFormat,omitempty" tf:"source_format,omitempty"`
// A list of the fully-qualified URIs that point to
// your data in Google Cloud.
// +kubebuilder:validation:Optional
SourceUris []*string `json:"sourceUris" tf:"source_uris,omitempty"`
}
type ExternalDataConfigurationParquetOptionsInitParameters struct {
// Indicates whether to use schema inference specifically for Parquet LIST logical type.
EnableListInference *bool `json:"enableListInference,omitempty" tf:"enable_list_inference,omitempty"`
// Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.
EnumAsString *bool `json:"enumAsString,omitempty" tf:"enum_as_string,omitempty"`
}
type ExternalDataConfigurationParquetOptionsObservation struct {
// Indicates whether to use schema inference specifically for Parquet LIST logical type.
EnableListInference *bool `json:"enableListInference,omitempty" tf:"enable_list_inference,omitempty"`
// Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.
EnumAsString *bool `json:"enumAsString,omitempty" tf:"enum_as_string,omitempty"`
}
type ExternalDataConfigurationParquetOptionsParameters struct {
// Indicates whether to use schema inference specifically for Parquet LIST logical type.
// +kubebuilder:validation:Optional
EnableListInference *bool `json:"enableListInference,omitempty" tf:"enable_list_inference,omitempty"`
// Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.
// +kubebuilder:validation:Optional
EnumAsString *bool `json:"enumAsString,omitempty" tf:"enum_as_string,omitempty"`
}
type ForeignKeysInitParameters struct {
// : The pair of the foreign key column and primary key column.
// Structure is documented below.
ColumnReferences *ColumnReferencesInitParameters `json:"columnReferences,omitempty" tf:"column_references,omitempty"`
// : Set only if the foreign key constraint is named.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// : The table that holds the primary key
// and is referenced by this foreign key.
// Structure is documented below.
ReferencedTable *ReferencedTableInitParameters `json:"referencedTable,omitempty" tf:"referenced_table,omitempty"`
}
type ForeignKeysObservation struct {
// : The pair of the foreign key column and primary key column.
// Structure is documented below.
ColumnReferences *ColumnReferencesObservation `json:"columnReferences,omitempty" tf:"column_references,omitempty"`
// : Set only if the foreign key constraint is named.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// : The table that holds the primary key
// and is referenced by this foreign key.
// Structure is documented below.
ReferencedTable *ReferencedTableObservation `json:"referencedTable,omitempty" tf:"referenced_table,omitempty"`
}
type ForeignKeysParameters struct {
// : The pair of the foreign key column and primary key column.
// Structure is documented below.
// +kubebuilder:validation:Optional
ColumnReferences *ColumnReferencesParameters `json:"columnReferences" tf:"column_references,omitempty"`
// : Set only if the foreign key constraint is named.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// : The table that holds the primary key
// and is referenced by this foreign key.
// Structure is documented below.
// +kubebuilder:validation:Optional
ReferencedTable *ReferencedTableParameters `json:"referencedTable" tf:"referenced_table,omitempty"`
}
type GoogleSheetsOptionsInitParameters struct {
// Information required to partition based on ranges.
// Structure is documented below.
Range *string `json:"range,omitempty" tf:"range,omitempty"`
// 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.
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type GoogleSheetsOptionsObservation struct {
// Information required to partition based on ranges.
// Structure is documented below.
Range *string `json:"range,omitempty" tf:"range,omitempty"`
// 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.
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type GoogleSheetsOptionsParameters struct {
// Information required to partition based on ranges.
// Structure is documented below.
// +kubebuilder:validation:Optional
Range *string `json:"range,omitempty" tf:"range,omitempty"`
// 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.
// +kubebuilder:validation:Optional
SkipLeadingRows *float64 `json:"skipLeadingRows,omitempty" tf:"skip_leading_rows,omitempty"`
}
type HivePartitioningOptionsInitParameters struct {
// When set, what mode of hive partitioning to use when
// reading data. The following modes are supported.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// If set to true, queries over this table
// require a partition filter that can be used for partition elimination to be
// specified. require_partition_filter is deprecated and will be removed in
// a future major release. Use the top level field with the same name instead.
RequirePartitionFilter *bool `json:"requirePartitionFilter,omitempty" tf:"require_partition_filter,omitempty"`
// 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. For example, consider files following
// this data layout. gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
// gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive
// partitioning is requested with either AUTO or STRINGS detection, the common prefix
// can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/.
// Note that when mode is set to CUSTOM, you must encode the partition key schema within the source_uri_prefix by setting source_uri_prefix to gs://bucket/path_to_table/{key1:TYPE1}/{key2:TYPE2}/{key3:TYPE3}.
SourceURIPrefix *string `json:"sourceUriPrefix,omitempty" tf:"source_uri_prefix,omitempty"`
}
type HivePartitioningOptionsObservation struct {
// When set, what mode of hive partitioning to use when
// reading data. The following modes are supported.
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// If set to true, queries over this table
// require a partition filter that can be used for partition elimination to be
// specified. require_partition_filter is deprecated and will be removed in
// a future major release. Use the top level field with the same name instead.
RequirePartitionFilter *bool `json:"requirePartitionFilter,omitempty" tf:"require_partition_filter,omitempty"`
// 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. For example, consider files following
// this data layout. gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
// gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive
// partitioning is requested with either AUTO or STRINGS detection, the common prefix
// can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/.
// Note that when mode is set to CUSTOM, you must encode the partition key schema within the source_uri_prefix by setting source_uri_prefix to gs://bucket/path_to_table/{key1:TYPE1}/{key2:TYPE2}/{key3:TYPE3}.
SourceURIPrefix *string `json:"sourceUriPrefix,omitempty" tf:"source_uri_prefix,omitempty"`
}
type HivePartitioningOptionsParameters struct {
// When set, what mode of hive partitioning to use when
// reading data. The following modes are supported.
// +kubebuilder:validation:Optional
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// If set to true, queries over this table
// require a partition filter that can be used for partition elimination to be
// specified. require_partition_filter is deprecated and will be removed in
// a future major release. Use the top level field with the same name instead.
// +kubebuilder:validation:Optional
RequirePartitionFilter *bool `json:"requirePartitionFilter,omitempty" tf:"require_partition_filter,omitempty"`
// 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. For example, consider files following
// this data layout. gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
// gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive
// partitioning is requested with either AUTO or STRINGS detection, the common prefix
// can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/.
// Note that when mode is set to CUSTOM, you must encode the partition key schema within the source_uri_prefix by setting source_uri_prefix to gs://bucket/path_to_table/{key1:TYPE1}/{key2:TYPE2}/{key3:TYPE3}.
// +kubebuilder:validation:Optional
SourceURIPrefix *string `json:"sourceUriPrefix,omitempty" tf:"source_uri_prefix,omitempty"`
}
type JSONOptionsInitParameters struct {
// 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.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
}
type JSONOptionsObservation struct {
// 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.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
}
type JSONOptionsParameters struct {
// 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.
// +kubebuilder:validation:Optional
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
}
type MaterializedViewInitParameters struct {
// Allow non incremental materialized view definition.
// The default value is false.
AllowNonIncrementalDefinition *bool `json:"allowNonIncrementalDefinition,omitempty" tf:"allow_non_incremental_definition,omitempty"`
// Specifies whether to use BigQuery's automatic refresh for this materialized view when the base table is updated.
// The default value is true.
EnableRefresh *bool `json:"enableRefresh,omitempty" tf:"enable_refresh,omitempty"`
// A query whose result is persisted.
Query *string `json:"query,omitempty" tf:"query,omitempty"`
// The maximum frequency at which this materialized view will be refreshed.
// The default value is 1800000
RefreshIntervalMs *float64 `json:"refreshIntervalMs,omitempty" tf:"refresh_interval_ms,omitempty"`
}
type MaterializedViewObservation struct {
// Allow non incremental materialized view definition.
// The default value is false.
AllowNonIncrementalDefinition *bool `json:"allowNonIncrementalDefinition,omitempty" tf:"allow_non_incremental_definition,omitempty"`
// Specifies whether to use BigQuery's automatic refresh for this materialized view when the base table is updated.
// The default value is true.
EnableRefresh *bool `json:"enableRefresh,omitempty" tf:"enable_refresh,omitempty"`
// A query whose result is persisted.
Query *string `json:"query,omitempty" tf:"query,omitempty"`
// The maximum frequency at which this materialized view will be refreshed.
// The default value is 1800000
RefreshIntervalMs *float64 `json:"refreshIntervalMs,omitempty" tf:"refresh_interval_ms,omitempty"`
}
type MaterializedViewParameters struct {
// Allow non incremental materialized view definition.
// The default value is false.
// +kubebuilder:validation:Optional
AllowNonIncrementalDefinition *bool `json:"allowNonIncrementalDefinition,omitempty" tf:"allow_non_incremental_definition,omitempty"`
// Specifies whether to use BigQuery's automatic refresh for this materialized view when the base table is updated.
// The default value is true.
// +kubebuilder:validation:Optional
EnableRefresh *bool `json:"enableRefresh,omitempty" tf:"enable_refresh,omitempty"`
// A query whose result is persisted.
// +kubebuilder:validation:Optional
Query *string `json:"query" tf:"query,omitempty"`
// The maximum frequency at which this materialized view will be refreshed.
// The default value is 1800000
// +kubebuilder:validation:Optional
RefreshIntervalMs *float64 `json:"refreshIntervalMs,omitempty" tf:"refresh_interval_ms,omitempty"`
}
type PrimaryKeyInitParameters struct {
// : The columns that are composed of the primary key constraint.
Columns []*string `json:"columns,omitempty" tf:"columns,omitempty"`
}
type PrimaryKeyObservation struct {
// : The columns that are composed of the primary key constraint.
Columns []*string `json:"columns,omitempty" tf:"columns,omitempty"`
}
type PrimaryKeyParameters struct {
// : The columns that are composed of the primary key constraint.
// +kubebuilder:validation:Optional
Columns []*string `json:"columns" tf:"columns,omitempty"`
}
type RangeInitParameters struct {
// End of the range partitioning, exclusive.
End *float64 `json:"end,omitempty" tf:"end,omitempty"`
// The width of each range within the partition.
Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`
// Start of the range partitioning, inclusive.
Start *float64 `json:"start,omitempty" tf:"start,omitempty"`
}
type RangeObservation struct {
// End of the range partitioning, exclusive.
End *float64 `json:"end,omitempty" tf:"end,omitempty"`
// The width of each range within the partition.
Interval *float64 `json:"interval,omitempty" tf:"interval,omitempty"`
// Start of the range partitioning, inclusive.
Start *float64 `json:"start,omitempty" tf:"start,omitempty"`
}
type RangeParameters struct {
// End of the range partitioning, exclusive.
// +kubebuilder:validation:Optional
End *float64 `json:"end" tf:"end,omitempty"`
// The width of each range within the partition.
// +kubebuilder:validation:Optional
Interval *float64 `json:"interval" tf:"interval,omitempty"`
// Start of the range partitioning, inclusive.
// +kubebuilder:validation:Optional
Start *float64 `json:"start" tf:"start,omitempty"`
}
type RangePartitioningInitParameters struct {
// The field used to determine how to create a range-based
// partition.
Field *string `json:"field,omitempty" tf:"field,omitempty"`
// Information required to partition based on ranges.
// Structure is documented below.
Range *RangeInitParameters `json:"range,omitempty" tf:"range,omitempty"`
}
type RangePartitioningObservation struct {
// The field used to determine how to create a range-based
// partition.
Field *string `json:"field,omitempty" tf:"field,omitempty"`
// Information required to partition based on ranges.
// Structure is documented below.
Range *RangeObservation `json:"range,omitempty" tf:"range,omitempty"`
}
type RangePartitioningParameters struct {
// The field used to determine how to create a range-based
// partition.
// +kubebuilder:validation:Optional
Field *string `json:"field" tf:"field,omitempty"`
// Information required to partition based on ranges.
// Structure is documented below.
// +kubebuilder:validation:Optional
Range *RangeParameters `json:"range" tf:"range,omitempty"`
}
type ReferencedTableInitParameters struct {
// : The ID of the project containing this table.
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
// A unique ID for the resource.
// Changing this forces a new resource to be created.
TableID *string `json:"tableId,omitempty" tf:"table_id,omitempty"`
}
type ReferencedTableObservation struct {
// : The ID of the dataset containing this table.
DatasetID *string `json:"datasetId,omitempty" tf:"dataset_id,omitempty"`
// : The ID of the project containing this table.
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
// A unique ID for the resource.
// Changing this forces a new resource to be created.
TableID *string `json:"tableId,omitempty" tf:"table_id,omitempty"`
}
type ReferencedTableParameters struct {
// : The ID of the dataset containing this table.
// +kubebuilder:validation:Required
DatasetID *string `json:"datasetId" tf:"dataset_id,omitempty"`
// : The ID of the project containing this table.
// +kubebuilder:validation:Optional
ProjectID *string `json:"projectId" tf:"project_id,omitempty"`
// A unique ID for the resource.
// Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
TableID *string `json:"tableId" tf:"table_id,omitempty"`
}
type TableConstraintsInitParameters struct {
// Present only if the table has a foreign key.
// The foreign key is not enforced.
// Structure is documented below.
ForeignKeys []ForeignKeysInitParameters `json:"foreignKeys,omitempty" tf:"foreign_keys,omitempty"`
// Represents the primary key constraint
// on a table's columns. Present only if the table has a primary key.
// The primary key is not enforced.
// Structure is documented below.
PrimaryKey *PrimaryKeyInitParameters `json:"primaryKey,omitempty" tf:"primary_key,omitempty"`
}
type TableConstraintsObservation struct {
// Present only if the table has a foreign key.
// The foreign key is not enforced.
// Structure is documented below.
ForeignKeys []ForeignKeysObservation `json:"foreignKeys,omitempty" tf:"foreign_keys,omitempty"`
// Represents the primary key constraint
// on a table's columns. Present only if the table has a primary key.
// The primary key is not enforced.
// Structure is documented below.
PrimaryKey *PrimaryKeyObservation `json:"primaryKey,omitempty" tf:"primary_key,omitempty"`
}
type TableConstraintsParameters struct {
// Present only if the table has a foreign key.
// The foreign key is not enforced.
// Structure is documented below.
// +kubebuilder:validation:Optional
ForeignKeys []ForeignKeysParameters `json:"foreignKeys,omitempty" tf:"foreign_keys,omitempty"`
// Represents the primary key constraint
// on a table's columns. Present only if the table has a primary key.
// The primary key is not enforced.
// Structure is documented below.
// +kubebuilder:validation:Optional
PrimaryKey *PrimaryKeyParameters `json:"primaryKey,omitempty" tf:"primary_key,omitempty"`
}
type TableInitParameters struct {
// Specifies column names to use for data clustering.
// Up to four top-level columns are allowed, and should be specified in
// descending priority order.
Clustering []*string `json:"clustering,omitempty" tf:"clustering,omitempty"`
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The field description.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// 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. Structure is documented below.
EncryptionConfiguration *EncryptionConfigurationInitParameters `json:"encryptionConfiguration,omitempty" tf:"encryption_configuration,omitempty"`
// 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.
ExpirationTime *float64 `json:"expirationTime,omitempty" tf:"expiration_time,omitempty"`
// 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. Structure is documented below.
ExternalDataConfiguration *ExternalDataConfigurationInitParameters `json:"externalDataConfiguration,omitempty" tf:"external_data_configuration,omitempty"`
// A descriptive name for the table.
FriendlyName *string `json:"friendlyName,omitempty" tf:"friendly_name,omitempty"`
// A mapping of labels to assign to the resource.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// If specified, configures this table as a materialized view.
// Structure is documented below.
MaterializedView *MaterializedViewInitParameters `json:"materializedView,omitempty" tf:"materialized_view,omitempty"`
// : 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.
MaxStaleness *string `json:"maxStaleness,omitempty" tf:"max_staleness,omitempty"`
// If specified, configures range-based
// partitioning for this table. Structure is documented below.
RangePartitioning *RangePartitioningInitParameters `json:"rangePartitioning,omitempty" tf:"range_partitioning,omitempty"`
// If set to true, queries over this table
// require a partition filter that can be used for partition elimination to be
// specified.
RequirePartitionFilter *bool `json:"requirePartitionFilter,omitempty" tf:"require_partition_filter,omitempty"`
// A JSON schema for the table.
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
// Defines the primary key and foreign keys.
// Structure is documented below.
TableConstraints *TableConstraintsInitParameters `json:"tableConstraints,omitempty" tf:"table_constraints,omitempty"`
TableReplicationInfo *TableReplicationInfoInitParameters `json:"tableReplicationInfo,omitempty" tf:"table_replication_info,omitempty"`