@maxim_mazurok/gapi.client.bigquery-v2 0.0.20250112 → 0.0.20250216

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 +356 -28
  2. package/package.json +1 -1
  3. package/readme.md +50 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20250112
12
+ // Revision: 20250216
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load BigQuery API v2 */
18
18
  function load(
19
- urlOrObject: 'https://bigquery.googleapis.com/$discovery/rest?version=v2'
19
+ urlOrObject: 'https://bigquery.googleapis.com/$discovery/rest?version=v2',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'bigquery', version: 'v2'): Promise<void>;
@@ -37,7 +37,7 @@ declare namespace gapi.client {
37
37
  recall?: number;
38
38
  /** Area Under a ROC Curve. For multiclass this is a macro-averaged metric. */
39
39
  rocAuc?: number;
40
- /** Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classfication models this is the confidence threshold. */
40
+ /** Threshold at which the metrics are computed. For binary classification models this is the positive class threshold. For multi-class classification models this is the confidence threshold. */
41
41
  threshold?: number;
42
42
  }
43
43
  interface AggregationThresholdPolicy {
@@ -160,6 +160,12 @@ declare namespace gapi.client {
160
160
  /** 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). */
161
161
  useAvroLogicalTypes?: boolean;
162
162
  }
163
+ interface BatchDeleteRowAccessPoliciesRequest {
164
+ /** If set to true, it deletes the row access policy even if it's the last row access policy on the table and the deletion will widen the access rather narrowing it. */
165
+ force?: boolean;
166
+ /** Required. Policy IDs of the row access policies. */
167
+ policyIds?: string[];
168
+ }
163
169
  interface BiEngineReason {
164
170
  /** Output only. High-level BI Engine reason for partial or disabled acceleration */
165
171
  code?: string;
@@ -726,7 +732,11 @@ declare namespace gapi.client {
726
732
  connectionId?: string;
727
733
  /** Optional. Additional properties to set if sourceFormat is set to CSV. */
728
734
  csvOptions?: CsvOptions;
729
- /** 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 exeeds 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. */
735
+ /** Optional. Format used to parse DATE values. Supports C-style and SQL-style values. */
736
+ dateFormat?: string;
737
+ /** Optional. Format used to parse DATETIME values. Supports C-style and SQL-style values. */
738
+ datetimeFormat?: string;
739
+ /** 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. */
730
740
  decimalTargetTypes?: string[];
731
741
  /** 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. */
732
742
  fileSetSpecType?: string;
@@ -756,6 +766,12 @@ declare namespace gapi.client {
756
766
  sourceFormat?: string;
757
767
  /** [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. */
758
768
  sourceUris?: string[];
769
+ /** Optional. Format used to parse TIME values. Supports C-style and SQL-style values. */
770
+ timeFormat?: string;
771
+ /** Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-style values. */
772
+ timestampFormat?: string;
773
+ /** Optional. Time zone used when parsing timestamp values that do not have specific time zone information (e.g. 2024-04-20 12:34:56). The expected format is a IANA timezone string (e.g. America/Los_Angeles). */
774
+ timeZone?: string;
759
775
  }
760
776
  interface ExternalDatasetReference {
761
777
  /** Required. The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id} */
@@ -1078,7 +1094,11 @@ declare namespace gapi.client {
1078
1094
  createDisposition?: string;
1079
1095
  /** Optional. If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a `ConnectionProperty` value. The session identifier is returned as part of the `SessionInfo` message within the query statistics. The new session's location will be set to `Job.JobReference.location` if it is present, otherwise it's set to the default location based on existing routing logic. */
1080
1096
  createSession?: boolean;
1081
- /** 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 exeeds 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. */
1097
+ /** Optional. Date format used for parsing DATE values. */
1098
+ dateFormat?: string;
1099
+ /** Optional. Date format used for parsing DATETIME values. */
1100
+ datetimeFormat?: string;
1101
+ /** 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. */
1082
1102
  decimalTargetTypes?: string[];
1083
1103
  /** Custom encryption configuration (e.g., Cloud KMS keys) */
1084
1104
  destinationEncryptionConfiguration?: EncryptionConfiguration;
@@ -1128,8 +1148,14 @@ declare namespace gapi.client {
1128
1148
  sourceFormat?: string;
1129
1149
  /** [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. */
1130
1150
  sourceUris?: string[];
1151
+ /** Optional. Date format used for parsing TIME values. */
1152
+ timeFormat?: string;
1131
1153
  /** Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. */
1132
1154
  timePartitioning?: TimePartitioning;
1155
+ /** Optional. Date format used for parsing TIMESTAMP values. */
1156
+ timestampFormat?: string;
1157
+ /** Optional. [Experimental] Default time zone that will apply when parsing timestamp values that have no specific time zone. */
1158
+ timeZone?: string;
1133
1159
  /** 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). */
1134
1160
  useAvroLogicalTypes?: boolean;
1135
1161
  /** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
@@ -1190,6 +1216,8 @@ declare namespace gapi.client {
1190
1216
  userDefinedFunctionResources?: UserDefinedFunctionResource[];
1191
1217
  /** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
1192
1218
  writeDisposition?: string;
1219
+ /** Optional. This is only supported for a SELECT query using a temporary table. If set, the query is allowed to write results incrementally to the temporary result table. This may incur a performance penalty. This option cannot be used with Legacy SQL. This feature is not yet available. */
1220
+ writeIncrementalResults?: boolean;
1193
1221
  }
1194
1222
  interface JobConfigurationTableCopy {
1195
1223
  /** Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
@@ -1747,12 +1775,16 @@ declare namespace gapi.client {
1747
1775
  createSession?: boolean;
1748
1776
  /** Optional. Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. */
1749
1777
  defaultDataset?: DatasetReference;
1778
+ /** Optional. Custom encryption configuration (e.g., Cloud KMS keys) */
1779
+ destinationEncryptionConfiguration?: EncryptionConfiguration;
1750
1780
  /** Optional. If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false. */
1751
1781
  dryRun?: boolean;
1752
1782
  /** Optional. Output format adjustments. */
1753
1783
  formatOptions?: DataFormatOptions;
1754
1784
  /** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1755
1785
  jobCreationMode?: string;
1786
+ /** 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. */
1787
+ jobTimeoutMs?: string;
1756
1788
  /** The resource type of the request. */
1757
1789
  kind?: string;
1758
1790
  /** Optional. The labels associated with this query. Labels can be used to organize and group query jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label keys must start with a letter and each label in the list must have a different key. */
@@ -1779,6 +1811,8 @@ declare namespace gapi.client {
1779
1811
  useLegacySql?: boolean;
1780
1812
  /** Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true. */
1781
1813
  useQueryCache?: boolean;
1814
+ /** Optional. This is only supported for SELECT query. If set, the query is allowed to write results incrementally to the temporary result table. This may incur a performance penalty. This option cannot be used with Legacy SQL. This feature is not yet available. */
1815
+ writeIncrementalResults?: boolean;
1782
1816
  }
1783
1817
  interface QueryResponse {
1784
1818
  /** Whether the query result was fetched from the query cache. */
@@ -1966,6 +2000,8 @@ declare namespace gapi.client {
1966
2000
  etag?: string;
1967
2001
  /** Required. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0 */
1968
2002
  filterPredicate?: string;
2003
+ /** Optional. Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types: - "user:alice@example.com": An email address that represents a specific Google account. - "serviceAccount:my-other-app@appspot.gserviceaccount.com": An email address that represents a service account. - "group:admins@example.com": An email address that represents a Google group. - "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain. - "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included. - "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users. */
2004
+ grantees?: string[];
1969
2005
  /** Output only. The time when this row access policy was last modified, in milliseconds since the epoch. */
1970
2006
  lastModifiedTime?: string;
1971
2007
  /** Required. Reference describing the ID of this row access policy. */
@@ -2143,6 +2179,22 @@ declare namespace gapi.client {
2143
2179
  /** Optional. Serializer and deserializer information. */
2144
2180
  serdeInfo?: SerDeInfo;
2145
2181
  }
2182
+ interface StoredColumnsUnusedReason {
2183
+ /** Specifies the high-level reason for the unused scenario, each reason must have a code associated. */
2184
+ code?: string;
2185
+ /** Specifies the detailed description for the scenario. */
2186
+ message?: string;
2187
+ /** 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. */
2188
+ uncoveredColumns?: string[];
2189
+ }
2190
+ interface StoredColumnsUsage {
2191
+ /** Specifies the base table. */
2192
+ baseTable?: TableReference;
2193
+ /** Specifies whether the query was accelerated with stored columns. */
2194
+ isQueryAccelerated?: boolean;
2195
+ /** If stored columns were not used, explain why. */
2196
+ storedColumnsUnusedReasons?: StoredColumnsUnusedReason[];
2197
+ }
2146
2198
  interface Streamingbuffer {
2147
2199
  /** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
2148
2200
  estimatedBytes?: string;
@@ -2413,7 +2465,7 @@ declare namespace gapi.client {
2413
2465
  type?: string;
2414
2466
  /** Information about a logical view. */
2415
2467
  view?: {
2416
- /** Specifices the privacy policy for the view. */
2468
+ /** Specifies the privacy policy for the view. */
2417
2469
  privacyPolicy?: PrivacyPolicy;
2418
2470
  /** True if view is defined in legacy SQL dialect, false if in GoogleSQL. */
2419
2471
  useLegacySql?: boolean;
@@ -2545,6 +2597,10 @@ declare namespace gapi.client {
2545
2597
  feedbackType?: string;
2546
2598
  /** Whether the model should include intercept during model training. */
2547
2599
  fitIntercept?: boolean;
2600
+ /** 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 */
2601
+ forecastLimitLowerBound?: number;
2602
+ /** The forecast limit upper bound that was used during ARIMA model training with limits. */
2603
+ forecastLimitUpperBound?: number;
2548
2604
  /** Hidden units for dnn models. */
2549
2605
  hiddenUnits?: string[];
2550
2606
  /** 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. */
@@ -2713,11 +2769,13 @@ declare namespace gapi.client {
2713
2769
  indexUnusedReasons?: IndexUnusedReason[];
2714
2770
  /** Specifies the index usage mode for the query. */
2715
2771
  indexUsageMode?: string;
2772
+ /** Specifies the usage of stored columns in the query when stored columns are used in the query. */
2773
+ storedColumnsUsages?: StoredColumnsUsage[];
2716
2774
  }
2717
2775
  interface ViewDefinition {
2718
2776
  /** Optional. Foreign view representations. */
2719
2777
  foreignDefinitions?: ForeignViewDefinition[];
2720
- /** Optional. Specifices the privacy policy for the view. */
2778
+ /** Optional. Specifies the privacy policy for the view. */
2721
2779
  privacyPolicy?: PrivacyPolicy;
2722
2780
  /** Required. A query that BigQuery executes when the view is referenced. */
2723
2781
  query?: string;
@@ -2853,7 +2911,7 @@ declare namespace gapi.client {
2853
2911
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2854
2912
  uploadType?: string;
2855
2913
  },
2856
- body: Dataset
2914
+ body: Dataset,
2857
2915
  ): Request<Dataset>;
2858
2916
  /** Lists all datasets in the specified project to which the user has been granted the READER dataset role. */
2859
2917
  list(request?: {
@@ -2869,7 +2927,7 @@ declare namespace gapi.client {
2869
2927
  callback?: string;
2870
2928
  /** Selector specifying which fields to include in a partial response. */
2871
2929
  fields?: string;
2872
- /** An expression for filtering the results of the request by label. The syntax is `labels.[:]`. Multiple filters can be ANDed together by connecting with a space. Example: `labels.department:receiving labels.active`. See [Filtering datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#filtering_datasets_using_labels) for details. */
2930
+ /** An expression for filtering the results of the request by label. The syntax is `labels.[:]`. Multiple filters can be AND-ed together by connecting with a space. Example: `labels.department:receiving labels.active`. See [Filtering datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#filtering_datasets_using_labels) for details. */
2873
2931
  filter?: string;
2874
2932
  /** 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. */
2875
2933
  key?: string;
@@ -2954,7 +3012,7 @@ declare namespace gapi.client {
2954
3012
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2955
3013
  uploadType?: string;
2956
3014
  },
2957
- body: Dataset
3015
+ body: Dataset,
2958
3016
  ): Request<Dataset>;
2959
3017
  /** 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. */
2960
3018
  undelete(request: {
@@ -3016,7 +3074,7 @@ declare namespace gapi.client {
3016
3074
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3017
3075
  uploadType?: string;
3018
3076
  },
3019
- body: UndeleteDatasetRequest
3077
+ body: UndeleteDatasetRequest,
3020
3078
  ): Request<Dataset>;
3021
3079
  /** 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. */
3022
3080
  update(request: {
@@ -3082,7 +3140,7 @@ declare namespace gapi.client {
3082
3140
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3083
3141
  uploadType?: string;
3084
3142
  },
3085
- body: Dataset
3143
+ body: Dataset,
3086
3144
  ): Request<Dataset>;
3087
3145
  }
3088
3146
  interface JobsResource {
@@ -3276,7 +3334,7 @@ declare namespace gapi.client {
3276
3334
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3277
3335
  uploadType?: string;
3278
3336
  },
3279
- body: Job
3337
+ body: Job,
3280
3338
  ): Request<Job>;
3281
3339
  /** 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. */
3282
3340
  list(request?: {
@@ -3377,7 +3435,7 @@ declare namespace gapi.client {
3377
3435
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3378
3436
  uploadType?: string;
3379
3437
  },
3380
- body: QueryRequest
3438
+ body: QueryRequest,
3381
3439
  ): Request<QueryResponse>;
3382
3440
  }
3383
3441
  interface ModelsResource {
@@ -3540,7 +3598,7 @@ declare namespace gapi.client {
3540
3598
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3541
3599
  uploadType?: string;
3542
3600
  },
3543
- body: Model
3601
+ body: Model,
3544
3602
  ): Request<Model>;
3545
3603
  }
3546
3604
  interface ProjectsResource {
@@ -3694,7 +3752,7 @@ declare namespace gapi.client {
3694
3752
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3695
3753
  uploadType?: string;
3696
3754
  },
3697
- body: GetIamPolicyRequest
3755
+ body: GetIamPolicyRequest,
3698
3756
  ): Request<Policy>;
3699
3757
  /** Creates a new routine in the dataset. */
3700
3758
  insert(request: {
@@ -3756,7 +3814,7 @@ declare namespace gapi.client {
3756
3814
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3757
3815
  uploadType?: string;
3758
3816
  },
3759
- body: Routine
3817
+ body: Routine,
3760
3818
  ): Request<Routine>;
3761
3819
  /** Lists all routines in the specified dataset. Requires the READER dataset role. */
3762
3820
  list(request?: {
@@ -3823,7 +3881,7 @@ declare namespace gapi.client {
3823
3881
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3824
3882
  uploadType?: string;
3825
3883
  },
3826
- body: SetIamPolicyRequest
3884
+ body: SetIamPolicyRequest,
3827
3885
  ): Request<Policy>;
3828
3886
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3829
3887
  update(request: {
@@ -3889,10 +3947,144 @@ declare namespace gapi.client {
3889
3947
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3890
3948
  uploadType?: string;
3891
3949
  },
3892
- body: Routine
3950
+ body: Routine,
3893
3951
  ): Request<Routine>;
3894
3952
  }
3895
3953
  interface RowAccessPoliciesResource {
3954
+ /** Deletes provided row access policies. */
3955
+ batchDelete(request: {
3956
+ /** V1 error format. */
3957
+ '$.xgafv'?: string;
3958
+ /** OAuth access token. */
3959
+ access_token?: string;
3960
+ /** Data format for response. */
3961
+ alt?: string;
3962
+ /** JSONP */
3963
+ callback?: string;
3964
+ /** Required. Dataset ID of the table to delete the row access policies. */
3965
+ datasetId: string;
3966
+ /** Selector specifying which fields to include in a partial response. */
3967
+ fields?: string;
3968
+ /** 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. */
3969
+ key?: string;
3970
+ /** OAuth 2.0 token for the current user. */
3971
+ oauth_token?: string;
3972
+ /** Returns response with indentations and line breaks. */
3973
+ prettyPrint?: boolean;
3974
+ /** Required. Project ID of the table to delete the row access policies. */
3975
+ projectId: string;
3976
+ /** 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. */
3977
+ quotaUser?: string;
3978
+ /** Required. Table ID of the table to delete the row access policies. */
3979
+ tableId: string;
3980
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3981
+ upload_protocol?: string;
3982
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3983
+ uploadType?: string;
3984
+ /** Request body */
3985
+ resource: BatchDeleteRowAccessPoliciesRequest;
3986
+ }): Request<void>;
3987
+ batchDelete(
3988
+ request: {
3989
+ /** V1 error format. */
3990
+ '$.xgafv'?: string;
3991
+ /** OAuth access token. */
3992
+ access_token?: string;
3993
+ /** Data format for response. */
3994
+ alt?: string;
3995
+ /** JSONP */
3996
+ callback?: string;
3997
+ /** Required. Dataset ID of the table to delete the row access policies. */
3998
+ datasetId: string;
3999
+ /** Selector specifying which fields to include in a partial response. */
4000
+ fields?: string;
4001
+ /** 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. */
4002
+ key?: string;
4003
+ /** OAuth 2.0 token for the current user. */
4004
+ oauth_token?: string;
4005
+ /** Returns response with indentations and line breaks. */
4006
+ prettyPrint?: boolean;
4007
+ /** Required. Project ID of the table to delete the row access policies. */
4008
+ projectId: string;
4009
+ /** 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. */
4010
+ quotaUser?: string;
4011
+ /** Required. Table ID of the table to delete the row access policies. */
4012
+ tableId: string;
4013
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4014
+ upload_protocol?: string;
4015
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4016
+ uploadType?: string;
4017
+ },
4018
+ body: BatchDeleteRowAccessPoliciesRequest,
4019
+ ): Request<void>;
4020
+ /** Deletes a row access policy. */
4021
+ delete(request?: {
4022
+ /** V1 error format. */
4023
+ '$.xgafv'?: string;
4024
+ /** OAuth access token. */
4025
+ access_token?: string;
4026
+ /** Data format for response. */
4027
+ alt?: string;
4028
+ /** JSONP */
4029
+ callback?: string;
4030
+ /** Required. Dataset ID of the table to delete the row access policy. */
4031
+ datasetId: string;
4032
+ /** Selector specifying which fields to include in a partial response. */
4033
+ fields?: string;
4034
+ /** If set to true, it deletes the row access policy even if it's the last row access policy on the table and the deletion will widen the access rather narrowing it. */
4035
+ force?: boolean;
4036
+ /** 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. */
4037
+ key?: string;
4038
+ /** OAuth 2.0 token for the current user. */
4039
+ oauth_token?: string;
4040
+ /** Required. Policy ID of the row access policy. */
4041
+ policyId: string;
4042
+ /** Returns response with indentations and line breaks. */
4043
+ prettyPrint?: boolean;
4044
+ /** Required. Project ID of the table to delete the row access policy. */
4045
+ projectId: string;
4046
+ /** 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. */
4047
+ quotaUser?: string;
4048
+ /** Required. Table ID of the table to delete the row access policy. */
4049
+ tableId: string;
4050
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4051
+ upload_protocol?: string;
4052
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4053
+ uploadType?: string;
4054
+ }): Request<void>;
4055
+ /** Gets the specified row access policy by policy ID. */
4056
+ get(request?: {
4057
+ /** V1 error format. */
4058
+ '$.xgafv'?: string;
4059
+ /** OAuth access token. */
4060
+ access_token?: string;
4061
+ /** Data format for response. */
4062
+ alt?: string;
4063
+ /** JSONP */
4064
+ callback?: string;
4065
+ /** Required. Dataset ID of the table to get the row access policy. */
4066
+ datasetId: string;
4067
+ /** Selector specifying which fields to include in a partial response. */
4068
+ fields?: string;
4069
+ /** 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. */
4070
+ key?: string;
4071
+ /** OAuth 2.0 token for the current user. */
4072
+ oauth_token?: string;
4073
+ /** Required. Policy ID of the row access policy. */
4074
+ policyId: string;
4075
+ /** Returns response with indentations and line breaks. */
4076
+ prettyPrint?: boolean;
4077
+ /** Required. Project ID of the table to get the row access policy. */
4078
+ projectId: string;
4079
+ /** 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. */
4080
+ quotaUser?: string;
4081
+ /** Required. Table ID of the table to get the row access policy. */
4082
+ tableId: string;
4083
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4084
+ upload_protocol?: string;
4085
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4086
+ uploadType?: string;
4087
+ }): Request<RowAccessPolicy>;
3896
4088
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3897
4089
  getIamPolicy(
3898
4090
  request: {
@@ -3921,8 +4113,74 @@ declare namespace gapi.client {
3921
4113
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3922
4114
  uploadType?: string;
3923
4115
  },
3924
- body: GetIamPolicyRequest
4116
+ body: GetIamPolicyRequest,
3925
4117
  ): Request<Policy>;
4118
+ /** Creates a row access policy. */
4119
+ insert(request: {
4120
+ /** V1 error format. */
4121
+ '$.xgafv'?: string;
4122
+ /** OAuth access token. */
4123
+ access_token?: string;
4124
+ /** Data format for response. */
4125
+ alt?: string;
4126
+ /** JSONP */
4127
+ callback?: string;
4128
+ /** Required. Dataset ID of the table to get the row access policy. */
4129
+ datasetId: string;
4130
+ /** Selector specifying which fields to include in a partial response. */
4131
+ fields?: string;
4132
+ /** 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. */
4133
+ key?: string;
4134
+ /** OAuth 2.0 token for the current user. */
4135
+ oauth_token?: string;
4136
+ /** Returns response with indentations and line breaks. */
4137
+ prettyPrint?: boolean;
4138
+ /** Required. Project ID of the table to get the row access policy. */
4139
+ projectId: string;
4140
+ /** 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. */
4141
+ quotaUser?: string;
4142
+ /** Required. Table ID of the table to get the row access policy. */
4143
+ tableId: string;
4144
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4145
+ upload_protocol?: string;
4146
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4147
+ uploadType?: string;
4148
+ /** Request body */
4149
+ resource: RowAccessPolicy;
4150
+ }): Request<RowAccessPolicy>;
4151
+ insert(
4152
+ request: {
4153
+ /** V1 error format. */
4154
+ '$.xgafv'?: string;
4155
+ /** OAuth access token. */
4156
+ access_token?: string;
4157
+ /** Data format for response. */
4158
+ alt?: string;
4159
+ /** JSONP */
4160
+ callback?: string;
4161
+ /** Required. Dataset ID of the table to get the row access policy. */
4162
+ datasetId: string;
4163
+ /** Selector specifying which fields to include in a partial response. */
4164
+ fields?: string;
4165
+ /** 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. */
4166
+ key?: string;
4167
+ /** OAuth 2.0 token for the current user. */
4168
+ oauth_token?: string;
4169
+ /** Returns response with indentations and line breaks. */
4170
+ prettyPrint?: boolean;
4171
+ /** Required. Project ID of the table to get the row access policy. */
4172
+ projectId: string;
4173
+ /** 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. */
4174
+ quotaUser?: string;
4175
+ /** Required. Table ID of the table to get the row access policy. */
4176
+ tableId: string;
4177
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4178
+ upload_protocol?: string;
4179
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4180
+ uploadType?: string;
4181
+ },
4182
+ body: RowAccessPolicy,
4183
+ ): Request<RowAccessPolicy>;
3926
4184
  /** Lists all row access policies on the specified table. */
3927
4185
  list(request?: {
3928
4186
  /** V1 error format. */
@@ -3986,8 +4244,78 @@ declare namespace gapi.client {
3986
4244
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3987
4245
  uploadType?: string;
3988
4246
  },
3989
- body: TestIamPermissionsRequest
4247
+ body: TestIamPermissionsRequest,
3990
4248
  ): Request<TestIamPermissionsResponse>;
4249
+ /** Updates a row access policy. */
4250
+ update(request: {
4251
+ /** V1 error format. */
4252
+ '$.xgafv'?: string;
4253
+ /** OAuth access token. */
4254
+ access_token?: string;
4255
+ /** Data format for response. */
4256
+ alt?: string;
4257
+ /** JSONP */
4258
+ callback?: string;
4259
+ /** Required. Dataset ID of the table to get the row access policy. */
4260
+ datasetId: string;
4261
+ /** Selector specifying which fields to include in a partial response. */
4262
+ fields?: string;
4263
+ /** 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. */
4264
+ key?: string;
4265
+ /** OAuth 2.0 token for the current user. */
4266
+ oauth_token?: string;
4267
+ /** Required. Policy ID of the row access policy. */
4268
+ policyId: string;
4269
+ /** Returns response with indentations and line breaks. */
4270
+ prettyPrint?: boolean;
4271
+ /** Required. Project ID of the table to get the row access policy. */
4272
+ projectId: string;
4273
+ /** 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. */
4274
+ quotaUser?: string;
4275
+ /** Required. Table ID of the table to get the row access policy. */
4276
+ tableId: string;
4277
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4278
+ upload_protocol?: string;
4279
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4280
+ uploadType?: string;
4281
+ /** Request body */
4282
+ resource: RowAccessPolicy;
4283
+ }): Request<RowAccessPolicy>;
4284
+ update(
4285
+ request: {
4286
+ /** V1 error format. */
4287
+ '$.xgafv'?: string;
4288
+ /** OAuth access token. */
4289
+ access_token?: string;
4290
+ /** Data format for response. */
4291
+ alt?: string;
4292
+ /** JSONP */
4293
+ callback?: string;
4294
+ /** Required. Dataset ID of the table to get the row access policy. */
4295
+ datasetId: string;
4296
+ /** Selector specifying which fields to include in a partial response. */
4297
+ fields?: string;
4298
+ /** 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. */
4299
+ key?: string;
4300
+ /** OAuth 2.0 token for the current user. */
4301
+ oauth_token?: string;
4302
+ /** Required. Policy ID of the row access policy. */
4303
+ policyId: string;
4304
+ /** Returns response with indentations and line breaks. */
4305
+ prettyPrint?: boolean;
4306
+ /** Required. Project ID of the table to get the row access policy. */
4307
+ projectId: string;
4308
+ /** 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. */
4309
+ quotaUser?: string;
4310
+ /** Required. Table ID of the table to get the row access policy. */
4311
+ tableId: string;
4312
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4313
+ upload_protocol?: string;
4314
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4315
+ uploadType?: string;
4316
+ },
4317
+ body: RowAccessPolicy,
4318
+ ): Request<RowAccessPolicy>;
3991
4319
  }
3992
4320
  interface TabledataResource {
3993
4321
  /** Streams data into BigQuery one record at a time without needing to run a load job. */
@@ -4054,7 +4382,7 @@ declare namespace gapi.client {
4054
4382
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4055
4383
  uploadType?: string;
4056
4384
  },
4057
- body: TableDataInsertAllRequest
4385
+ body: TableDataInsertAllRequest,
4058
4386
  ): Request<TableDataInsertAllResponse>;
4059
4387
  /** List the content of a table in rows. */
4060
4388
  list(request?: {
@@ -4193,7 +4521,7 @@ declare namespace gapi.client {
4193
4521
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4194
4522
  uploadType?: string;
4195
4523
  },
4196
- body: GetIamPolicyRequest
4524
+ body: GetIamPolicyRequest,
4197
4525
  ): Request<Policy>;
4198
4526
  /** Creates a new, empty table in the dataset. */
4199
4527
  insert(request: {
@@ -4255,7 +4583,7 @@ declare namespace gapi.client {
4255
4583
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4256
4584
  uploadType?: string;
4257
4585
  },
4258
- body: Table
4586
+ body: Table,
4259
4587
  ): Request<Table>;
4260
4588
  /** Lists all tables in the specified dataset. Requires the READER dataset role. */
4261
4589
  list(request?: {
@@ -4358,7 +4686,7 @@ declare namespace gapi.client {
4358
4686
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4359
4687
  uploadType?: string;
4360
4688
  },
4361
- body: Table
4689
+ body: Table,
4362
4690
  ): Request<Table>;
4363
4691
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
4364
4692
  setIamPolicy(
@@ -4388,7 +4716,7 @@ declare namespace gapi.client {
4388
4716
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4389
4717
  uploadType?: string;
4390
4718
  },
4391
- body: SetIamPolicyRequest
4719
+ body: SetIamPolicyRequest,
4392
4720
  ): Request<Policy>;
4393
4721
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
4394
4722
  testIamPermissions(
@@ -4418,7 +4746,7 @@ declare namespace gapi.client {
4418
4746
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4419
4747
  uploadType?: string;
4420
4748
  },
4421
- body: TestIamPermissionsRequest
4749
+ body: TestIamPermissionsRequest,
4422
4750
  ): Request<TestIamPermissionsResponse>;
4423
4751
  /** 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. */
4424
4752
  update(request: {
@@ -4488,7 +4816,7 @@ declare namespace gapi.client {
4488
4816
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4489
4817
  uploadType?: string;
4490
4818
  },
4491
- body: Table
4819
+ body: Table,
4492
4820
  ): Request<Table>;
4493
4821
  }
4494
4822
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20250112",
3
+ "version": "0.0.20250216",
4
4
  "description": "TypeScript typings for BigQuery API v2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.bigquery
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -80,7 +80,7 @@ gapi.auth.authorize(
80
80
  } else {
81
81
  /* handle authorization error */
82
82
  }
83
- }
83
+ },
84
84
  );
85
85
  ```
86
86
 
@@ -279,6 +279,35 @@ await gapi.client.bigquery.routines.update({
279
279
  routineId: 'routineId',
280
280
  });
281
281
 
282
+ /*
283
+ Deletes provided row access policies.
284
+ */
285
+ await gapi.client.bigquery.rowAccessPolicies.batchDelete({
286
+ datasetId: 'datasetId',
287
+ projectId: 'projectId',
288
+ tableId: 'tableId',
289
+ });
290
+
291
+ /*
292
+ Deletes a row access policy.
293
+ */
294
+ await gapi.client.bigquery.rowAccessPolicies.delete({
295
+ datasetId: 'datasetId',
296
+ policyId: 'policyId',
297
+ projectId: 'projectId',
298
+ tableId: 'tableId',
299
+ });
300
+
301
+ /*
302
+ Gets the specified row access policy by policy ID.
303
+ */
304
+ await gapi.client.bigquery.rowAccessPolicies.get({
305
+ datasetId: 'datasetId',
306
+ policyId: 'policyId',
307
+ projectId: 'projectId',
308
+ tableId: 'tableId',
309
+ });
310
+
282
311
  /*
283
312
  Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
284
313
  */
@@ -286,6 +315,15 @@ await gapi.client.bigquery.rowAccessPolicies.getIamPolicy({
286
315
  resource: 'resource',
287
316
  });
288
317
 
318
+ /*
319
+ Creates a row access policy.
320
+ */
321
+ await gapi.client.bigquery.rowAccessPolicies.insert({
322
+ datasetId: 'datasetId',
323
+ projectId: 'projectId',
324
+ tableId: 'tableId',
325
+ });
326
+
289
327
  /*
290
328
  Lists all row access policies on the specified table.
291
329
  */
@@ -302,6 +340,16 @@ await gapi.client.bigquery.rowAccessPolicies.testIamPermissions({
302
340
  resource: 'resource',
303
341
  });
304
342
 
343
+ /*
344
+ Updates a row access policy.
345
+ */
346
+ await gapi.client.bigquery.rowAccessPolicies.update({
347
+ datasetId: 'datasetId',
348
+ policyId: 'policyId',
349
+ projectId: 'projectId',
350
+ tableId: 'tableId',
351
+ });
352
+
305
353
  /*
306
354
  Streams data into BigQuery one record at a time without needing to run a load job.
307
355
  */