@maxim_mazurok/gapi.client.bigquery-v2 0.1.20260314 → 0.1.20260429

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +810 -246
  2. package/package.json +1 -1
  3. package/readme.md +12 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://bigquery.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20260314
12
+ // Revision: 20260429
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -48,13 +48,13 @@ declare namespace gapi.client {
48
48
  }
49
49
  interface Argument {
50
50
  /** Optional. Defaults to FIXED_TYPE. */
51
- argumentKind?: string;
51
+ argumentKind?: 'ARGUMENT_KIND_UNSPECIFIED' | 'FIXED_TYPE' | 'ANY_TYPE';
52
52
  /** Set if argument_kind == FIXED_TYPE. */
53
53
  dataType?: StandardSqlDataType;
54
54
  /** Optional. Whether the argument is an aggregate function parameter. Must be Unset for routine types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION, if set to false, it is equivalent to adding "NOT AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT AGGREGATE" clause in DDL. */
55
55
  isAggregate?: boolean;
56
56
  /** Optional. Specifies whether the argument is input or output. Can be set for procedures only. */
57
- mode?: string;
57
+ mode?: 'MODE_UNSPECIFIED' | 'IN' | 'OUT' | 'INOUT';
58
58
  /** Optional. The name of this argument. Can be absent for function return argument. */
59
59
  name?: string;
60
60
  }
@@ -84,7 +84,15 @@ declare namespace gapi.client {
84
84
  /** Non-seasonal order. */
85
85
  nonSeasonalOrder?: ArimaOrder[];
86
86
  /** Seasonal periods. Repeated because multiple periods are supported for one time series. */
87
- seasonalPeriods?: string[];
87
+ seasonalPeriods?:
88
+ | 'SEASONAL_PERIOD_TYPE_UNSPECIFIED'
89
+ | 'NO_SEASONALITY'
90
+ | 'DAILY'
91
+ | 'WEEKLY'
92
+ | 'MONTHLY'
93
+ | 'QUARTERLY'
94
+ | 'YEARLY'
95
+ | 'HOURLY'[];
88
96
  /** Id to differentiate different time series for the large-scale case. */
89
97
  timeSeriesId?: string[];
90
98
  }
@@ -104,7 +112,15 @@ declare namespace gapi.client {
104
112
  /** Non-seasonal order. */
105
113
  nonSeasonalOrder?: ArimaOrder;
106
114
  /** Seasonal periods. Repeated because multiple periods are supported for one time series. */
107
- seasonalPeriods?: string[];
115
+ seasonalPeriods?:
116
+ | 'SEASONAL_PERIOD_TYPE_UNSPECIFIED'
117
+ | 'NO_SEASONALITY'
118
+ | 'DAILY'
119
+ | 'WEEKLY'
120
+ | 'MONTHLY'
121
+ | 'QUARTERLY'
122
+ | 'YEARLY'
123
+ | 'HOURLY'[];
108
124
  /** The time_series_id value for this time series. It will be one of the unique values from the time_series_id_column specified during ARIMA model training. Only present when time_series_id_column training option was used. */
109
125
  timeSeriesId?: string;
110
126
  /** The tuple of time_series_ids identifying this time series. It will be one of the unique tuples of values present in the time_series_id_columns specified during ARIMA model training. Only present when time_series_id_columns training option was used and the order of values here are same as the order of time_series_id_columns. */
@@ -122,7 +138,15 @@ declare namespace gapi.client {
122
138
  /** This message is repeated because there are multiple arima models fitted in auto-arima. For non-auto-arima model, its size is one. */
123
139
  arimaModelInfo?: ArimaModelInfo[];
124
140
  /** Seasonal periods. Repeated because multiple periods are supported for one time series. */
125
- seasonalPeriods?: string[];
141
+ seasonalPeriods?:
142
+ | 'SEASONAL_PERIOD_TYPE_UNSPECIFIED'
143
+ | 'NO_SEASONALITY'
144
+ | 'DAILY'
145
+ | 'WEEKLY'
146
+ | 'MONTHLY'
147
+ | 'QUARTERLY'
148
+ | 'YEARLY'
149
+ | 'HOURLY'[];
126
150
  }
127
151
  interface ArimaSingleModelForecastingMetrics {
128
152
  /** Arima fitting metrics. */
@@ -138,7 +162,15 @@ declare namespace gapi.client {
138
162
  /** Non-seasonal order. */
139
163
  nonSeasonalOrder?: ArimaOrder;
140
164
  /** Seasonal periods. Repeated because multiple periods are supported for one time series. */
141
- seasonalPeriods?: string[];
165
+ seasonalPeriods?:
166
+ | 'SEASONAL_PERIOD_TYPE_UNSPECIFIED'
167
+ | 'NO_SEASONALITY'
168
+ | 'DAILY'
169
+ | 'WEEKLY'
170
+ | 'MONTHLY'
171
+ | 'QUARTERLY'
172
+ | 'YEARLY'
173
+ | 'HOURLY'[];
142
174
  /** The time_series_id value for this time series. It will be one of the unique values from the time_series_id_column specified during ARIMA model training. Only present when time_series_id_column training option was used. */
143
175
  timeSeriesId?: string;
144
176
  /** The tuple of time_series_ids identifying this time series. It will be one of the unique tuples of values present in the time_series_id_columns specified during ARIMA model training. Only present when time_series_id_columns training option was used and the order of values here are same as the order of time_series_id_columns. */
@@ -154,7 +186,11 @@ declare namespace gapi.client {
154
186
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
155
187
  exemptedMembers?: string[];
156
188
  /** The log type that this config enables. */
157
- logType?: string;
189
+ logType?:
190
+ | 'LOG_TYPE_UNSPECIFIED'
191
+ | 'ADMIN_READ'
192
+ | 'DATA_WRITE'
193
+ | 'DATA_READ';
158
194
  }
159
195
  interface AvroOptions {
160
196
  /** Optional. 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). */
@@ -168,15 +204,31 @@ declare namespace gapi.client {
168
204
  }
169
205
  interface BiEngineReason {
170
206
  /** Output only. High-level BI Engine reason for partial or disabled acceleration */
171
- code?: string;
207
+ code?:
208
+ | 'CODE_UNSPECIFIED'
209
+ | 'NO_RESERVATION'
210
+ | 'INSUFFICIENT_RESERVATION'
211
+ | 'UNSUPPORTED_SQL_TEXT'
212
+ | 'INPUT_TOO_LARGE'
213
+ | 'OTHER_REASON'
214
+ | 'TABLE_EXCLUDED';
172
215
  /** Output only. Free form human-readable reason for partial or disabled acceleration. */
173
216
  message?: string;
174
217
  }
175
218
  interface BiEngineStatistics {
176
219
  /** Output only. Specifies which mode of BI Engine acceleration was performed (if any). */
177
- accelerationMode?: string;
220
+ accelerationMode?:
221
+ | 'BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED'
222
+ | 'BI_ENGINE_DISABLED'
223
+ | 'PARTIAL_INPUT'
224
+ | 'FULL_INPUT'
225
+ | 'FULL_QUERY';
178
226
  /** Output only. Specifies which mode of BI Engine acceleration was performed (if any). */
179
- biEngineMode?: string;
227
+ biEngineMode?:
228
+ | 'ACCELERATION_MODE_UNSPECIFIED'
229
+ | 'DISABLED'
230
+ | 'PARTIAL'
231
+ | 'FULL';
180
232
  /** In case of DISABLED or PARTIAL bi_engine_mode, these contain the explanatory reasons as to why BI Engine could not accelerate. In case the full query was accelerated, this field is not populated. */
181
233
  biEngineReasons?: BiEngineReason[];
182
234
  }
@@ -184,11 +236,11 @@ declare namespace gapi.client {
184
236
  /** Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection_id can have the form `{project}.{location}.{connection_id}` or `projects/{project}/locations/{location}/connections/{connection_id}". */
185
237
  connectionId?: string;
186
238
  /** Optional. The file format the table data is stored in. */
187
- fileFormat?: string;
239
+ fileFormat?: 'FILE_FORMAT_UNSPECIFIED' | 'PARQUET';
188
240
  /** Optional. The fully qualified location prefix of the external folder where table data is stored. The '*' wildcard character is not allowed. The URI should be in the format `gs://bucket/path_to_table/` */
189
241
  storageUri?: string;
190
242
  /** Optional. The table format the metadata only snapshots are stored in. */
191
- tableFormat?: string;
243
+ tableFormat?: 'TABLE_FORMAT_UNSPECIFIED' | 'ICEBERG';
192
244
  }
193
245
  interface BigQueryModelTraining {
194
246
  /** Deprecated. */
@@ -392,7 +444,11 @@ declare namespace gapi.client {
392
444
  }
393
445
  interface DataFormatOptions {
394
446
  /** Optional. The API output format for a timestamp. This offers more explicit control over the timestamp output format as compared to the existing `use_int64_timestamp` option. */
395
- timestampOutputFormat?: string;
447
+ timestampOutputFormat?:
448
+ | 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED'
449
+ | 'FLOAT64'
450
+ | 'INT64'
451
+ | 'ISO8601_STRING';
396
452
  /** Optional. Output timestamp as usec int64. Default is false. */
397
453
  useInt64Timestamp?: boolean;
398
454
  }
@@ -400,13 +456,17 @@ declare namespace gapi.client {
400
456
  /** Whether any accessed data was protected by the data masking. */
401
457
  dataMaskingApplied?: boolean;
402
458
  }
459
+ interface DataPolicyList {
460
+ /** Contains a list of data policy options. At most 9 data policies are allowed per field. */
461
+ dataPolicies?: DataPolicyOption[];
462
+ }
403
463
  interface DataPolicyOption {
404
464
  /** Data policy resource name in the form of projects/project_id/locations/location_id/dataPolicies/data_policy_id. */
405
465
  name?: string;
406
466
  }
407
467
  interface Dataset {
408
468
  /** Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; If you patch a dataset, then this field is overwritten by the patched dataset's access field. To add entities, you must supply the entire existing access array in addition to any new entities that you want to add. */
409
- access?: Array<{
469
+ access?: {
410
470
  /** Optional. condition for the binding. If CEL expression in this field is true, this access binding will be considered */
411
471
  condition?: Expr;
412
472
  /** [Pick one] A grant authorizing all resources of a particular type in a particular dataset access to this dataset. Only views are supported for now. The role field is not required when this field is set. If that dataset is deleted and re-created, its access needs to be granted again via an update operation. */
@@ -427,7 +487,7 @@ declare namespace gapi.client {
427
487
  userByEmail?: string;
428
488
  /** [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to views/tables/routines in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. */
429
489
  view?: TableReference;
430
- }>;
490
+ }[];
431
491
  /** Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery Dataset * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake */
432
492
  catalogSource?: string;
433
493
  /** Output only. The time when this dataset was created, in milliseconds since the epoch. */
@@ -441,7 +501,10 @@ declare namespace gapi.client {
441
501
  /** This default partition expiration, expressed in milliseconds. When new time-partitioned tables are created in a dataset where this property is set, the table will inherit this value, propagated as the `TimePartitioning.expirationMs` property on the new table. If you set `TimePartitioning.expirationMs` explicitly when creating a table, the `defaultPartitionExpirationMs` of the containing dataset is ignored. When creating a partitioned table, if `defaultPartitionExpirationMs` is set, the `defaultTableExpirationMs` value is ignored and the table will not be inherit a table expiration deadline. */
442
502
  defaultPartitionExpirationMs?: string;
443
503
  /** Optional. Defines the default rounding mode specification of new tables created within this dataset. During table creation, if this field is specified, the table within this dataset will inherit the default rounding mode of the dataset. Setting the default rounding mode on a table overrides this option. Existing tables in the dataset are unaffected. If columns are defined during that table creation, they will immediately inherit the table's default rounding mode, unless otherwise specified. */
444
- defaultRoundingMode?: string;
504
+ defaultRoundingMode?:
505
+ | 'ROUNDING_MODE_UNSPECIFIED'
506
+ | 'ROUND_HALF_AWAY_FROM_ZERO'
507
+ | 'ROUND_HALF_EVEN';
445
508
  /** Optional. The default lifetime of all tables in the dataset, in milliseconds. The minimum lifetime value is 3600000 milliseconds (one hour). To clear an existing default expiration with a PATCH request, set to 0. Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. */
446
509
  defaultTableExpirationMs?: string;
447
510
  /** Optional. A user-friendly description of the dataset. */
@@ -483,14 +546,17 @@ declare namespace gapi.client {
483
546
  /** Output only. A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. */
484
547
  selfLink?: string;
485
548
  /** Optional. Updates storage_billing_model for the dataset. */
486
- storageBillingModel?: string;
549
+ storageBillingModel?:
550
+ | 'STORAGE_BILLING_MODEL_UNSPECIFIED'
551
+ | 'LOGICAL'
552
+ | 'PHYSICAL';
487
553
  /** Output only. Tags for the dataset. To provide tags as inputs, use the `resourceTags` field. */
488
- tags?: Array<{
554
+ tags?: {
489
555
  /** Required. The namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is org id. */
490
556
  tagKey?: string;
491
557
  /** Required. The friendly short name of the tag value, e.g. "production". */
492
558
  tagValue?: string;
493
- }>;
559
+ }[];
494
560
  /** Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API. */
495
561
  type?: string;
496
562
  }
@@ -498,11 +564,11 @@ declare namespace gapi.client {
498
564
  /** The dataset this entry applies to */
499
565
  dataset?: DatasetReference;
500
566
  /** Which resources in the dataset this entry applies to. Currently, only views are supported, but additional target types may be added in the future. */
501
- targetTypes?: string[];
567
+ targetTypes?: 'TARGET_TYPE_UNSPECIFIED' | 'VIEWS' | 'ROUTINES'[];
502
568
  }
503
569
  interface DatasetList {
504
570
  /** An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project. */
505
- datasets?: Array<{
571
+ datasets?: {
506
572
  /** Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery Dataset. * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake. */
507
573
  catalogSource?: string;
508
574
  /** The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. */
@@ -521,7 +587,7 @@ declare namespace gapi.client {
521
587
  location?: string;
522
588
  /** Output only. Same as `type` in `Dataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API. */
523
589
  type?: string;
524
- }>;
590
+ }[];
525
591
  /** Output only. A hash value of the results page. You can use this property to determine if the page has changed since the last request. */
526
592
  etag?: string;
527
593
  /** Output only. The resource type. This property always returns the value "bigquery#datasetList" */
@@ -581,9 +647,16 @@ declare namespace gapi.client {
581
647
  /** Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. */
582
648
  deletedRowCount?: string;
583
649
  /** Output only. DML mode used. */
584
- dmlMode?: string;
650
+ dmlMode?:
651
+ | 'DML_MODE_UNSPECIFIED'
652
+ | 'COARSE_GRAINED_DML'
653
+ | 'FINE_GRAINED_DML';
585
654
  /** Output only. Reason for disabling fine-grained DML if applicable. */
586
- fineGrainedDmlUnusedReason?: string;
655
+ fineGrainedDmlUnusedReason?:
656
+ | 'FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED'
657
+ | 'MAX_PARTITION_SIZE_EXCEEDED'
658
+ | 'TABLE_NOT_ENROLLED'
659
+ | 'DML_IN_MULTI_STATEMENT_TRANSACTION';
587
660
  /** Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements */
588
661
  insertedRowCount?: string;
589
662
  /** Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements. */
@@ -645,7 +718,7 @@ declare namespace gapi.client {
645
718
  /** Number of parallel input segments completed. */
646
719
  completedParallelInputs?: string;
647
720
  /** Output only. Compute mode for this stage. */
648
- computeMode?: string;
721
+ computeMode?: 'COMPUTE_MODE_UNSPECIFIED' | 'BIGQUERY' | 'BI_ENGINE';
649
722
  /** Milliseconds the average shard spent on CPU-bound tasks. */
650
723
  computeMsAvg?: string;
651
724
  /** Milliseconds the slowest shard spent on CPU-bound tasks. */
@@ -765,9 +838,15 @@ declare namespace gapi.client {
765
838
  /** Optional. Format used to parse DATETIME values. Supports C-style and SQL-style values. */
766
839
  datetimeFormat?: string;
767
840
  /** Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exceeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
768
- decimalTargetTypes?: string[];
841
+ decimalTargetTypes?:
842
+ | 'DECIMAL_TARGET_TYPE_UNSPECIFIED'
843
+ | 'NUMERIC'
844
+ | 'BIGNUMERIC'
845
+ | 'STRING'[];
769
846
  /** Optional. 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. */
770
- fileSetSpecType?: string;
847
+ fileSetSpecType?:
848
+ | 'FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH'
849
+ | 'FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST';
771
850
  /** Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS. */
772
851
  googleSheetsOptions?: GoogleSheetsOptions;
773
852
  /** Optional. 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. */
@@ -775,15 +854,18 @@ declare namespace gapi.client {
775
854
  /** Optional. 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. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored. ORC: This setting is ignored. Parquet: This setting is ignored. */
776
855
  ignoreUnknownValues?: boolean;
777
856
  /** Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). */
778
- jsonExtension?: string;
857
+ jsonExtension?: 'JSON_EXTENSION_UNSPECIFIED' | 'GEOJSON';
779
858
  /** Optional. Additional properties to set if sourceFormat is set to JSON. */
780
859
  jsonOptions?: JsonOptions;
781
860
  /** Optional. The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats. */
782
861
  maxBadRecords?: number;
783
862
  /** Optional. Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. */
784
- metadataCacheMode?: string;
863
+ metadataCacheMode?:
864
+ | 'METADATA_CACHE_MODE_UNSPECIFIED'
865
+ | 'AUTOMATIC'
866
+ | 'MANUAL';
785
867
  /** Optional. ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type. */
786
- objectMetadata?: string;
868
+ objectMetadata?: 'OBJECT_METADATA_UNSPECIFIED' | 'DIRECTORY' | 'SIMPLE';
787
869
  /** Optional. Additional properties to set if sourceFormat is set to PARQUET. */
788
870
  parquetOptions?: ParquetOptions;
789
871
  /** Optional. 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. */
@@ -814,6 +896,8 @@ declare namespace gapi.client {
814
896
  containerCpu?: number;
815
897
  /** Optional. Amount of memory provisioned for a Python UDF container instance. Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is 512Mi. For more information, see [Configure container limits for Python UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-python#configure-container-limits) */
816
898
  containerMemory?: string;
899
+ /** Optional. Maximum number of requests that a Cloud Run instance can handle concurrently. If absent or if `0`, a default concurrency is used. */
900
+ containerRequestConcurrency?: string;
817
901
  /** Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, BigQuery dynamically decides the number of rows in a batch. */
818
902
  maxBatchingRows?: string;
819
903
  /** Optional. Fully qualified name of the connection whose service account will be used to execute the code in the container. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` */
@@ -845,7 +929,7 @@ declare namespace gapi.client {
845
929
  }
846
930
  interface ForeignTypeInfo {
847
931
  /** Required. Specifies the system which defines the foreign data type. */
848
- typeSystem?: string;
932
+ typeSystem?: 'TYPE_SYSTEM_UNSPECIFIED' | 'HIVE';
849
933
  }
850
934
  interface ForeignViewDefinition {
851
935
  /** Optional. Represents the dialect of the query. */
@@ -857,6 +941,10 @@ declare namespace gapi.client {
857
941
  /** A list of unique errors at query level (up to 5, truncated to 100 chars) */
858
942
  errors?: string[];
859
943
  }
944
+ interface GenAiFunctionCacheStats {
945
+ /** Number of rows served from cache. */
946
+ numCacheHitRows?: string;
947
+ }
860
948
  interface GenAiFunctionCostOptimizationStats {
861
949
  /** System generated message to provide insights into cost optimization state. */
862
950
  message?: string;
@@ -870,6 +958,8 @@ declare namespace gapi.client {
870
958
  numFailedRows?: string;
871
959
  }
872
960
  interface GenAiFunctionStats {
961
+ /** Cache stats for the function. */
962
+ cacheStats?: GenAiFunctionCacheStats;
873
963
  /** Cost optimization stats if applied on the rows processed by the function. */
874
964
  costOptimizationStats?: GenAiFunctionCostOptimizationStats;
875
965
  /** Error stats for the function. */
@@ -891,7 +981,10 @@ declare namespace gapi.client {
891
981
  /** Definition of the expression used to generate the field. */
892
982
  generatedExpressionInfo?: GeneratedExpressionInfo;
893
983
  /** Optional. Dictates when system generated values are used to populate the field. */
894
- generatedMode?: string;
984
+ generatedMode?:
985
+ | 'GENERATED_MODE_UNSPECIFIED'
986
+ | 'GENERATED_ALWAYS'
987
+ | 'GENERATED_BY_DEFAULT';
895
988
  }
896
989
  interface GeneratedExpressionInfo {
897
990
  /** Optional. Whether the column generation is done asynchronously. */
@@ -1035,7 +1128,14 @@ declare namespace gapi.client {
1035
1128
  /** Starting time of the trial. */
1036
1129
  startTimeMs?: string;
1037
1130
  /** The status of the trial. */
1038
- status?: string;
1131
+ status?:
1132
+ | 'TRIAL_STATUS_UNSPECIFIED'
1133
+ | 'NOT_STARTED'
1134
+ | 'RUNNING'
1135
+ | 'SUCCEEDED'
1136
+ | 'FAILED'
1137
+ | 'INFEASIBLE'
1138
+ | 'STOPPED_EARLY';
1039
1139
  /** Loss computed on the training data at the end of trial. */
1040
1140
  trainingLoss?: number;
1041
1141
  /** 1-based index of the trial. */
@@ -1043,7 +1143,10 @@ declare namespace gapi.client {
1043
1143
  }
1044
1144
  interface IncrementalResultStats {
1045
1145
  /** Output only. Reason why incremental query results are/were not written by the query. */
1046
- disabledReason?: string;
1146
+ disabledReason?:
1147
+ | 'DISABLED_REASON_UNSPECIFIED'
1148
+ | 'OTHER'
1149
+ | 'UNSUPPORTED_OPERATOR';
1047
1150
  /** Output only. Additional human-readable clarification, if available, for DisabledReason. */
1048
1151
  disabledReasonDetails?: string;
1049
1152
  /** Output only. The time at which the first incremental result was written. If the query needed to restart internally, this only describes the final attempt. */
@@ -1071,7 +1174,29 @@ declare namespace gapi.client {
1071
1174
  /** Specifies the base table involved in the reason that no search index was used. */
1072
1175
  baseTable?: TableReference;
1073
1176
  /** Specifies the high-level reason for the scenario when no search index was used. */
1074
- code?: string;
1177
+ code?:
1178
+ | 'CODE_UNSPECIFIED'
1179
+ | 'INDEX_CONFIG_NOT_AVAILABLE'
1180
+ | 'PENDING_INDEX_CREATION'
1181
+ | 'BASE_TABLE_TRUNCATED'
1182
+ | 'INDEX_CONFIG_MODIFIED'
1183
+ | 'TIME_TRAVEL_QUERY'
1184
+ | 'NO_PRUNING_POWER'
1185
+ | 'UNINDEXED_SEARCH_FIELDS'
1186
+ | 'UNSUPPORTED_SEARCH_PATTERN'
1187
+ | 'OPTIMIZED_WITH_MATERIALIZED_VIEW'
1188
+ | 'SECURED_BY_DATA_MASKING'
1189
+ | 'MISMATCHED_TEXT_ANALYZER'
1190
+ | 'BASE_TABLE_TOO_SMALL'
1191
+ | 'BASE_TABLE_TOO_LARGE'
1192
+ | 'ESTIMATED_PERFORMANCE_GAIN_TOO_LOW'
1193
+ | 'COLUMN_METADATA_INDEX_NOT_USED'
1194
+ | 'NOT_SUPPORTED_IN_STANDARD_EDITION'
1195
+ | 'INDEX_SUPPRESSED_BY_FUNCTION_OPTION'
1196
+ | 'QUERY_CACHE_HIT'
1197
+ | 'STALE_INDEX'
1198
+ | 'INTERNAL_ERROR'
1199
+ | 'OTHER_REASON';
1075
1200
  /** Specifies the name of the unused search index, if available. */
1076
1201
  indexName?: string;
1077
1202
  /** Free form human-readable reason for the scenario when no search index was used. */
@@ -1207,7 +1332,11 @@ declare namespace gapi.client {
1207
1332
  /** Clustering specification for the destination table. */
1208
1333
  clustering?: Clustering;
1209
1334
  /** Optional. Character map supported for column names in CSV/Parquet loads. Defaults to STRICT and can be overridden by Project Config Service. Using this option with unsupporting load formats will result in an error. */
1210
- columnNameCharacterMap?: string;
1335
+ columnNameCharacterMap?:
1336
+ | 'COLUMN_NAME_CHARACTER_MAP_UNSPECIFIED'
1337
+ | 'STRICT'
1338
+ | 'V1'
1339
+ | 'V2';
1211
1340
  /** Optional. Connection properties which can modify the load job behavior. Currently, only the 'session_id' connection property is supported, and is used to resolve _SESSION appearing as the dataset id. */
1212
1341
  connectionProperties?: ConnectionProperty[];
1213
1342
  /** Optional. [Experimental] Configures the load job to copy files directly to the destination BigLake managed table, bypassing file content reading and rewriting. Copying files only is supported when all the following are true: * `source_uris` are located in the same Cloud Storage location as the destination table's `storage_uri` location. * `source_format` is `PARQUET`. * `destination_table` is an existing BigLake managed table. The table's schema does not have flexible column names. The table's columns do not have type parameters other than precision and scale. * No options other than the above are specified. */
@@ -1221,7 +1350,11 @@ declare namespace gapi.client {
1221
1350
  /** Optional. Date format used for parsing DATETIME values. */
1222
1351
  datetimeFormat?: string;
1223
1352
  /** Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exceeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats. */
1224
- decimalTargetTypes?: string[];
1353
+ decimalTargetTypes?:
1354
+ | 'DECIMAL_TARGET_TYPE_UNSPECIFIED'
1355
+ | 'NUMERIC'
1356
+ | 'BIGNUMERIC'
1357
+ | 'STRING'[];
1225
1358
  /** Custom encryption configuration (e.g., Cloud KMS keys) */
1226
1359
  destinationEncryptionConfiguration?: EncryptionConfiguration;
1227
1360
  /** [Required] The destination table to load the data into. */
@@ -1233,13 +1366,15 @@ declare namespace gapi.client {
1233
1366
  /** Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). */
1234
1367
  fieldDelimiter?: string;
1235
1368
  /** Optional. Specifies how source URIs are interpreted for constructing the file set to load. By default, source URIs are expanded against the underlying storage. You can also specify manifest files to control how the file set is constructed. This option is only applicable to object storage systems. */
1236
- fileSetSpecType?: string;
1369
+ fileSetSpecType?:
1370
+ | 'FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH'
1371
+ | 'FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST';
1237
1372
  /** Optional. 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. */
1238
1373
  hivePartitioningOptions?: HivePartitioningOptions;
1239
1374
  /** Optional. 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. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names in the table schema Avro, Parquet, ORC: Fields in the file schema that don't exist in the table schema. */
1240
1375
  ignoreUnknownValues?: boolean;
1241
1376
  /** Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). */
1242
- jsonExtension?: string;
1377
+ jsonExtension?: 'JSON_EXTENSION_UNSPECIFIED' | 'GEOJSON';
1243
1378
  /** Optional. The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This is only supported for CSV and NEWLINE_DELIMITED_JSON file formats. */
1244
1379
  maxBadRecords?: number;
1245
1380
  /** Optional. Specifies a string that represents a null value in a CSV file. For example, if you specify "\N", BigQuery interprets "\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. */
@@ -1269,7 +1404,10 @@ declare namespace gapi.client {
1269
1404
  /** Optional. The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. */
1270
1405
  skipLeadingRows?: number;
1271
1406
  /** Optional. Controls the strategy used to match loaded columns to the schema. If not set, a sensible default is chosen based on how the schema is provided. If autodetect is used, then columns are matched by name. Otherwise, columns are matched by position. This is done to keep the behavior backward-compatible. */
1272
- sourceColumnMatch?: string;
1407
+ sourceColumnMatch?:
1408
+ | 'SOURCE_COLUMN_MATCH_UNSPECIFIED'
1409
+ | 'POSITION'
1410
+ | 'NAME';
1273
1411
  /** Optional. The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV. */
1274
1412
  sourceFormat?: string;
1275
1413
  /** [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified. Also, the '*' wildcard character is not allowed. */
@@ -1357,7 +1495,12 @@ declare namespace gapi.client {
1357
1495
  /** [Required] The destination table. */
1358
1496
  destinationTable?: TableReference;
1359
1497
  /** Optional. Supported operation types in table copy job. */
1360
- operationType?: string;
1498
+ operationType?:
1499
+ | 'OPERATION_TYPE_UNSPECIFIED'
1500
+ | 'COPY'
1501
+ | 'SNAPSHOT'
1502
+ | 'RESTORE'
1503
+ | 'CLONE';
1361
1504
  /** [Pick one] Source table to copy. */
1362
1505
  sourceTable?: TableReference;
1363
1506
  /** [Pick one] Source tables to copy. */
@@ -1367,13 +1510,18 @@ declare namespace gapi.client {
1367
1510
  }
1368
1511
  interface JobCreationReason {
1369
1512
  /** Output only. Specifies the high level reason why a Job was created. */
1370
- code?: string;
1513
+ code?:
1514
+ | 'CODE_UNSPECIFIED'
1515
+ | 'REQUESTED'
1516
+ | 'LONG_RUNNING'
1517
+ | 'LARGE_RESULTS'
1518
+ | 'OTHER';
1371
1519
  }
1372
1520
  interface JobList {
1373
1521
  /** A hash of this page of results. */
1374
1522
  etag?: string;
1375
1523
  /** List of jobs that were requested. */
1376
- jobs?: Array<{
1524
+ jobs?: {
1377
1525
  /** Required. Describes the job configuration. */
1378
1526
  configuration?: JobConfiguration;
1379
1527
  /** A result object that will be present only if the job has failed. */
@@ -1394,7 +1542,7 @@ declare namespace gapi.client {
1394
1542
  status?: JobStatus;
1395
1543
  /** [Full-projection-only] Email address of the user who ran the job. */
1396
1544
  user_email?: string;
1397
- }>;
1545
+ }[];
1398
1546
  /** The resource type of the response. */
1399
1547
  kind?: string;
1400
1548
  /** A token to request the next page of results. */
@@ -1420,7 +1568,11 @@ declare namespace gapi.client {
1420
1568
  /** Output only. Statistics for data-masking. Present only for query and extract jobs. */
1421
1569
  dataMaskingStatistics?: DataMaskingStatistics;
1422
1570
  /** Output only. Name of edition corresponding to the reservation for this job at the time of this update. */
1423
- edition?: string;
1571
+ edition?:
1572
+ | 'RESERVATION_EDITION_UNSPECIFIED'
1573
+ | 'STANDARD'
1574
+ | 'ENTERPRISE'
1575
+ | 'ENTERPRISE_PLUS';
1424
1576
  /** Output only. End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. */
1425
1577
  endTime?: string;
1426
1578
  /** Output only. Statistics for an extract job. */
@@ -1442,12 +1594,12 @@ declare namespace gapi.client {
1442
1594
  /** Output only. The reservation group path of the reservation assigned to this job. This field has a limit of 10 nested reservation groups. This is to maintain consistency between reservatins info schema and jobs info schema. The first reservation group is the root reservation group and the last is the leaf or lowest level reservation group. */
1443
1595
  reservationGroupPath?: string[];
1444
1596
  /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1445
- reservationUsage?: Array<{
1597
+ reservationUsage?: {
1446
1598
  /** Reservation name or "unreserved" for on-demand resource usage and multi-statement queries. */
1447
1599
  name?: string;
1448
1600
  /** Total slot milliseconds used by the reservation for a particular job. */
1449
1601
  slotMs?: string;
1450
- }>;
1602
+ }[];
1451
1603
  /** Output only. Statistics for row-level security. Present only for query and extract jobs. */
1452
1604
  rowLevelSecurityStatistics?: RowLevelSecurityStatistics;
1453
1605
  /** Output only. If this a child job of a script, specifies information about the context of this job within the script. */
@@ -1531,12 +1683,12 @@ declare namespace gapi.client {
1531
1683
  /** Output only. Referenced tables for the job. */
1532
1684
  referencedTables?: TableReference[];
1533
1685
  /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1534
- reservationUsage?: Array<{
1686
+ reservationUsage?: {
1535
1687
  /** Reservation name or "unreserved" for on-demand resource usage and multi-statement queries. */
1536
1688
  name?: string;
1537
1689
  /** Total slot milliseconds used by the reservation for a particular job. */
1538
1690
  slotMs?: string;
1539
- }>;
1691
+ }[];
1540
1692
  /** Output only. The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
1541
1693
  schema?: TableSchema;
1542
1694
  /** Output only. Search query specific statistics. */
@@ -1606,7 +1758,12 @@ declare namespace gapi.client {
1606
1758
  /** Optional. The only columns that joins are allowed on. This field is must be specified for join_conditions JOIN_ANY and JOIN_ALL and it cannot be set for JOIN_BLOCKED. */
1607
1759
  joinAllowedColumns?: string[];
1608
1760
  /** Optional. Specifies if a join is required or not on queries for the view. Default is JOIN_CONDITION_UNSPECIFIED. */
1609
- joinCondition?: string;
1761
+ joinCondition?:
1762
+ | 'JOIN_CONDITION_UNSPECIFIED'
1763
+ | 'JOIN_ANY'
1764
+ | 'JOIN_ALL'
1765
+ | 'JOIN_NOT_REQUIRED'
1766
+ | 'JOIN_BLOCKED';
1610
1767
  }
1611
1768
  interface JsonObject {
1612
1769
  [key: string]: any;
@@ -1618,7 +1775,7 @@ declare namespace gapi.client {
1618
1775
  interface JsonValue {}
1619
1776
  interface LinkedDatasetMetadata {
1620
1777
  /** Output only. Specifies whether Linked Dataset is currently in a linked state or not. */
1621
- linkState?: string;
1778
+ linkState?: 'LINK_STATE_UNSPECIFIED' | 'LINKED' | 'UNLINKED';
1622
1779
  }
1623
1780
  interface LinkedDatasetSource {
1624
1781
  /** The source dataset reference contains project numbers and not project ids. */
@@ -1666,7 +1823,19 @@ declare namespace gapi.client {
1666
1823
  /** If present, specifies a best-effort estimation of the bytes saved by using the materialized view rather than its base tables. */
1667
1824
  estimatedBytesSaved?: string;
1668
1825
  /** If present, specifies the reason why the materialized view was not chosen for the query. */
1669
- rejectedReason?: string;
1826
+ rejectedReason?:
1827
+ | 'REJECTED_REASON_UNSPECIFIED'
1828
+ | 'NO_DATA'
1829
+ | 'COST'
1830
+ | 'BASE_TABLE_TRUNCATED'
1831
+ | 'BASE_TABLE_DATA_CHANGE'
1832
+ | 'BASE_TABLE_PARTITION_EXPIRATION_CHANGE'
1833
+ | 'BASE_TABLE_EXPIRED_PARTITION'
1834
+ | 'BASE_TABLE_INCOMPATIBLE_METADATA_CHANGE'
1835
+ | 'TIME_ZONE'
1836
+ | 'OUT_OF_TIME_TRAVEL_WINDOW'
1837
+ | 'BASE_TABLE_FINE_GRAINED_SECURITY_POLICY'
1838
+ | 'BASE_TABLE_TOO_STALE';
1670
1839
  /** The candidate materialized view. */
1671
1840
  tableReference?: TableReference;
1672
1841
  }
@@ -1694,6 +1863,12 @@ declare namespace gapi.client {
1694
1863
  /** Output only. Refresh watermark of materialized view. The base tables' data were collected into the materialized view cache until this time. */
1695
1864
  refreshWatermark?: string;
1696
1865
  }
1866
+ interface MetadataCacheStalenessInsight {
1867
+ /** Output only. Average column metadata index staleness of previous runs with the same query hash. */
1868
+ avgPreviousStalenessMs?: string;
1869
+ /** Output only. The percent increase in staleness between the current job and the average staleness of previous jobs with the same query hash. */
1870
+ stalenessPercentageIncrease?: number;
1871
+ }
1697
1872
  interface MetadataCacheStatistics {
1698
1873
  /** Set for the Metadata caching eligible tables referenced in the query. */
1699
1874
  tableMetadataCacheUsage?: TableMetadataCacheUsage[];
@@ -1706,9 +1881,38 @@ declare namespace gapi.client {
1706
1881
  /** Output only. Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop. */
1707
1882
  maxIterations?: string;
1708
1883
  /** Output only. The type of the model that is being trained. */
1709
- modelType?: string;
1884
+ modelType?:
1885
+ | 'MODEL_TYPE_UNSPECIFIED'
1886
+ | 'LINEAR_REGRESSION'
1887
+ | 'LOGISTIC_REGRESSION'
1888
+ | 'KMEANS'
1889
+ | 'MATRIX_FACTORIZATION'
1890
+ | 'DNN_CLASSIFIER'
1891
+ | 'TENSORFLOW'
1892
+ | 'DNN_REGRESSOR'
1893
+ | 'XGBOOST'
1894
+ | 'BOOSTED_TREE_REGRESSOR'
1895
+ | 'BOOSTED_TREE_CLASSIFIER'
1896
+ | 'ARIMA'
1897
+ | 'AUTOML_REGRESSOR'
1898
+ | 'AUTOML_CLASSIFIER'
1899
+ | 'PCA'
1900
+ | 'DNN_LINEAR_COMBINED_CLASSIFIER'
1901
+ | 'DNN_LINEAR_COMBINED_REGRESSOR'
1902
+ | 'AUTOENCODER'
1903
+ | 'ARIMA_PLUS'
1904
+ | 'ARIMA_PLUS_XREG'
1905
+ | 'RANDOM_FOREST_REGRESSOR'
1906
+ | 'RANDOM_FOREST_CLASSIFIER'
1907
+ | 'TENSORFLOW_LITE'
1908
+ | 'ONNX'
1909
+ | 'TRANSFORM_ONLY'
1910
+ | 'CONTRIBUTION_ANALYSIS';
1710
1911
  /** Output only. Training type of the job. */
1711
- trainingType?: string;
1912
+ trainingType?:
1913
+ | 'TRAINING_TYPE_UNSPECIFIED'
1914
+ | 'SINGLE_TRAINING'
1915
+ | 'HPARAM_TUNING';
1712
1916
  }
1713
1917
  interface Model {
1714
1918
  /** The best trial_id across all training runs. */
@@ -1744,7 +1948,33 @@ declare namespace gapi.client {
1744
1948
  /** Required. Unique identifier for this model. */
1745
1949
  modelReference?: ModelReference;
1746
1950
  /** Output only. Type of the model resource. */
1747
- modelType?: string;
1951
+ modelType?:
1952
+ | 'MODEL_TYPE_UNSPECIFIED'
1953
+ | 'LINEAR_REGRESSION'
1954
+ | 'LOGISTIC_REGRESSION'
1955
+ | 'KMEANS'
1956
+ | 'MATRIX_FACTORIZATION'
1957
+ | 'DNN_CLASSIFIER'
1958
+ | 'TENSORFLOW'
1959
+ | 'DNN_REGRESSOR'
1960
+ | 'XGBOOST'
1961
+ | 'BOOSTED_TREE_REGRESSOR'
1962
+ | 'BOOSTED_TREE_CLASSIFIER'
1963
+ | 'ARIMA'
1964
+ | 'AUTOML_REGRESSOR'
1965
+ | 'AUTOML_CLASSIFIER'
1966
+ | 'PCA'
1967
+ | 'DNN_LINEAR_COMBINED_CLASSIFIER'
1968
+ | 'DNN_LINEAR_COMBINED_REGRESSOR'
1969
+ | 'AUTOENCODER'
1970
+ | 'ARIMA_PLUS'
1971
+ | 'ARIMA_PLUS_XREG'
1972
+ | 'RANDOM_FOREST_REGRESSOR'
1973
+ | 'RANDOM_FOREST_CLASSIFIER'
1974
+ | 'TENSORFLOW_LITE'
1975
+ | 'ONNX'
1976
+ | 'TRANSFORM_ONLY'
1977
+ | 'CONTRIBUTION_ANALYSIS';
1748
1978
  /** Output only. For single-objective [hyperparameter tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it only contains the best trial. For multi-objective [hyperparameter tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it contains all Pareto optimal trials sorted by trial_id. */
1749
1979
  optimalTrialIds?: string[];
1750
1980
  /** Output only. Remote model info */
@@ -1788,7 +2018,7 @@ declare namespace gapi.client {
1788
2018
  /** Optional. Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. */
1789
2019
  enumAsString?: boolean;
1790
2020
  /** Optional. Indicates how to represent a Parquet map if present. */
1791
- mapTargetType?: string;
2021
+ mapTargetType?: 'MAP_TARGET_TYPE_UNSPECIFIED' | 'ARRAY_OF_STRUCT';
1792
2022
  }
1793
2023
  interface PartitionedColumn {
1794
2024
  /** Required. The name of the partition column. */
@@ -1809,6 +2039,8 @@ declare namespace gapi.client {
1809
2039
  stagePerformanceChangeInsights?: StagePerformanceChangeInsight[];
1810
2040
  /** Output only. Standalone query stage performance insights, for exploring potential improvements. */
1811
2041
  stagePerformanceStandaloneInsights?: StagePerformanceStandaloneInsight[];
2042
+ /** Output only. Performance insights for table-level attributes that changed compared to previous runs. */
2043
+ tableChangeInsights?: TableChangeInsight[];
1812
2044
  }
1813
2045
  interface Policy {
1814
2046
  /** Specifies cloud audit logging configuration for this policy. */
@@ -1846,7 +2078,7 @@ declare namespace gapi.client {
1846
2078
  /** Use this token to request the next page of results. */
1847
2079
  nextPageToken?: string;
1848
2080
  /** Projects to which the user has at least READ access. This field can be omitted if `totalItems` is 0. */
1849
- projects?: Array<{
2081
+ projects?: {
1850
2082
  /** A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string. */
1851
2083
  friendlyName?: string;
1852
2084
  /** An opaque ID of this project. */
@@ -1857,7 +2089,7 @@ declare namespace gapi.client {
1857
2089
  numericId?: string;
1858
2090
  /** A unique reference to this project. */
1859
2091
  projectReference?: ProjectReference;
1860
- }>;
2092
+ }[];
1861
2093
  /** The total number of projects in the page. A wrapper is used here because the field should still be in the response when the value is 0. */
1862
2094
  totalItems?: number;
1863
2095
  }
@@ -1905,14 +2137,14 @@ declare namespace gapi.client {
1905
2137
  /** Optional. The element type of the range, if this is a range. */
1906
2138
  rangeElementType?: QueryParameterType;
1907
2139
  /** Optional. The types of the fields of this struct, in order, if this is a struct. */
1908
- structTypes?: Array<{
2140
+ structTypes?: {
1909
2141
  /** Optional. Human-oriented description of the field. */
1910
2142
  description?: string;
1911
2143
  /** Optional. The name of this field. */
1912
2144
  name?: string;
1913
2145
  /** Required. The type of this field. */
1914
2146
  type?: QueryParameterType;
1915
- }>;
2147
+ }[];
1916
2148
  /** Optional. Precision (maximum number of total digits in base 10) for seconds of TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with microsecond precision) * 12 (For TIMESTAMP type with picosecond precision) */
1917
2149
  timestampPrecision?: string;
1918
2150
  /** Required. The top level type of this field. */
@@ -1944,7 +2176,10 @@ declare namespace gapi.client {
1944
2176
  /** Optional. Output format adjustments. */
1945
2177
  formatOptions?: DataFormatOptions;
1946
2178
  /** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. */
1947
- jobCreationMode?: string;
2179
+ jobCreationMode?:
2180
+ | 'JOB_CREATION_MODE_UNSPECIFIED'
2181
+ | 'JOB_CREATION_REQUIRED'
2182
+ | 'JOB_CREATION_OPTIONAL';
1948
2183
  /** Optional. Job timeout in milliseconds. If this time limit is exceeded, BigQuery will attempt to stop a longer job, but may not always succeed in canceling it before the job completes. For example, a job that takes more than 60 seconds to complete has a better chance of being stopped than a job that takes 10 seconds to complete. This timeout applies to the query even if a job does not need to be created. */
1949
2184
  jobTimeoutMs?: string;
1950
2185
  /** The resource type of the request. */
@@ -2101,13 +2336,18 @@ declare namespace gapi.client {
2101
2336
  /** Output only. The model version for LLM. */
2102
2337
  remoteModelVersion?: string;
2103
2338
  /** Output only. The remote service type for remote model. */
2104
- remoteServiceType?: string;
2339
+ remoteServiceType?:
2340
+ | 'REMOTE_SERVICE_TYPE_UNSPECIFIED'
2341
+ | 'CLOUD_AI_TRANSLATE_V3'
2342
+ | 'CLOUD_AI_VISION_V1'
2343
+ | 'CLOUD_AI_NATURAL_LANGUAGE_V1'
2344
+ | 'CLOUD_AI_SPEECH_TO_TEXT_V2';
2105
2345
  /** Output only. The name of the speech recognizer to use for speech recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. Customers can specify this field at model creation. If not specified, a default recognizer `projects/{model project}/locations/global/recognizers/_` will be used. See more details at [recognizers](https://cloud.google.com/speech-to-text/v2/docs/reference/rest/v2/projects.locations.recognizers) */
2106
2346
  speechRecognizer?: string;
2107
2347
  }
2108
2348
  interface RestrictionConfig {
2109
2349
  /** Output only. Specifies the type of dataset/table restriction. */
2110
- type?: string;
2350
+ type?: 'RESTRICTION_TYPE_UNSPECIFIED' | 'RESTRICTED_DATA_EGRESS';
2111
2351
  }
2112
2352
  interface Routine {
2113
2353
  /** Optional. */
@@ -2117,13 +2357,16 @@ declare namespace gapi.client {
2117
2357
  /** Output only. The time when this routine was created, in milliseconds since the epoch. */
2118
2358
  creationTime?: string;
2119
2359
  /** Optional. If set to `DATA_MASKING`, the function is validated and made available as a masking function. For more information, see [Create custom masking routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask). */
2120
- dataGovernanceType?: string;
2360
+ dataGovernanceType?: 'DATA_GOVERNANCE_TYPE_UNSPECIFIED' | 'DATA_MASKING';
2121
2361
  /** Required. The body of the routine. For functions, this is the expression in the AS clause. If `language = "SQL"`, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))` The definition_body is `concat(x, "\n", y)` (\n is not replaced with linebreak). If `language="JAVASCRIPT"`, it is the evaluated string in the AS clause. For example, for the function created with the following statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'` The definition_body is `return "\n";\n` Note that both \n are replaced with linebreaks. If `definition_body` references another routine, then that routine must be fully qualified with its project ID. */
2122
2362
  definitionBody?: string;
2123
2363
  /** Optional. The description of the routine, if defined. */
2124
2364
  description?: string;
2125
2365
  /** Optional. The determinism level of the JavaScript UDF, if defined. */
2126
- determinismLevel?: string;
2366
+ determinismLevel?:
2367
+ | 'DETERMINISM_LEVEL_UNSPECIFIED'
2368
+ | 'DETERMINISTIC'
2369
+ | 'NOT_DETERMINISTIC';
2127
2370
  /** Output only. A hash of this resource. */
2128
2371
  etag?: string;
2129
2372
  /** Optional. Options for the runtime of the external system executing the routine. This field is only applicable for Python UDFs. [Preview](https://cloud.google.com/products/#product-launch-stages) */
@@ -2131,7 +2374,13 @@ declare namespace gapi.client {
2131
2374
  /** Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries. */
2132
2375
  importedLibraries?: string[];
2133
2376
  /** Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. */
2134
- language?: string;
2377
+ language?:
2378
+ | 'LANGUAGE_UNSPECIFIED'
2379
+ | 'SQL'
2380
+ | 'JAVASCRIPT'
2381
+ | 'PYTHON'
2382
+ | 'JAVA'
2383
+ | 'SCALA';
2135
2384
  /** Output only. The time when this routine was last modified, in milliseconds since the epoch. */
2136
2385
  lastModifiedTime?: string;
2137
2386
  /** Optional. Options for the Python UDF. [Preview](https://cloud.google.com/products/#product-launch-stages) */
@@ -2145,9 +2394,14 @@ declare namespace gapi.client {
2145
2394
  /** Required. Reference describing the ID of this routine. */
2146
2395
  routineReference?: RoutineReference;
2147
2396
  /** Required. The type of routine. */
2148
- routineType?: string;
2397
+ routineType?:
2398
+ | 'ROUTINE_TYPE_UNSPECIFIED'
2399
+ | 'SCALAR_FUNCTION'
2400
+ | 'PROCEDURE'
2401
+ | 'TABLE_VALUED_FUNCTION'
2402
+ | 'AGGREGATE_FUNCTION';
2149
2403
  /** Optional. The security mode of the routine, if defined. If not defined, the security mode is automatically determined from the routine's configuration. */
2150
- securityMode?: string;
2404
+ securityMode?: 'SECURITY_MODE_UNSPECIFIED' | 'DEFINER' | 'INVOKER';
2151
2405
  /** Optional. Spark specific options. */
2152
2406
  sparkOptions?: SparkOptions;
2153
2407
  /** Optional. Use this option to catch many common errors. Error checking is not exhaustive, and successfully creating a procedure doesn't guarantee that the procedure will successfully execute at runtime. If `strictMode` is set to `TRUE`, the procedure body is further checked for errors such as non-existent tables or columns. The `CREATE PROCEDURE` statement fails if the body fails any of these checks. If `strictMode` is set to `FALSE`, the procedure body is checked only for syntax. For procedures that invoke themselves recursively, specify `strictMode=FALSE` to avoid non-existent procedure errors during validation. Default value is `TRUE`. */
@@ -2157,7 +2411,11 @@ declare namespace gapi.client {
2157
2411
  /** Output only. The time taken for the image build. Populated only after the build succeeds or fails. */
2158
2412
  buildDuration?: string;
2159
2413
  /** Output only. The current build state of the routine. */
2160
- buildState?: string;
2414
+ buildState?:
2415
+ | 'BUILD_STATE_UNSPECIFIED'
2416
+ | 'IN_PROGRESS'
2417
+ | 'SUCCEEDED'
2418
+ | 'FAILED';
2161
2419
  /** Output only. The time when the build state was updated last. */
2162
2420
  buildStateUpdateTime?: string;
2163
2421
  /** Output only. A result object that will be present only if the build has failed. */
@@ -2209,7 +2467,10 @@ declare namespace gapi.client {
2209
2467
  }
2210
2468
  interface ScriptOptions {
2211
2469
  /** Determines which statement in the script represents the "key result", used to populate the schema and query results of the script job. Default is LAST. */
2212
- keyResultStatement?: string;
2470
+ keyResultStatement?:
2471
+ | 'KEY_RESULT_STATEMENT_KIND_UNSPECIFIED'
2472
+ | 'LAST'
2473
+ | 'FIRST_SELECT';
2213
2474
  /** Limit on the number of bytes billed per statement. Exceeding this budget results in an error. */
2214
2475
  statementByteBudget?: string;
2215
2476
  /** Timeout period for each statement in a script. */
@@ -2231,7 +2492,10 @@ declare namespace gapi.client {
2231
2492
  }
2232
2493
  interface ScriptStatistics {
2233
2494
  /** Whether this child job was a statement or expression. */
2234
- evaluationKind?: string;
2495
+ evaluationKind?:
2496
+ | 'EVALUATION_KIND_UNSPECIFIED'
2497
+ | 'STATEMENT'
2498
+ | 'EXPRESSION';
2235
2499
  /** Stack trace showing the line/column/procedure name of each frame on the stack at the point where the current evaluation happened. The leaf frame is first, the primary script is last. Never empty. */
2236
2500
  stackFrames?: ScriptStackFrame[];
2237
2501
  }
@@ -2241,7 +2505,11 @@ declare namespace gapi.client {
2241
2505
  /** When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains why indexes were not used in all or part of the search query. If `indexUsageMode` is `FULLY_USED`, this field is not populated. */
2242
2506
  indexUnusedReasons?: IndexUnusedReason[];
2243
2507
  /** Specifies the index usage mode for the query. */
2244
- indexUsageMode?: string;
2508
+ indexUsageMode?:
2509
+ | 'INDEX_USAGE_MODE_UNSPECIFIED'
2510
+ | 'UNUSED'
2511
+ | 'PARTIALLY_USED'
2512
+ | 'FULLY_USED';
2245
2513
  }
2246
2514
  interface SerDeInfo {
2247
2515
  /** Optional. Name of the SerDe. The maximum length is 256 characters. */
@@ -2341,7 +2609,25 @@ declare namespace gapi.client {
2341
2609
  /** The fields of this struct, in order, if type_kind = "STRUCT". */
2342
2610
  structType?: StandardSqlStructType;
2343
2611
  /** Required. The top level type of this field. Can be any GoogleSQL data type (e.g., "INT64", "DATE", "ARRAY"). */
2344
- typeKind?: string;
2612
+ typeKind?:
2613
+ | 'TYPE_KIND_UNSPECIFIED'
2614
+ | 'INT64'
2615
+ | 'BOOL'
2616
+ | 'FLOAT64'
2617
+ | 'STRING'
2618
+ | 'BYTES'
2619
+ | 'TIMESTAMP'
2620
+ | 'DATE'
2621
+ | 'TIME'
2622
+ | 'DATETIME'
2623
+ | 'INTERVAL'
2624
+ | 'GEOGRAPHY'
2625
+ | 'NUMERIC'
2626
+ | 'BIGNUMERIC'
2627
+ | 'JSON'
2628
+ | 'ARRAY'
2629
+ | 'STRUCT'
2630
+ | 'RANGE';
2345
2631
  }
2346
2632
  interface StandardSqlField {
2347
2633
  /** Optional. The name of this field. Can be absent for struct fields. */
@@ -2369,7 +2655,14 @@ declare namespace gapi.client {
2369
2655
  }
2370
2656
  interface StoredColumnsUnusedReason {
2371
2657
  /** Specifies the high-level reason for the unused scenario, each reason must have a code associated. */
2372
- code?: string;
2658
+ code?:
2659
+ | 'CODE_UNSPECIFIED'
2660
+ | 'STORED_COLUMNS_COVER_INSUFFICIENT'
2661
+ | 'BASE_TABLE_HAS_RLS'
2662
+ | 'BASE_TABLE_HAS_CLS'
2663
+ | 'UNSUPPORTED_PREFILTER'
2664
+ | 'INTERNAL_ERROR'
2665
+ | 'OTHER_REASON';
2373
2666
  /** Specifies the detailed description for the scenario. */
2374
2667
  message?: string;
2375
2668
  /** Specifies which columns were not covered by the stored columns for the specified code up to 20 columns. This is populated when the code is STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS. */
@@ -2413,7 +2706,10 @@ declare namespace gapi.client {
2413
2706
  /** Optional. Defines the default collation specification of new STRING fields in the table. During table creation or update, if a STRING field is added to this table without explicit collation specified, then the table inherits the table default collation. A change to this field affects only fields added afterwards, and does not alter the existing fields. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */
2414
2707
  defaultCollation?: string;
2415
2708
  /** Optional. Defines the default rounding mode specification of new decimal fields (NUMERIC OR BIGNUMERIC) in the table. During table creation or update, if a decimal field is added to this table without an explicit rounding mode specified, then the field inherits the table default rounding mode. Changing this field doesn't affect existing fields. */
2416
- defaultRoundingMode?: string;
2709
+ defaultRoundingMode?:
2710
+ | 'ROUNDING_MODE_UNSPECIFIED'
2711
+ | 'ROUND_HALF_AWAY_FROM_ZERO'
2712
+ | 'ROUND_HALF_EVEN';
2417
2713
  /** Optional. A user-friendly description of this table. */
2418
2714
  description?: string;
2419
2715
  /** Custom encryption configuration (e.g., Cloud KMS keys). */
@@ -2439,7 +2735,10 @@ declare namespace gapi.client {
2439
2735
  /** Output only. The geographic location where the table resides. This value is inherited from the dataset. */
2440
2736
  location?: string;
2441
2737
  /** Optional. If set, overrides the default managed table type configured in the dataset. */
2442
- managedTableType?: string;
2738
+ managedTableType?:
2739
+ | 'MANAGED_TABLE_TYPE_UNSPECIFIED'
2740
+ | 'NATIVE'
2741
+ | 'BIGLAKE';
2443
2742
  /** Optional. The materialized view definition. */
2444
2743
  materializedView?: MaterializedViewDefinition;
2445
2744
  /** Output only. The materialized view status. */
@@ -2510,16 +2809,24 @@ declare namespace gapi.client {
2510
2809
  interface TableCell {
2511
2810
  v?: any;
2512
2811
  }
2812
+ interface TableChangeInsight {
2813
+ /** Output only. True if the table's column metadata index was not used in the current job, but was used in a previous job with the same query hash. */
2814
+ metadataCacheNotUsedButUsedPreviously?: boolean;
2815
+ /** Output only. If present, indicates that the table's metadata column index staleness has increased significantly compared to previous jobs with the same query hash. */
2816
+ metadataCacheStalenessInsight?: MetadataCacheStalenessInsight;
2817
+ /** Output only. The table that was queried. */
2818
+ tableReference?: TableReference;
2819
+ }
2513
2820
  interface TableConstraints {
2514
2821
  /** Optional. Present only if the table has a foreign key. The foreign key is not enforced. */
2515
- foreignKeys?: Array<{
2822
+ foreignKeys?: {
2516
2823
  /** Required. The columns that compose the foreign key. */
2517
- columnReferences?: Array<{
2824
+ columnReferences?: {
2518
2825
  /** Required. The column in the primary key that are referenced by the referencing_column. */
2519
2826
  referencedColumn?: string;
2520
2827
  /** Required. The column that composes the foreign key. */
2521
2828
  referencingColumn?: string;
2522
- }>;
2829
+ }[];
2523
2830
  /** Optional. Set only if the foreign key constraint is named. */
2524
2831
  name?: string;
2525
2832
  referencedTable?: {
@@ -2527,7 +2834,7 @@ declare namespace gapi.client {
2527
2834
  projectId?: string;
2528
2835
  tableId?: string;
2529
2836
  };
2530
- }>;
2837
+ }[];
2531
2838
  /** Represents the primary key constraint on a table's columns. */
2532
2839
  primaryKey?: {
2533
2840
  /** Required. The columns that are composed of the primary key constraint. */
@@ -2539,12 +2846,12 @@ declare namespace gapi.client {
2539
2846
  ignoreUnknownValues?: boolean;
2540
2847
  /** Optional. The resource type of the response. The value is not checked at the backend. Historically, it has been set to "bigquery#tableDataInsertAllRequest" but you are not required to set it. */
2541
2848
  kind?: string;
2542
- rows?: Array<{
2849
+ rows?: {
2543
2850
  /** Insertion ID for best-effort deduplication. This feature is not recommended, and users seeking stronger insertion semantics are encouraged to use other mechanisms such as the BigQuery Write API. */
2544
2851
  insertId?: string;
2545
2852
  /** Data for a single row. */
2546
2853
  json?: JsonObject;
2547
- }>;
2854
+ }[];
2548
2855
  /** Optional. Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. */
2549
2856
  skipInvalidRows?: boolean;
2550
2857
  /** Optional. If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables. */
@@ -2554,12 +2861,12 @@ declare namespace gapi.client {
2554
2861
  }
2555
2862
  interface TableDataInsertAllResponse {
2556
2863
  /** Describes specific errors encountered while processing the request. */
2557
- insertErrors?: Array<{
2864
+ insertErrors?: {
2558
2865
  /** Error information for the row indicated by the index property. */
2559
2866
  errors?: ErrorProto[];
2560
2867
  /** The index of the row that error applies to. */
2561
2868
  index?: number;
2562
- }>;
2869
+ }[];
2563
2870
  /** Returns "bigquery#tableDataInsertAllResponse". */
2564
2871
  kind?: string;
2565
2872
  }
@@ -2583,8 +2890,15 @@ declare namespace gapi.client {
2583
2890
  };
2584
2891
  /** Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. */
2585
2892
  collation?: string;
2893
+ /** Optional. Specifies the data governance tags on this field. This field works with other column-level security fields as follows: - Precedence: If a data governance tag is attached to a column, it takes precedence over the policy tag attached to the column. However, if a data policy is attached to a column, it takes precedence over the data governance tag. - Patching behavior (how this field behaves during a `Table.patch` schema update): - Unset: If the `data_governance_tags_info` field is omitted from the update request, the existing tags on the column are preserved. - Empty Field: To clear data governance tags from a column, send the `data_governance_tags_info` field as an empty object. This will remove all tags from the column. - Updating tags: To replace existing tag, send the field with the new tag. */
2894
+ dataGovernanceTagsInfo?: {
2895
+ /** Optional. The data governance tags added to this field are used for field-level access control. Only one data governance tag is currently supported on a field. Tag keys are globally unique. Tag key is expected to be in the namespaced format, for example "123456789012/pii" where 123456789012 is the ID of the parent organization or project resource for this tag key. Tag value is expected to be the short name, for example "sensitive". See [Tag definitions](https://cloud.google.com/iam/docs/tags-access-control#definitions) for more details. For example: "123456789012/pii": "sensitive", "myProject/cost_center": "sales" */
2896
+ dataGovernanceTags?: {[P in string]: string};
2897
+ };
2586
2898
  /** Optional. Data policies attached to this field, used for field-level access control. */
2587
2899
  dataPolicies?: DataPolicyOption[];
2900
+ /** Optional. Specifies data policies attached to this field, used for field-level access control. When set, this will be the source of truth for data policy information. */
2901
+ dataPolicyList?: DataPolicyList;
2588
2902
  /** Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field. */
2589
2903
  defaultValueExpression?: string;
2590
2904
  /** Optional. The field description. The maximum length is 1,024 characters. */
@@ -2614,7 +2928,10 @@ declare namespace gapi.client {
2614
2928
  type?: string;
2615
2929
  };
2616
2930
  /** Optional. Specifies the rounding mode to be used when storing values of NUMERIC and BIGNUMERIC type. */
2617
- roundingMode?: string;
2931
+ roundingMode?:
2932
+ | 'ROUNDING_MODE_UNSPECIFIED'
2933
+ | 'ROUND_HALF_AWAY_FROM_ZERO'
2934
+ | 'ROUND_HALF_EVEN';
2618
2935
  /** Optional. See documentation for precision. */
2619
2936
  scale?: string;
2620
2937
  /** Optional. Precision (maximum number of total digits in base 10) for seconds of TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with microsecond precision) * 12 (For TIMESTAMP type with picosecond precision) */
@@ -2630,7 +2947,7 @@ declare namespace gapi.client {
2630
2947
  /** A token to request the next page of results. */
2631
2948
  nextPageToken?: string;
2632
2949
  /** Tables in the requested dataset. */
2633
- tables?: Array<{
2950
+ tables?: {
2634
2951
  /** Clustering specification for this table, if configured. */
2635
2952
  clustering?: Clustering;
2636
2953
  /** Output only. The time when this table was created, in milliseconds since the epoch. */
@@ -2662,7 +2979,7 @@ declare namespace gapi.client {
2662
2979
  /** True if view is defined in legacy SQL dialect, false if in GoogleSQL. */
2663
2980
  useLegacySql?: boolean;
2664
2981
  };
2665
- }>;
2982
+ }[];
2666
2983
  /** The total number of tables in the dataset. */
2667
2984
  totalItems?: number;
2668
2985
  }
@@ -2678,7 +2995,11 @@ declare namespace gapi.client {
2678
2995
  /** [Table type](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#Table.FIELDS.type). */
2679
2996
  tableType?: string;
2680
2997
  /** Reason for not using metadata caching for the table. */
2681
- unusedReason?: string;
2998
+ unusedReason?:
2999
+ | 'UNUSED_REASON_UNSPECIFIED'
3000
+ | 'EXCEEDED_MAX_STALENESS'
3001
+ | 'METADATA_CACHING_NOT_ENABLED'
3002
+ | 'OTHER_REASON';
2682
3003
  }
2683
3004
  interface TableReference {
2684
3005
  /** Required. The ID of the dataset containing this table. */
@@ -2696,7 +3017,12 @@ declare namespace gapi.client {
2696
3017
  /** Optional. Specifies the interval at which the source table is polled for updates. It's Optional. If not specified, default replication interval would be applied. */
2697
3018
  replicationIntervalMs?: string;
2698
3019
  /** Optional. Output only. Replication status of configured replication. */
2699
- replicationStatus?: string;
3020
+ replicationStatus?:
3021
+ | 'REPLICATION_STATUS_UNSPECIFIED'
3022
+ | 'ACTIVE'
3023
+ | 'SOURCE_DELETED'
3024
+ | 'PERMISSION_DENIED'
3025
+ | 'UNSUPPORTED_CONFIGURATION';
2700
3026
  /** Required. Source table reference that is replicated. */
2701
3027
  sourceTable?: TableReference;
2702
3028
  }
@@ -2746,17 +3072,27 @@ declare namespace gapi.client {
2746
3072
  /** Batch size for dnn models. */
2747
3073
  batchSize?: string;
2748
3074
  /** Booster type for boosted tree models. */
2749
- boosterType?: string;
3075
+ boosterType?: 'BOOSTER_TYPE_UNSPECIFIED' | 'GBTREE' | 'DART';
2750
3076
  /** Budget in hours for AutoML training. */
2751
3077
  budgetHours?: number;
2752
3078
  /** Whether or not p-value test should be computed for this model. Only available for linear and logistic regression models. */
2753
3079
  calculatePValues?: boolean;
2754
3080
  /** Categorical feature encoding method. */
2755
- categoryEncodingMethod?: string;
3081
+ categoryEncodingMethod?:
3082
+ | 'ENCODING_METHOD_UNSPECIFIED'
3083
+ | 'ONE_HOT_ENCODING'
3084
+ | 'LABEL_ENCODING'
3085
+ | 'DUMMY_ENCODING';
2756
3086
  /** If true, clean spikes and dips in the input time series. */
2757
3087
  cleanSpikesAndDips?: boolean;
2758
3088
  /** Enums for color space, used for processing images in Object Table. See more details at https://www.tensorflow.org/io/tutorials/colorspace. */
2759
- colorSpace?: string;
3089
+ colorSpace?:
3090
+ | 'COLOR_SPACE_UNSPECIFIED'
3091
+ | 'RGB'
3092
+ | 'HSV'
3093
+ | 'YIQ'
3094
+ | 'YUV'
3095
+ | 'GRAYSCALE';
2760
3096
  /** Subsample ratio of columns for each level for boosted tree models. */
2761
3097
  colsampleBylevel?: number;
2762
3098
  /** Subsample ratio of columns for each node(split) for boosted tree models. */
@@ -2766,21 +3102,36 @@ declare namespace gapi.client {
2766
3102
  /** The contribution metric. Applies to contribution analysis models. Allowed formats supported are for summable and summable ratio contribution metrics. These include expressions such as `SUM(x)` or `SUM(x)/SUM(y)`, where x and y are column names from the base table. */
2767
3103
  contributionMetric?: string;
2768
3104
  /** Type of normalization algorithm for boosted tree models using dart booster. */
2769
- dartNormalizeType?: string;
3105
+ dartNormalizeType?: 'DART_NORMALIZE_TYPE_UNSPECIFIED' | 'TREE' | 'FOREST';
2770
3106
  /** The data frequency of a time series. */
2771
- dataFrequency?: string;
3107
+ dataFrequency?:
3108
+ | 'DATA_FREQUENCY_UNSPECIFIED'
3109
+ | 'AUTO_FREQUENCY'
3110
+ | 'YEARLY'
3111
+ | 'QUARTERLY'
3112
+ | 'MONTHLY'
3113
+ | 'WEEKLY'
3114
+ | 'DAILY'
3115
+ | 'HOURLY'
3116
+ | 'PER_MINUTE';
2772
3117
  /** The column to split data with. This column won't be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data_type_properties */
2773
3118
  dataSplitColumn?: string;
2774
3119
  /** The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2. */
2775
3120
  dataSplitEvalFraction?: number;
2776
3121
  /** The data split type for training and evaluation, e.g. RANDOM. */
2777
- dataSplitMethod?: string;
3122
+ dataSplitMethod?:
3123
+ | 'DATA_SPLIT_METHOD_UNSPECIFIED'
3124
+ | 'RANDOM'
3125
+ | 'CUSTOM'
3126
+ | 'SEQUENTIAL'
3127
+ | 'NO_SPLIT'
3128
+ | 'AUTO_SPLIT';
2778
3129
  /** If true, perform decompose time series and save the results. */
2779
3130
  decomposeTimeSeries?: boolean;
2780
3131
  /** Optional. Names of the columns to slice on. Applies to contribution analysis models. */
2781
3132
  dimensionIdColumns?: string[];
2782
3133
  /** Distance type for clustering models. */
2783
- distanceType?: string;
3134
+ distanceType?: 'DISTANCE_TYPE_UNSPECIFIED' | 'EUCLIDEAN' | 'COSINE';
2784
3135
  /** Dropout probability for dnn models. */
2785
3136
  dropout?: number;
2786
3137
  /** Whether to stop early when the loss doesn't improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms. */
@@ -2790,7 +3141,7 @@ declare namespace gapi.client {
2790
3141
  /** The idle TTL of the endpoint before the resources get destroyed. The default value is 6.5 hours. */
2791
3142
  endpointIdleTtl?: string;
2792
3143
  /** Feedback type that specifies which algorithm to run for matrix factorization. */
2793
- feedbackType?: string;
3144
+ feedbackType?: 'FEEDBACK_TYPE_UNSPECIFIED' | 'IMPLICIT' | 'EXPLICIT';
2794
3145
  /** Whether the model should include intercept during model training. */
2795
3146
  fitIntercept?: boolean;
2796
3147
  /** The forecast limit lower bound that was used during ARIMA model training with limits. To see more details of the algorithm: https://otexts.com/fpp2/limits.html */
@@ -2800,13 +3151,168 @@ declare namespace gapi.client {
2800
3151
  /** Hidden units for dnn models. */
2801
3152
  hiddenUnits?: string[];
2802
3153
  /** The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled. */
2803
- holidayRegion?: string;
3154
+ holidayRegion?:
3155
+ | 'HOLIDAY_REGION_UNSPECIFIED'
3156
+ | 'GLOBAL'
3157
+ | 'NA'
3158
+ | 'JAPAC'
3159
+ | 'EMEA'
3160
+ | 'LAC'
3161
+ | 'AE'
3162
+ | 'AR'
3163
+ | 'AT'
3164
+ | 'AU'
3165
+ | 'BE'
3166
+ | 'BR'
3167
+ | 'CA'
3168
+ | 'CH'
3169
+ | 'CL'
3170
+ | 'CN'
3171
+ | 'CO'
3172
+ | 'CS'
3173
+ | 'CZ'
3174
+ | 'DE'
3175
+ | 'DK'
3176
+ | 'DZ'
3177
+ | 'EC'
3178
+ | 'EE'
3179
+ | 'EG'
3180
+ | 'ES'
3181
+ | 'FI'
3182
+ | 'FR'
3183
+ | 'GB'
3184
+ | 'GR'
3185
+ | 'HK'
3186
+ | 'HU'
3187
+ | 'ID'
3188
+ | 'IE'
3189
+ | 'IL'
3190
+ | 'IN'
3191
+ | 'IR'
3192
+ | 'IT'
3193
+ | 'JP'
3194
+ | 'KR'
3195
+ | 'LV'
3196
+ | 'MA'
3197
+ | 'MX'
3198
+ | 'MY'
3199
+ | 'NG'
3200
+ | 'NL'
3201
+ | 'NO'
3202
+ | 'NZ'
3203
+ | 'PE'
3204
+ | 'PH'
3205
+ | 'PK'
3206
+ | 'PL'
3207
+ | 'PT'
3208
+ | 'RO'
3209
+ | 'RS'
3210
+ | 'RU'
3211
+ | 'SA'
3212
+ | 'SE'
3213
+ | 'SG'
3214
+ | 'SI'
3215
+ | 'SK'
3216
+ | 'TH'
3217
+ | 'TR'
3218
+ | 'TW'
3219
+ | 'UA'
3220
+ | 'US'
3221
+ | 'VE'
3222
+ | 'VN'
3223
+ | 'ZA';
2804
3224
  /** A list of geographical regions that are used for time series modeling. */
2805
- holidayRegions?: string[];
3225
+ holidayRegions?:
3226
+ | 'HOLIDAY_REGION_UNSPECIFIED'
3227
+ | 'GLOBAL'
3228
+ | 'NA'
3229
+ | 'JAPAC'
3230
+ | 'EMEA'
3231
+ | 'LAC'
3232
+ | 'AE'
3233
+ | 'AR'
3234
+ | 'AT'
3235
+ | 'AU'
3236
+ | 'BE'
3237
+ | 'BR'
3238
+ | 'CA'
3239
+ | 'CH'
3240
+ | 'CL'
3241
+ | 'CN'
3242
+ | 'CO'
3243
+ | 'CS'
3244
+ | 'CZ'
3245
+ | 'DE'
3246
+ | 'DK'
3247
+ | 'DZ'
3248
+ | 'EC'
3249
+ | 'EE'
3250
+ | 'EG'
3251
+ | 'ES'
3252
+ | 'FI'
3253
+ | 'FR'
3254
+ | 'GB'
3255
+ | 'GR'
3256
+ | 'HK'
3257
+ | 'HU'
3258
+ | 'ID'
3259
+ | 'IE'
3260
+ | 'IL'
3261
+ | 'IN'
3262
+ | 'IR'
3263
+ | 'IT'
3264
+ | 'JP'
3265
+ | 'KR'
3266
+ | 'LV'
3267
+ | 'MA'
3268
+ | 'MX'
3269
+ | 'MY'
3270
+ | 'NG'
3271
+ | 'NL'
3272
+ | 'NO'
3273
+ | 'NZ'
3274
+ | 'PE'
3275
+ | 'PH'
3276
+ | 'PK'
3277
+ | 'PL'
3278
+ | 'PT'
3279
+ | 'RO'
3280
+ | 'RS'
3281
+ | 'RU'
3282
+ | 'SA'
3283
+ | 'SE'
3284
+ | 'SG'
3285
+ | 'SI'
3286
+ | 'SK'
3287
+ | 'TH'
3288
+ | 'TR'
3289
+ | 'TW'
3290
+ | 'UA'
3291
+ | 'US'
3292
+ | 'VE'
3293
+ | 'VN'
3294
+ | 'ZA'[];
2806
3295
  /** The number of periods ahead that need to be forecasted. */
2807
3296
  horizon?: string;
2808
3297
  /** The target evaluation metrics to optimize the hyperparameters for. */
2809
- hparamTuningObjectives?: string[];
3298
+ hparamTuningObjectives?:
3299
+ | 'HPARAM_TUNING_OBJECTIVE_UNSPECIFIED'
3300
+ | 'MEAN_ABSOLUTE_ERROR'
3301
+ | 'MEAN_SQUARED_ERROR'
3302
+ | 'MEAN_SQUARED_LOG_ERROR'
3303
+ | 'MEDIAN_ABSOLUTE_ERROR'
3304
+ | 'R_SQUARED'
3305
+ | 'EXPLAINED_VARIANCE'
3306
+ | 'PRECISION'
3307
+ | 'RECALL'
3308
+ | 'ACCURACY'
3309
+ | 'F1_SCORE'
3310
+ | 'LOG_LOSS'
3311
+ | 'ROC_AUC'
3312
+ | 'DAVIES_BOULDIN_INDEX'
3313
+ | 'MEAN_AVERAGE_PRECISION'
3314
+ | 'NORMALIZED_DISCOUNTED_CUMULATIVE_GAIN'
3315
+ | 'AVERAGE_RANK'[];
2810
3316
  /** The id of a Hugging Face model. For example, `google/gemma-2-2b-it`. */
2811
3317
  huggingFaceModelId?: string;
2812
3318
  /** Include drift when fitting an ARIMA model. */
@@ -2826,7 +3332,11 @@ declare namespace gapi.client {
2826
3332
  /** The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM. */
2827
3333
  kmeansInitializationColumn?: string;
2828
3334
  /** The method used to initialize the centroids for kmeans algorithm. */
2829
- kmeansInitializationMethod?: string;
3335
+ kmeansInitializationMethod?:
3336
+ | 'KMEANS_INITIALIZATION_METHOD_UNSPECIFIED'
3337
+ | 'RANDOM'
3338
+ | 'CUSTOM'
3339
+ | 'KMEANS_PLUS_PLUS';
2830
3340
  /** L1 regularization coefficient to activations. */
2831
3341
  l1RegActivation?: number;
2832
3342
  /** L1 regularization coefficient. */
@@ -2838,9 +3348,15 @@ declare namespace gapi.client {
2838
3348
  /** Learning rate in training. Used only for iterative training algorithms. */
2839
3349
  learnRate?: number;
2840
3350
  /** The strategy to determine learn rate for the current iteration. */
2841
- learnRateStrategy?: string;
3351
+ learnRateStrategy?:
3352
+ | 'LEARN_RATE_STRATEGY_UNSPECIFIED'
3353
+ | 'LINE_SEARCH'
3354
+ | 'CONSTANT';
2842
3355
  /** Type of loss function used during training run. */
2843
- lossType?: string;
3356
+ lossType?:
3357
+ | 'LOSS_TYPE_UNSPECIFIED'
3358
+ | 'MEAN_SQUARED_LOSS'
3359
+ | 'MEAN_LOG_LOSS';
2844
3360
  /** The type of the machine used to deploy and serve the model. */
2845
3361
  machineType?: string;
2846
3362
  /** The maximum number of iterations in training. Used only for iterative training algorithms. */
@@ -2868,7 +3384,7 @@ declare namespace gapi.client {
2868
3384
  /** The name of a Vertex model garden publisher model. Format is `publishers/{publisher}/models/{model}@{optional_version_id}`. */
2869
3385
  modelGardenModelName?: string;
2870
3386
  /** The model registry. */
2871
- modelRegistry?: string;
3387
+ modelRegistry?: 'MODEL_REGISTRY_UNSPECIFIED' | 'VERTEX_AI';
2872
3388
  /** Google Cloud Storage URI from which the model was imported. Only applicable for imported models. */
2873
3389
  modelUri?: string;
2874
3390
  /** A specification of the non-seasonal part of the ARIMA model: the three components (p, d, q) are the AR order, the degree of differencing, and the MA order. */
@@ -2884,17 +3400,24 @@ declare namespace gapi.client {
2884
3400
  /** Number of trials to run this hyperparameter tuning job. */
2885
3401
  numTrials?: string;
2886
3402
  /** Optimization strategy for training linear regression models. */
2887
- optimizationStrategy?: string;
3403
+ optimizationStrategy?:
3404
+ | 'OPTIMIZATION_STRATEGY_UNSPECIFIED'
3405
+ | 'BATCH_GRADIENT_DESCENT'
3406
+ | 'NORMAL_EQUATION';
2888
3407
  /** Optimizer used for training the neural nets. */
2889
3408
  optimizer?: string;
2890
3409
  /** The minimum ratio of cumulative explained variance that needs to be given by the PCA model. */
2891
3410
  pcaExplainedVarianceRatio?: number;
2892
3411
  /** The solver for PCA. */
2893
- pcaSolver?: string;
3412
+ pcaSolver?: 'UNSPECIFIED' | 'FULL' | 'RANDOMIZED' | 'AUTO';
2894
3413
  /** Corresponds to the label key of a reservation resource used by Vertex AI. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value. */
2895
3414
  reservationAffinityKey?: string;
2896
3415
  /** Specifies the reservation affinity type used to configure a Vertex AI resource. The default value is `NO_RESERVATION`. */
2897
- reservationAffinityType?: string;
3416
+ reservationAffinityType?:
3417
+ | 'RESERVATION_AFFINITY_TYPE_UNSPECIFIED'
3418
+ | 'NO_RESERVATION'
3419
+ | 'ANY_RESERVATION'
3420
+ | 'SPECIFIC_RESERVATION';
2898
3421
  /** Corresponds to the label values of a reservation resource used by Vertex AI. This must be the full resource name of the reservation or reservation block. */
2899
3422
  reservationAffinityValues?: string[];
2900
3423
  /** Number of paths for the sampled Shapley explain method. */
@@ -2918,7 +3441,12 @@ declare namespace gapi.client {
2918
3441
  /** Column to be designated as time series timestamp for ARIMA model. */
2919
3442
  timeSeriesTimestampColumn?: string;
2920
3443
  /** Tree construction algorithm for boosted tree models. */
2921
- treeMethod?: string;
3444
+ treeMethod?:
3445
+ | 'TREE_METHOD_UNSPECIFIED'
3446
+ | 'AUTO'
3447
+ | 'EXACT'
3448
+ | 'APPROX'
3449
+ | 'HIST';
2922
3450
  /** Smoothing window size for the trend component. When a positive value is specified, a center moving average smoothing is applied on the history trend. When the smoothing window is out of the boundary at the beginning or the end of the trend, the first element or the last element is padded to fill the smoothing window before the average is applied. */
2923
3451
  trendSmoothingWindowSize?: string;
2924
3452
  /** User column specified for matrix factorization models. */
@@ -2980,7 +3508,11 @@ declare namespace gapi.client {
2980
3508
  /** When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains why indexes were not used in all or part of the vector search query. If `indexUsageMode` is `FULLY_USED`, this field is not populated. */
2981
3509
  indexUnusedReasons?: IndexUnusedReason[];
2982
3510
  /** Specifies the index usage mode for the query. */
2983
- indexUsageMode?: string;
3511
+ indexUsageMode?:
3512
+ | 'INDEX_USAGE_MODE_UNSPECIFIED'
3513
+ | 'UNUSED'
3514
+ | 'PARTIALLY_USED'
3515
+ | 'FULLY_USED';
2984
3516
  /** Specifies the usage of stored columns in the query when stored columns are used in the query. */
2985
3517
  storedColumnsUsages?: StoredColumnsUsage[];
2986
3518
  }
@@ -3002,11 +3534,11 @@ declare namespace gapi.client {
3002
3534
  /** Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name. */
3003
3535
  delete(request?: {
3004
3536
  /** V1 error format. */
3005
- '$.xgafv'?: string;
3537
+ '$.xgafv'?: '1' | '2';
3006
3538
  /** OAuth access token. */
3007
3539
  access_token?: string;
3008
3540
  /** Data format for response. */
3009
- alt?: string;
3541
+ alt?: 'json' | 'media' | 'proto';
3010
3542
  /** JSONP */
3011
3543
  callback?: string;
3012
3544
  /** Required. Dataset ID of dataset being deleted */
@@ -3033,19 +3565,19 @@ declare namespace gapi.client {
3033
3565
  /** Returns the dataset specified by datasetID. */
3034
3566
  get(request?: {
3035
3567
  /** V1 error format. */
3036
- '$.xgafv'?: string;
3568
+ '$.xgafv'?: '1' | '2';
3037
3569
  /** OAuth access token. */
3038
3570
  access_token?: string;
3039
3571
  /** Optional. The version of the access policy schema to fetch. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for conditional access policy binding in datasets must specify version 3. Dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. This field will be mapped to [IAM Policy version] (https://cloud.google.com/iam/docs/policies#versions) and will be used to fetch policy from IAM. If unset or if 0 or 1 value is used for dataset with conditional bindings, access entry with condition will have role string appended by 'withcond' string followed by a hash value. For example : { "access": [ { "role": "roles/bigquery.dataViewer_with_conditionalbinding_7a34awqsda", "userByEmail": "user@example.com", } ] } Please refer https://cloud.google.com/iam/docs/troubleshooting-withcond for more details. */
3040
3572
  accessPolicyVersion?: number;
3041
3573
  /** Data format for response. */
3042
- alt?: string;
3574
+ alt?: 'json' | 'media' | 'proto';
3043
3575
  /** JSONP */
3044
3576
  callback?: string;
3045
3577
  /** Required. Dataset ID of the requested dataset */
3046
3578
  datasetId: string;
3047
3579
  /** Optional. Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned. */
3048
- datasetView?: string;
3580
+ datasetView?: 'DATASET_VIEW_UNSPECIFIED' | 'METADATA' | 'ACL' | 'FULL';
3049
3581
  /** Selector specifying which fields to include in a partial response. */
3050
3582
  fields?: string;
3051
3583
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -3066,13 +3598,13 @@ declare namespace gapi.client {
3066
3598
  /** Creates a new empty dataset. */
3067
3599
  insert(request: {
3068
3600
  /** V1 error format. */
3069
- '$.xgafv'?: string;
3601
+ '$.xgafv'?: '1' | '2';
3070
3602
  /** OAuth access token. */
3071
3603
  access_token?: string;
3072
3604
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Requests with conditional access policy binding in datasets must specify version 3. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3073
3605
  accessPolicyVersion?: number;
3074
3606
  /** Data format for response. */
3075
- alt?: string;
3607
+ alt?: 'json' | 'media' | 'proto';
3076
3608
  /** JSONP */
3077
3609
  callback?: string;
3078
3610
  /** Selector specifying which fields to include in a partial response. */
@@ -3097,13 +3629,13 @@ declare namespace gapi.client {
3097
3629
  insert(
3098
3630
  request: {
3099
3631
  /** V1 error format. */
3100
- '$.xgafv'?: string;
3632
+ '$.xgafv'?: '1' | '2';
3101
3633
  /** OAuth access token. */
3102
3634
  access_token?: string;
3103
3635
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Requests with conditional access policy binding in datasets must specify version 3. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3104
3636
  accessPolicyVersion?: number;
3105
3637
  /** Data format for response. */
3106
- alt?: string;
3638
+ alt?: 'json' | 'media' | 'proto';
3107
3639
  /** JSONP */
3108
3640
  callback?: string;
3109
3641
  /** Selector specifying which fields to include in a partial response. */
@@ -3128,13 +3660,13 @@ declare namespace gapi.client {
3128
3660
  /** Lists all datasets in the specified project to which the user has been granted the READER dataset role. */
3129
3661
  list(request?: {
3130
3662
  /** V1 error format. */
3131
- '$.xgafv'?: string;
3663
+ '$.xgafv'?: '1' | '2';
3132
3664
  /** OAuth access token. */
3133
3665
  access_token?: string;
3134
3666
  /** Whether to list all datasets, including hidden ones */
3135
3667
  all?: boolean;
3136
3668
  /** Data format for response. */
3137
- alt?: string;
3669
+ alt?: 'json' | 'media' | 'proto';
3138
3670
  /** JSONP */
3139
3671
  callback?: string;
3140
3672
  /** Selector specifying which fields to include in a partial response. */
@@ -3163,13 +3695,13 @@ declare namespace gapi.client {
3163
3695
  /** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports RFC5789 patch semantics. */
3164
3696
  patch(request: {
3165
3697
  /** V1 error format. */
3166
- '$.xgafv'?: string;
3698
+ '$.xgafv'?: '1' | '2';
3167
3699
  /** OAuth access token. */
3168
3700
  access_token?: string;
3169
3701
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3170
3702
  accessPolicyVersion?: number;
3171
3703
  /** Data format for response. */
3172
- alt?: string;
3704
+ alt?: 'json' | 'media' | 'proto';
3173
3705
  /** JSONP */
3174
3706
  callback?: string;
3175
3707
  /** Required. Dataset ID of the dataset being updated */
@@ -3187,7 +3719,11 @@ declare namespace gapi.client {
3187
3719
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3188
3720
  quotaUser?: string;
3189
3721
  /** Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated. */
3190
- updateMode?: string;
3722
+ updateMode?:
3723
+ | 'UPDATE_MODE_UNSPECIFIED'
3724
+ | 'UPDATE_METADATA'
3725
+ | 'UPDATE_ACL'
3726
+ | 'UPDATE_FULL';
3191
3727
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3192
3728
  upload_protocol?: string;
3193
3729
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -3198,13 +3734,13 @@ declare namespace gapi.client {
3198
3734
  patch(
3199
3735
  request: {
3200
3736
  /** V1 error format. */
3201
- '$.xgafv'?: string;
3737
+ '$.xgafv'?: '1' | '2';
3202
3738
  /** OAuth access token. */
3203
3739
  access_token?: string;
3204
3740
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3205
3741
  accessPolicyVersion?: number;
3206
3742
  /** Data format for response. */
3207
- alt?: string;
3743
+ alt?: 'json' | 'media' | 'proto';
3208
3744
  /** JSONP */
3209
3745
  callback?: string;
3210
3746
  /** Required. Dataset ID of the dataset being updated */
@@ -3222,7 +3758,11 @@ declare namespace gapi.client {
3222
3758
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3223
3759
  quotaUser?: string;
3224
3760
  /** Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated. */
3225
- updateMode?: string;
3761
+ updateMode?:
3762
+ | 'UPDATE_MODE_UNSPECIFIED'
3763
+ | 'UPDATE_METADATA'
3764
+ | 'UPDATE_ACL'
3765
+ | 'UPDATE_FULL';
3226
3766
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3227
3767
  upload_protocol?: string;
3228
3768
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -3233,11 +3773,11 @@ declare namespace gapi.client {
3233
3773
  /** Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. */
3234
3774
  undelete(request: {
3235
3775
  /** V1 error format. */
3236
- '$.xgafv'?: string;
3776
+ '$.xgafv'?: '1' | '2';
3237
3777
  /** OAuth access token. */
3238
3778
  access_token?: string;
3239
3779
  /** Data format for response. */
3240
- alt?: string;
3780
+ alt?: 'json' | 'media' | 'proto';
3241
3781
  /** JSONP */
3242
3782
  callback?: string;
3243
3783
  /** Required. Dataset ID of dataset being deleted */
@@ -3264,11 +3804,11 @@ declare namespace gapi.client {
3264
3804
  undelete(
3265
3805
  request: {
3266
3806
  /** V1 error format. */
3267
- '$.xgafv'?: string;
3807
+ '$.xgafv'?: '1' | '2';
3268
3808
  /** OAuth access token. */
3269
3809
  access_token?: string;
3270
3810
  /** Data format for response. */
3271
- alt?: string;
3811
+ alt?: 'json' | 'media' | 'proto';
3272
3812
  /** JSONP */
3273
3813
  callback?: string;
3274
3814
  /** Required. Dataset ID of dataset being deleted */
@@ -3295,13 +3835,13 @@ declare namespace gapi.client {
3295
3835
  /** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. */
3296
3836
  update(request: {
3297
3837
  /** V1 error format. */
3298
- '$.xgafv'?: string;
3838
+ '$.xgafv'?: '1' | '2';
3299
3839
  /** OAuth access token. */
3300
3840
  access_token?: string;
3301
3841
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3302
3842
  accessPolicyVersion?: number;
3303
3843
  /** Data format for response. */
3304
- alt?: string;
3844
+ alt?: 'json' | 'media' | 'proto';
3305
3845
  /** JSONP */
3306
3846
  callback?: string;
3307
3847
  /** Required. Dataset ID of the dataset being updated */
@@ -3319,7 +3859,11 @@ declare namespace gapi.client {
3319
3859
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3320
3860
  quotaUser?: string;
3321
3861
  /** Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated. */
3322
- updateMode?: string;
3862
+ updateMode?:
3863
+ | 'UPDATE_MODE_UNSPECIFIED'
3864
+ | 'UPDATE_METADATA'
3865
+ | 'UPDATE_ACL'
3866
+ | 'UPDATE_FULL';
3323
3867
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3324
3868
  upload_protocol?: string;
3325
3869
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -3330,13 +3874,13 @@ declare namespace gapi.client {
3330
3874
  update(
3331
3875
  request: {
3332
3876
  /** V1 error format. */
3333
- '$.xgafv'?: string;
3877
+ '$.xgafv'?: '1' | '2';
3334
3878
  /** OAuth access token. */
3335
3879
  access_token?: string;
3336
3880
  /** Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected. This field will be mapped to IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and will be used to set policy in IAM. */
3337
3881
  accessPolicyVersion?: number;
3338
3882
  /** Data format for response. */
3339
- alt?: string;
3883
+ alt?: 'json' | 'media' | 'proto';
3340
3884
  /** JSONP */
3341
3885
  callback?: string;
3342
3886
  /** Required. Dataset ID of the dataset being updated */
@@ -3354,7 +3898,11 @@ declare namespace gapi.client {
3354
3898
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3355
3899
  quotaUser?: string;
3356
3900
  /** Optional. Specifies the fields of dataset that update/patch operation is targeting By default, both metadata and ACL fields are updated. */
3357
- updateMode?: string;
3901
+ updateMode?:
3902
+ | 'UPDATE_MODE_UNSPECIFIED'
3903
+ | 'UPDATE_METADATA'
3904
+ | 'UPDATE_ACL'
3905
+ | 'UPDATE_FULL';
3358
3906
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3359
3907
  upload_protocol?: string;
3360
3908
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -3367,11 +3915,11 @@ declare namespace gapi.client {
3367
3915
  /** Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs. */
3368
3916
  cancel(request?: {
3369
3917
  /** V1 error format. */
3370
- '$.xgafv'?: string;
3918
+ '$.xgafv'?: '1' | '2';
3371
3919
  /** OAuth access token. */
3372
3920
  access_token?: string;
3373
3921
  /** Data format for response. */
3374
- alt?: string;
3922
+ alt?: 'json' | 'media' | 'proto';
3375
3923
  /** JSONP */
3376
3924
  callback?: string;
3377
3925
  /** Selector specifying which fields to include in a partial response. */
@@ -3398,11 +3946,11 @@ declare namespace gapi.client {
3398
3946
  /** Requests the deletion of the metadata of a job. This call returns when the job's metadata is deleted. */
3399
3947
  delete(request?: {
3400
3948
  /** V1 error format. */
3401
- '$.xgafv'?: string;
3949
+ '$.xgafv'?: '1' | '2';
3402
3950
  /** OAuth access token. */
3403
3951
  access_token?: string;
3404
3952
  /** Data format for response. */
3405
- alt?: string;
3953
+ alt?: 'json' | 'media' | 'proto';
3406
3954
  /** JSONP */
3407
3955
  callback?: string;
3408
3956
  /** Selector specifying which fields to include in a partial response. */
@@ -3429,11 +3977,11 @@ declare namespace gapi.client {
3429
3977
  /** Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role. */
3430
3978
  get(request?: {
3431
3979
  /** V1 error format. */
3432
- '$.xgafv'?: string;
3980
+ '$.xgafv'?: '1' | '2';
3433
3981
  /** OAuth access token. */
3434
3982
  access_token?: string;
3435
3983
  /** Data format for response. */
3436
- alt?: string;
3984
+ alt?: 'json' | 'media' | 'proto';
3437
3985
  /** JSONP */
3438
3986
  callback?: string;
3439
3987
  /** Selector specifying which fields to include in a partial response. */
@@ -3460,17 +4008,21 @@ declare namespace gapi.client {
3460
4008
  /** RPC to get the results of a query job. */
3461
4009
  getQueryResults(request?: {
3462
4010
  /** V1 error format. */
3463
- '$.xgafv'?: string;
4011
+ '$.xgafv'?: '1' | '2';
3464
4012
  /** OAuth access token. */
3465
4013
  access_token?: string;
3466
4014
  /** Data format for response. */
3467
- alt?: string;
4015
+ alt?: 'json' | 'media' | 'proto';
3468
4016
  /** JSONP */
3469
4017
  callback?: string;
3470
4018
  /** Selector specifying which fields to include in a partial response. */
3471
4019
  fields?: string;
3472
4020
  /** Optional. The API output format for a timestamp. This offers more explicit control over the timestamp output format as compared to the existing `use_int64_timestamp` option. */
3473
- 'formatOptions.timestampOutputFormat'?: string;
4021
+ 'formatOptions.timestampOutputFormat'?:
4022
+ | 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED'
4023
+ | 'FLOAT64'
4024
+ | 'INT64'
4025
+ | 'ISO8601_STRING';
3474
4026
  /** Optional. Output timestamp as usec int64. Default is false. */
3475
4027
  'formatOptions.useInt64Timestamp'?: boolean;
3476
4028
  /** Required. Job ID of the query job. */
@@ -3503,11 +4055,11 @@ declare namespace gapi.client {
3503
4055
  /** Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. */
3504
4056
  insert(request: {
3505
4057
  /** V1 error format. */
3506
- '$.xgafv'?: string;
4058
+ '$.xgafv'?: '1' | '2';
3507
4059
  /** OAuth access token. */
3508
4060
  access_token?: string;
3509
4061
  /** Data format for response. */
3510
- alt?: string;
4062
+ alt?: 'json' | 'media' | 'proto';
3511
4063
  /** JSONP */
3512
4064
  callback?: string;
3513
4065
  /** Selector specifying which fields to include in a partial response. */
@@ -3532,11 +4084,11 @@ declare namespace gapi.client {
3532
4084
  insert(
3533
4085
  request: {
3534
4086
  /** V1 error format. */
3535
- '$.xgafv'?: string;
4087
+ '$.xgafv'?: '1' | '2';
3536
4088
  /** OAuth access token. */
3537
4089
  access_token?: string;
3538
4090
  /** Data format for response. */
3539
- alt?: string;
4091
+ alt?: 'json' | 'media' | 'proto';
3540
4092
  /** JSONP */
3541
4093
  callback?: string;
3542
4094
  /** Selector specifying which fields to include in a partial response. */
@@ -3561,13 +4113,13 @@ declare namespace gapi.client {
3561
4113
  /** Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property. */
3562
4114
  list(request?: {
3563
4115
  /** V1 error format. */
3564
- '$.xgafv'?: string;
4116
+ '$.xgafv'?: '1' | '2';
3565
4117
  /** OAuth access token. */
3566
4118
  access_token?: string;
3567
4119
  /** Whether to display jobs owned by all users in the project. Default False. */
3568
4120
  allUsers?: boolean;
3569
4121
  /** Data format for response. */
3570
- alt?: string;
4122
+ alt?: 'json' | 'media' | 'proto';
3571
4123
  /** JSONP */
3572
4124
  callback?: string;
3573
4125
  /** Selector specifying which fields to include in a partial response. */
@@ -3591,11 +4143,15 @@ declare namespace gapi.client {
3591
4143
  /** Project ID of the jobs to list. */
3592
4144
  projectId: string;
3593
4145
  /** Restrict information returned to a set of selected fields */
3594
- projection?: string;
4146
+ projection?: 'full' | 'minimal';
3595
4147
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3596
4148
  quotaUser?: string;
3597
4149
  /** Filter for job state */
3598
- stateFilter?: string | string[];
4150
+ stateFilter?:
4151
+ | 'done'
4152
+ | 'pending'
4153
+ | 'running'
4154
+ | ('done' | 'pending' | 'running')[];
3599
4155
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3600
4156
  upload_protocol?: string;
3601
4157
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -3604,11 +4160,11 @@ declare namespace gapi.client {
3604
4160
  /** Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout. */
3605
4161
  query(request: {
3606
4162
  /** V1 error format. */
3607
- '$.xgafv'?: string;
4163
+ '$.xgafv'?: '1' | '2';
3608
4164
  /** OAuth access token. */
3609
4165
  access_token?: string;
3610
4166
  /** Data format for response. */
3611
- alt?: string;
4167
+ alt?: 'json' | 'media' | 'proto';
3612
4168
  /** JSONP */
3613
4169
  callback?: string;
3614
4170
  /** Selector specifying which fields to include in a partial response. */
@@ -3633,11 +4189,11 @@ declare namespace gapi.client {
3633
4189
  query(
3634
4190
  request: {
3635
4191
  /** V1 error format. */
3636
- '$.xgafv'?: string;
4192
+ '$.xgafv'?: '1' | '2';
3637
4193
  /** OAuth access token. */
3638
4194
  access_token?: string;
3639
4195
  /** Data format for response. */
3640
- alt?: string;
4196
+ alt?: 'json' | 'media' | 'proto';
3641
4197
  /** JSONP */
3642
4198
  callback?: string;
3643
4199
  /** Selector specifying which fields to include in a partial response. */
@@ -3664,11 +4220,11 @@ declare namespace gapi.client {
3664
4220
  /** Deletes the model specified by modelId from the dataset. */
3665
4221
  delete(request?: {
3666
4222
  /** V1 error format. */
3667
- '$.xgafv'?: string;
4223
+ '$.xgafv'?: '1' | '2';
3668
4224
  /** OAuth access token. */
3669
4225
  access_token?: string;
3670
4226
  /** Data format for response. */
3671
- alt?: string;
4227
+ alt?: 'json' | 'media' | 'proto';
3672
4228
  /** JSONP */
3673
4229
  callback?: string;
3674
4230
  /** Required. Dataset ID of the model to delete. */
@@ -3695,11 +4251,11 @@ declare namespace gapi.client {
3695
4251
  /** Gets the specified model resource by model ID. */
3696
4252
  get(request?: {
3697
4253
  /** V1 error format. */
3698
- '$.xgafv'?: string;
4254
+ '$.xgafv'?: '1' | '2';
3699
4255
  /** OAuth access token. */
3700
4256
  access_token?: string;
3701
4257
  /** Data format for response. */
3702
- alt?: string;
4258
+ alt?: 'json' | 'media' | 'proto';
3703
4259
  /** JSONP */
3704
4260
  callback?: string;
3705
4261
  /** Required. Dataset ID of the requested model. */
@@ -3726,11 +4282,11 @@ declare namespace gapi.client {
3726
4282
  /** Lists all models in the specified dataset. Requires the READER dataset role. After retrieving the list of models, you can get information about a particular model by calling the models.get method. */
3727
4283
  list(request?: {
3728
4284
  /** V1 error format. */
3729
- '$.xgafv'?: string;
4285
+ '$.xgafv'?: '1' | '2';
3730
4286
  /** OAuth access token. */
3731
4287
  access_token?: string;
3732
4288
  /** Data format for response. */
3733
- alt?: string;
4289
+ alt?: 'json' | 'media' | 'proto';
3734
4290
  /** JSONP */
3735
4291
  callback?: string;
3736
4292
  /** Required. Dataset ID of the models to list. */
@@ -3759,11 +4315,11 @@ declare namespace gapi.client {
3759
4315
  /** Patch specific fields in the specified model. */
3760
4316
  patch(request: {
3761
4317
  /** V1 error format. */
3762
- '$.xgafv'?: string;
4318
+ '$.xgafv'?: '1' | '2';
3763
4319
  /** OAuth access token. */
3764
4320
  access_token?: string;
3765
4321
  /** Data format for response. */
3766
- alt?: string;
4322
+ alt?: 'json' | 'media' | 'proto';
3767
4323
  /** JSONP */
3768
4324
  callback?: string;
3769
4325
  /** Required. Dataset ID of the model to patch. */
@@ -3792,11 +4348,11 @@ declare namespace gapi.client {
3792
4348
  patch(
3793
4349
  request: {
3794
4350
  /** V1 error format. */
3795
- '$.xgafv'?: string;
4351
+ '$.xgafv'?: '1' | '2';
3796
4352
  /** OAuth access token. */
3797
4353
  access_token?: string;
3798
4354
  /** Data format for response. */
3799
- alt?: string;
4355
+ alt?: 'json' | 'media' | 'proto';
3800
4356
  /** JSONP */
3801
4357
  callback?: string;
3802
4358
  /** Required. Dataset ID of the model to patch. */
@@ -3827,11 +4383,11 @@ declare namespace gapi.client {
3827
4383
  /** RPC to get the service account for a project used for interactions with Google Cloud KMS */
3828
4384
  getServiceAccount(request?: {
3829
4385
  /** V1 error format. */
3830
- '$.xgafv'?: string;
4386
+ '$.xgafv'?: '1' | '2';
3831
4387
  /** OAuth access token. */
3832
4388
  access_token?: string;
3833
4389
  /** Data format for response. */
3834
- alt?: string;
4390
+ alt?: 'json' | 'media' | 'proto';
3835
4391
  /** JSONP */
3836
4392
  callback?: string;
3837
4393
  /** Selector specifying which fields to include in a partial response. */
@@ -3854,11 +4410,11 @@ declare namespace gapi.client {
3854
4410
  /** RPC to list projects to which the user has been granted any project role. Users of this method are encouraged to consider the [Resource Manager](https://cloud.google.com/resource-manager/docs/) API, which provides the underlying data for this method and has more capabilities. */
3855
4411
  list(request?: {
3856
4412
  /** V1 error format. */
3857
- '$.xgafv'?: string;
4413
+ '$.xgafv'?: '1' | '2';
3858
4414
  /** OAuth access token. */
3859
4415
  access_token?: string;
3860
4416
  /** Data format for response. */
3861
- alt?: string;
4417
+ alt?: 'json' | 'media' | 'proto';
3862
4418
  /** JSONP */
3863
4419
  callback?: string;
3864
4420
  /** Selector specifying which fields to include in a partial response. */
@@ -3885,11 +4441,11 @@ declare namespace gapi.client {
3885
4441
  /** Deletes the routine specified by routineId from the dataset. */
3886
4442
  delete(request?: {
3887
4443
  /** V1 error format. */
3888
- '$.xgafv'?: string;
4444
+ '$.xgafv'?: '1' | '2';
3889
4445
  /** OAuth access token. */
3890
4446
  access_token?: string;
3891
4447
  /** Data format for response. */
3892
- alt?: string;
4448
+ alt?: 'json' | 'media' | 'proto';
3893
4449
  /** JSONP */
3894
4450
  callback?: string;
3895
4451
  /** Required. Dataset ID of the routine to delete */
@@ -3916,11 +4472,11 @@ declare namespace gapi.client {
3916
4472
  /** Gets the specified routine resource by routine ID. */
3917
4473
  get(request?: {
3918
4474
  /** V1 error format. */
3919
- '$.xgafv'?: string;
4475
+ '$.xgafv'?: '1' | '2';
3920
4476
  /** OAuth access token. */
3921
4477
  access_token?: string;
3922
4478
  /** Data format for response. */
3923
- alt?: string;
4479
+ alt?: 'json' | 'media' | 'proto';
3924
4480
  /** JSONP */
3925
4481
  callback?: string;
3926
4482
  /** Required. Dataset ID of the requested routine */
@@ -3950,11 +4506,11 @@ declare namespace gapi.client {
3950
4506
  getIamPolicy(
3951
4507
  request: {
3952
4508
  /** V1 error format. */
3953
- '$.xgafv'?: string;
4509
+ '$.xgafv'?: '1' | '2';
3954
4510
  /** OAuth access token. */
3955
4511
  access_token?: string;
3956
4512
  /** Data format for response. */
3957
- alt?: string;
4513
+ alt?: 'json' | 'media' | 'proto';
3958
4514
  /** JSONP */
3959
4515
  callback?: string;
3960
4516
  /** Selector specifying which fields to include in a partial response. */
@@ -3979,11 +4535,11 @@ declare namespace gapi.client {
3979
4535
  /** Creates a new routine in the dataset. */
3980
4536
  insert(request: {
3981
4537
  /** V1 error format. */
3982
- '$.xgafv'?: string;
4538
+ '$.xgafv'?: '1' | '2';
3983
4539
  /** OAuth access token. */
3984
4540
  access_token?: string;
3985
4541
  /** Data format for response. */
3986
- alt?: string;
4542
+ alt?: 'json' | 'media' | 'proto';
3987
4543
  /** JSONP */
3988
4544
  callback?: string;
3989
4545
  /** Required. Dataset ID of the new routine */
@@ -4010,11 +4566,11 @@ declare namespace gapi.client {
4010
4566
  insert(
4011
4567
  request: {
4012
4568
  /** V1 error format. */
4013
- '$.xgafv'?: string;
4569
+ '$.xgafv'?: '1' | '2';
4014
4570
  /** OAuth access token. */
4015
4571
  access_token?: string;
4016
4572
  /** Data format for response. */
4017
- alt?: string;
4573
+ alt?: 'json' | 'media' | 'proto';
4018
4574
  /** JSONP */
4019
4575
  callback?: string;
4020
4576
  /** Required. Dataset ID of the new routine */
@@ -4041,11 +4597,11 @@ declare namespace gapi.client {
4041
4597
  /** Lists all routines in the specified dataset. Requires the READER dataset role. */
4042
4598
  list(request?: {
4043
4599
  /** V1 error format. */
4044
- '$.xgafv'?: string;
4600
+ '$.xgafv'?: '1' | '2';
4045
4601
  /** OAuth access token. */
4046
4602
  access_token?: string;
4047
4603
  /** Data format for response. */
4048
- alt?: string;
4604
+ alt?: 'json' | 'media' | 'proto';
4049
4605
  /** JSONP */
4050
4606
  callback?: string;
4051
4607
  /** Required. Dataset ID of the routines to list */
@@ -4079,11 +4635,11 @@ declare namespace gapi.client {
4079
4635
  setIamPolicy(
4080
4636
  request: {
4081
4637
  /** V1 error format. */
4082
- '$.xgafv'?: string;
4638
+ '$.xgafv'?: '1' | '2';
4083
4639
  /** OAuth access token. */
4084
4640
  access_token?: string;
4085
4641
  /** Data format for response. */
4086
- alt?: string;
4642
+ alt?: 'json' | 'media' | 'proto';
4087
4643
  /** JSONP */
4088
4644
  callback?: string;
4089
4645
  /** Selector specifying which fields to include in a partial response. */
@@ -4109,11 +4665,11 @@ declare namespace gapi.client {
4109
4665
  testIamPermissions(
4110
4666
  request: {
4111
4667
  /** V1 error format. */
4112
- '$.xgafv'?: string;
4668
+ '$.xgafv'?: '1' | '2';
4113
4669
  /** OAuth access token. */
4114
4670
  access_token?: string;
4115
4671
  /** Data format for response. */
4116
- alt?: string;
4672
+ alt?: 'json' | 'media' | 'proto';
4117
4673
  /** JSONP */
4118
4674
  callback?: string;
4119
4675
  /** Selector specifying which fields to include in a partial response. */
@@ -4138,11 +4694,11 @@ declare namespace gapi.client {
4138
4694
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
4139
4695
  update(request: {
4140
4696
  /** V1 error format. */
4141
- '$.xgafv'?: string;
4697
+ '$.xgafv'?: '1' | '2';
4142
4698
  /** OAuth access token. */
4143
4699
  access_token?: string;
4144
4700
  /** Data format for response. */
4145
- alt?: string;
4701
+ alt?: 'json' | 'media' | 'proto';
4146
4702
  /** JSONP */
4147
4703
  callback?: string;
4148
4704
  /** Required. Dataset ID of the routine to update */
@@ -4171,11 +4727,11 @@ declare namespace gapi.client {
4171
4727
  update(
4172
4728
  request: {
4173
4729
  /** V1 error format. */
4174
- '$.xgafv'?: string;
4730
+ '$.xgafv'?: '1' | '2';
4175
4731
  /** OAuth access token. */
4176
4732
  access_token?: string;
4177
4733
  /** Data format for response. */
4178
- alt?: string;
4734
+ alt?: 'json' | 'media' | 'proto';
4179
4735
  /** JSONP */
4180
4736
  callback?: string;
4181
4737
  /** Required. Dataset ID of the routine to update */
@@ -4206,11 +4762,11 @@ declare namespace gapi.client {
4206
4762
  /** Deletes provided row access policies. */
4207
4763
  batchDelete(request: {
4208
4764
  /** V1 error format. */
4209
- '$.xgafv'?: string;
4765
+ '$.xgafv'?: '1' | '2';
4210
4766
  /** OAuth access token. */
4211
4767
  access_token?: string;
4212
4768
  /** Data format for response. */
4213
- alt?: string;
4769
+ alt?: 'json' | 'media' | 'proto';
4214
4770
  /** JSONP */
4215
4771
  callback?: string;
4216
4772
  /** Required. Dataset ID of the table to delete the row access policies. */
@@ -4239,11 +4795,11 @@ declare namespace gapi.client {
4239
4795
  batchDelete(
4240
4796
  request: {
4241
4797
  /** V1 error format. */
4242
- '$.xgafv'?: string;
4798
+ '$.xgafv'?: '1' | '2';
4243
4799
  /** OAuth access token. */
4244
4800
  access_token?: string;
4245
4801
  /** Data format for response. */
4246
- alt?: string;
4802
+ alt?: 'json' | 'media' | 'proto';
4247
4803
  /** JSONP */
4248
4804
  callback?: string;
4249
4805
  /** Required. Dataset ID of the table to delete the row access policies. */
@@ -4272,11 +4828,11 @@ declare namespace gapi.client {
4272
4828
  /** Deletes a row access policy. */
4273
4829
  delete(request?: {
4274
4830
  /** V1 error format. */
4275
- '$.xgafv'?: string;
4831
+ '$.xgafv'?: '1' | '2';
4276
4832
  /** OAuth access token. */
4277
4833
  access_token?: string;
4278
4834
  /** Data format for response. */
4279
- alt?: string;
4835
+ alt?: 'json' | 'media' | 'proto';
4280
4836
  /** JSONP */
4281
4837
  callback?: string;
4282
4838
  /** Required. Dataset ID of the table to delete the row access policy. */
@@ -4307,11 +4863,11 @@ declare namespace gapi.client {
4307
4863
  /** Gets the specified row access policy by policy ID. */
4308
4864
  get(request?: {
4309
4865
  /** V1 error format. */
4310
- '$.xgafv'?: string;
4866
+ '$.xgafv'?: '1' | '2';
4311
4867
  /** OAuth access token. */
4312
4868
  access_token?: string;
4313
4869
  /** Data format for response. */
4314
- alt?: string;
4870
+ alt?: 'json' | 'media' | 'proto';
4315
4871
  /** JSONP */
4316
4872
  callback?: string;
4317
4873
  /** Required. Dataset ID of the table to get the row access policy. */
@@ -4341,11 +4897,11 @@ declare namespace gapi.client {
4341
4897
  getIamPolicy(
4342
4898
  request: {
4343
4899
  /** V1 error format. */
4344
- '$.xgafv'?: string;
4900
+ '$.xgafv'?: '1' | '2';
4345
4901
  /** OAuth access token. */
4346
4902
  access_token?: string;
4347
4903
  /** Data format for response. */
4348
- alt?: string;
4904
+ alt?: 'json' | 'media' | 'proto';
4349
4905
  /** JSONP */
4350
4906
  callback?: string;
4351
4907
  /** Selector specifying which fields to include in a partial response. */
@@ -4370,11 +4926,11 @@ declare namespace gapi.client {
4370
4926
  /** Creates a row access policy. */
4371
4927
  insert(request: {
4372
4928
  /** V1 error format. */
4373
- '$.xgafv'?: string;
4929
+ '$.xgafv'?: '1' | '2';
4374
4930
  /** OAuth access token. */
4375
4931
  access_token?: string;
4376
4932
  /** Data format for response. */
4377
- alt?: string;
4933
+ alt?: 'json' | 'media' | 'proto';
4378
4934
  /** JSONP */
4379
4935
  callback?: string;
4380
4936
  /** Required. Dataset ID of the table to get the row access policy. */
@@ -4403,11 +4959,11 @@ declare namespace gapi.client {
4403
4959
  insert(
4404
4960
  request: {
4405
4961
  /** V1 error format. */
4406
- '$.xgafv'?: string;
4962
+ '$.xgafv'?: '1' | '2';
4407
4963
  /** OAuth access token. */
4408
4964
  access_token?: string;
4409
4965
  /** Data format for response. */
4410
- alt?: string;
4966
+ alt?: 'json' | 'media' | 'proto';
4411
4967
  /** JSONP */
4412
4968
  callback?: string;
4413
4969
  /** Required. Dataset ID of the table to get the row access policy. */
@@ -4436,11 +4992,11 @@ declare namespace gapi.client {
4436
4992
  /** Lists all row access policies on the specified table. */
4437
4993
  list(request?: {
4438
4994
  /** V1 error format. */
4439
- '$.xgafv'?: string;
4995
+ '$.xgafv'?: '1' | '2';
4440
4996
  /** OAuth access token. */
4441
4997
  access_token?: string;
4442
4998
  /** Data format for response. */
4443
- alt?: string;
4999
+ alt?: 'json' | 'media' | 'proto';
4444
5000
  /** JSONP */
4445
5001
  callback?: string;
4446
5002
  /** Required. Dataset ID of row access policies to list. */
@@ -4472,11 +5028,11 @@ declare namespace gapi.client {
4472
5028
  testIamPermissions(
4473
5029
  request: {
4474
5030
  /** V1 error format. */
4475
- '$.xgafv'?: string;
5031
+ '$.xgafv'?: '1' | '2';
4476
5032
  /** OAuth access token. */
4477
5033
  access_token?: string;
4478
5034
  /** Data format for response. */
4479
- alt?: string;
5035
+ alt?: 'json' | 'media' | 'proto';
4480
5036
  /** JSONP */
4481
5037
  callback?: string;
4482
5038
  /** Selector specifying which fields to include in a partial response. */
@@ -4501,11 +5057,11 @@ declare namespace gapi.client {
4501
5057
  /** Updates a row access policy. */
4502
5058
  update(request: {
4503
5059
  /** V1 error format. */
4504
- '$.xgafv'?: string;
5060
+ '$.xgafv'?: '1' | '2';
4505
5061
  /** OAuth access token. */
4506
5062
  access_token?: string;
4507
5063
  /** Data format for response. */
4508
- alt?: string;
5064
+ alt?: 'json' | 'media' | 'proto';
4509
5065
  /** JSONP */
4510
5066
  callback?: string;
4511
5067
  /** Required. Dataset ID of the table to get the row access policy. */
@@ -4536,11 +5092,11 @@ declare namespace gapi.client {
4536
5092
  update(
4537
5093
  request: {
4538
5094
  /** V1 error format. */
4539
- '$.xgafv'?: string;
5095
+ '$.xgafv'?: '1' | '2';
4540
5096
  /** OAuth access token. */
4541
5097
  access_token?: string;
4542
5098
  /** Data format for response. */
4543
- alt?: string;
5099
+ alt?: 'json' | 'media' | 'proto';
4544
5100
  /** JSONP */
4545
5101
  callback?: string;
4546
5102
  /** Required. Dataset ID of the table to get the row access policy. */
@@ -4573,11 +5129,11 @@ declare namespace gapi.client {
4573
5129
  /** Streams data into BigQuery one record at a time without needing to run a load job. */
4574
5130
  insertAll(request: {
4575
5131
  /** V1 error format. */
4576
- '$.xgafv'?: string;
5132
+ '$.xgafv'?: '1' | '2';
4577
5133
  /** OAuth access token. */
4578
5134
  access_token?: string;
4579
5135
  /** Data format for response. */
4580
- alt?: string;
5136
+ alt?: 'json' | 'media' | 'proto';
4581
5137
  /** JSONP */
4582
5138
  callback?: string;
4583
5139
  /** Required. Dataset ID of the destination. */
@@ -4606,11 +5162,11 @@ declare namespace gapi.client {
4606
5162
  insertAll(
4607
5163
  request: {
4608
5164
  /** V1 error format. */
4609
- '$.xgafv'?: string;
5165
+ '$.xgafv'?: '1' | '2';
4610
5166
  /** OAuth access token. */
4611
5167
  access_token?: string;
4612
5168
  /** Data format for response. */
4613
- alt?: string;
5169
+ alt?: 'json' | 'media' | 'proto';
4614
5170
  /** JSONP */
4615
5171
  callback?: string;
4616
5172
  /** Required. Dataset ID of the destination. */
@@ -4639,11 +5195,11 @@ declare namespace gapi.client {
4639
5195
  /** List the content of a table in rows. */
4640
5196
  list(request?: {
4641
5197
  /** V1 error format. */
4642
- '$.xgafv'?: string;
5198
+ '$.xgafv'?: '1' | '2';
4643
5199
  /** OAuth access token. */
4644
5200
  access_token?: string;
4645
5201
  /** Data format for response. */
4646
- alt?: string;
5202
+ alt?: 'json' | 'media' | 'proto';
4647
5203
  /** JSONP */
4648
5204
  callback?: string;
4649
5205
  /** Required. Dataset id of the table to list. */
@@ -4651,7 +5207,11 @@ declare namespace gapi.client {
4651
5207
  /** Selector specifying which fields to include in a partial response. */
4652
5208
  fields?: string;
4653
5209
  /** Optional. The API output format for a timestamp. This offers more explicit control over the timestamp output format as compared to the existing `use_int64_timestamp` option. */
4654
- 'formatOptions.timestampOutputFormat'?: string;
5210
+ 'formatOptions.timestampOutputFormat'?:
5211
+ | 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED'
5212
+ | 'FLOAT64'
5213
+ | 'INT64'
5214
+ | 'ISO8601_STRING';
4655
5215
  /** Optional. Output timestamp as usec int64. Default is false. */
4656
5216
  'formatOptions.useInt64Timestamp'?: boolean;
4657
5217
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -4684,11 +5244,11 @@ declare namespace gapi.client {
4684
5244
  /** Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted. */
4685
5245
  delete(request?: {
4686
5246
  /** V1 error format. */
4687
- '$.xgafv'?: string;
5247
+ '$.xgafv'?: '1' | '2';
4688
5248
  /** OAuth access token. */
4689
5249
  access_token?: string;
4690
5250
  /** Data format for response. */
4691
- alt?: string;
5251
+ alt?: 'json' | 'media' | 'proto';
4692
5252
  /** JSONP */
4693
5253
  callback?: string;
4694
5254
  /** Required. Dataset ID of the table to delete */
@@ -4715,11 +5275,11 @@ declare namespace gapi.client {
4715
5275
  /** Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table. */
4716
5276
  get(request?: {
4717
5277
  /** V1 error format. */
4718
- '$.xgafv'?: string;
5278
+ '$.xgafv'?: '1' | '2';
4719
5279
  /** OAuth access token. */
4720
5280
  access_token?: string;
4721
5281
  /** Data format for response. */
4722
- alt?: string;
5282
+ alt?: 'json' | 'media' | 'proto';
4723
5283
  /** JSONP */
4724
5284
  callback?: string;
4725
5285
  /** Required. Dataset ID of the requested table */
@@ -4745,17 +5305,21 @@ declare namespace gapi.client {
4745
5305
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4746
5306
  uploadType?: string;
4747
5307
  /** Optional. Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. */
4748
- view?: string;
5308
+ view?:
5309
+ | 'TABLE_METADATA_VIEW_UNSPECIFIED'
5310
+ | 'BASIC'
5311
+ | 'STORAGE_STATS'
5312
+ | 'FULL';
4749
5313
  }): Request<Table>;
4750
5314
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
4751
5315
  getIamPolicy(
4752
5316
  request: {
4753
5317
  /** V1 error format. */
4754
- '$.xgafv'?: string;
5318
+ '$.xgafv'?: '1' | '2';
4755
5319
  /** OAuth access token. */
4756
5320
  access_token?: string;
4757
5321
  /** Data format for response. */
4758
- alt?: string;
5322
+ alt?: 'json' | 'media' | 'proto';
4759
5323
  /** JSONP */
4760
5324
  callback?: string;
4761
5325
  /** Selector specifying which fields to include in a partial response. */
@@ -4780,11 +5344,11 @@ declare namespace gapi.client {
4780
5344
  /** Creates a new, empty table in the dataset. */
4781
5345
  insert(request: {
4782
5346
  /** V1 error format. */
4783
- '$.xgafv'?: string;
5347
+ '$.xgafv'?: '1' | '2';
4784
5348
  /** OAuth access token. */
4785
5349
  access_token?: string;
4786
5350
  /** Data format for response. */
4787
- alt?: string;
5351
+ alt?: 'json' | 'media' | 'proto';
4788
5352
  /** JSONP */
4789
5353
  callback?: string;
4790
5354
  /** Required. Dataset ID of the new table */
@@ -4811,11 +5375,11 @@ declare namespace gapi.client {
4811
5375
  insert(
4812
5376
  request: {
4813
5377
  /** V1 error format. */
4814
- '$.xgafv'?: string;
5378
+ '$.xgafv'?: '1' | '2';
4815
5379
  /** OAuth access token. */
4816
5380
  access_token?: string;
4817
5381
  /** Data format for response. */
4818
- alt?: string;
5382
+ alt?: 'json' | 'media' | 'proto';
4819
5383
  /** JSONP */
4820
5384
  callback?: string;
4821
5385
  /** Required. Dataset ID of the new table */
@@ -4842,11 +5406,11 @@ declare namespace gapi.client {
4842
5406
  /** Lists all tables in the specified dataset. Requires the READER dataset role. */
4843
5407
  list(request?: {
4844
5408
  /** V1 error format. */
4845
- '$.xgafv'?: string;
5409
+ '$.xgafv'?: '1' | '2';
4846
5410
  /** OAuth access token. */
4847
5411
  access_token?: string;
4848
5412
  /** Data format for response. */
4849
- alt?: string;
5413
+ alt?: 'json' | 'media' | 'proto';
4850
5414
  /** JSONP */
4851
5415
  callback?: string;
4852
5416
  /** Required. Dataset ID of the tables to list */
@@ -4875,11 +5439,11 @@ declare namespace gapi.client {
4875
5439
  /** Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports RFC5789 patch semantics. */
4876
5440
  patch(request: {
4877
5441
  /** V1 error format. */
4878
- '$.xgafv'?: string;
5442
+ '$.xgafv'?: '1' | '2';
4879
5443
  /** OAuth access token. */
4880
5444
  access_token?: string;
4881
5445
  /** Data format for response. */
4882
- alt?: string;
5446
+ alt?: 'json' | 'media' | 'proto';
4883
5447
  /** Optional. When true will autodetect schema, else will keep original schema */
4884
5448
  autodetect_schema?: boolean;
4885
5449
  /** JSONP */
@@ -4910,11 +5474,11 @@ declare namespace gapi.client {
4910
5474
  patch(
4911
5475
  request: {
4912
5476
  /** V1 error format. */
4913
- '$.xgafv'?: string;
5477
+ '$.xgafv'?: '1' | '2';
4914
5478
  /** OAuth access token. */
4915
5479
  access_token?: string;
4916
5480
  /** Data format for response. */
4917
- alt?: string;
5481
+ alt?: 'json' | 'media' | 'proto';
4918
5482
  /** Optional. When true will autodetect schema, else will keep original schema */
4919
5483
  autodetect_schema?: boolean;
4920
5484
  /** JSONP */
@@ -4946,11 +5510,11 @@ declare namespace gapi.client {
4946
5510
  setIamPolicy(
4947
5511
  request: {
4948
5512
  /** V1 error format. */
4949
- '$.xgafv'?: string;
5513
+ '$.xgafv'?: '1' | '2';
4950
5514
  /** OAuth access token. */
4951
5515
  access_token?: string;
4952
5516
  /** Data format for response. */
4953
- alt?: string;
5517
+ alt?: 'json' | 'media' | 'proto';
4954
5518
  /** JSONP */
4955
5519
  callback?: string;
4956
5520
  /** Selector specifying which fields to include in a partial response. */
@@ -4976,11 +5540,11 @@ declare namespace gapi.client {
4976
5540
  testIamPermissions(
4977
5541
  request: {
4978
5542
  /** V1 error format. */
4979
- '$.xgafv'?: string;
5543
+ '$.xgafv'?: '1' | '2';
4980
5544
  /** OAuth access token. */
4981
5545
  access_token?: string;
4982
5546
  /** Data format for response. */
4983
- alt?: string;
5547
+ alt?: 'json' | 'media' | 'proto';
4984
5548
  /** JSONP */
4985
5549
  callback?: string;
4986
5550
  /** Selector specifying which fields to include in a partial response. */
@@ -5005,11 +5569,11 @@ declare namespace gapi.client {
5005
5569
  /** Updates information in an existing table. The update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided in the submitted Table resource. */
5006
5570
  update(request: {
5007
5571
  /** V1 error format. */
5008
- '$.xgafv'?: string;
5572
+ '$.xgafv'?: '1' | '2';
5009
5573
  /** OAuth access token. */
5010
5574
  access_token?: string;
5011
5575
  /** Data format for response. */
5012
- alt?: string;
5576
+ alt?: 'json' | 'media' | 'proto';
5013
5577
  /** Optional. When true will autodetect schema, else will keep original schema */
5014
5578
  autodetect_schema?: boolean;
5015
5579
  /** JSONP */
@@ -5040,11 +5604,11 @@ declare namespace gapi.client {
5040
5604
  update(
5041
5605
  request: {
5042
5606
  /** V1 error format. */
5043
- '$.xgafv'?: string;
5607
+ '$.xgafv'?: '1' | '2';
5044
5608
  /** OAuth access token. */
5045
5609
  access_token?: string;
5046
5610
  /** Data format for response. */
5047
- alt?: string;
5611
+ alt?: 'json' | 'media' | 'proto';
5048
5612
  /** Optional. When true will autodetect schema, else will keep original schema */
5049
5613
  autodetect_schema?: boolean;
5050
5614
  /** JSONP */