@maxim_mazurok/gapi.client.bigquery-v2 0.0.20241222 → 0.0.20250128

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 +339 -23
  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: 20241222
12
+ // Revision: 20250128
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>;
@@ -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;
@@ -1190,6 +1196,8 @@ declare namespace gapi.client {
1190
1196
  userDefinedFunctionResources?: UserDefinedFunctionResource[];
1191
1197
  /** 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
1198
  writeDisposition?: string;
1199
+ /** 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. */
1200
+ writeIncrementalResults?: boolean;
1193
1201
  }
1194
1202
  interface JobConfigurationTableCopy {
1195
1203
  /** 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. */
@@ -1505,7 +1513,7 @@ declare namespace gapi.client {
1505
1513
  tableReference?: TableReference;
1506
1514
  }
1507
1515
  interface MaterializedViewDefinition {
1508
- /** Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally. */
1516
+ /** Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally. Non-incremental materialized views support an expanded range of SQL queries. The `allow_non_incremental_definition` option can't be changed after the materialized view is created. */
1509
1517
  allowNonIncrementalDefinition?: boolean;
1510
1518
  /** Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". */
1511
1519
  enableRefresh?: boolean;
@@ -1779,12 +1787,18 @@ declare namespace gapi.client {
1779
1787
  useLegacySql?: boolean;
1780
1788
  /** 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
1789
  useQueryCache?: boolean;
1790
+ /** 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. */
1791
+ writeIncrementalResults?: boolean;
1782
1792
  }
1783
1793
  interface QueryResponse {
1784
1794
  /** Whether the query result was fetched from the query cache. */
1785
1795
  cacheHit?: boolean;
1796
+ /** Output only. Creation time of this query, in milliseconds since the epoch. This field will be present on all queries. */
1797
+ creationTime?: string;
1786
1798
  /** Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE. */
1787
1799
  dmlStats?: DmlStatistics;
1800
+ /** Output only. End time of this query, in milliseconds since the epoch. This field will be present whenever a query job is in the DONE state. */
1801
+ endTime?: string;
1788
1802
  /** Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages). */
1789
1803
  errors?: ErrorProto[];
1790
1804
  /** Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available. */
@@ -1795,6 +1809,8 @@ declare namespace gapi.client {
1795
1809
  jobReference?: JobReference;
1796
1810
  /** The resource type. */
1797
1811
  kind?: string;
1812
+ /** Output only. The geographic location of the query. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations */
1813
+ location?: string;
1798
1814
  /** Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1799
1815
  numDmlAffectedRows?: string;
1800
1816
  /** A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results). */
@@ -1807,10 +1823,16 @@ declare namespace gapi.client {
1807
1823
  schema?: TableSchema;
1808
1824
  /** Output only. Information of the session if this job is part of one. */
1809
1825
  sessionInfo?: SessionInfo;
1826
+ /** Output only. Start time of this query, in milliseconds since the epoch. This field will be present when the query job transitions from the PENDING state to either RUNNING or DONE. */
1827
+ startTime?: string;
1828
+ /** Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only. */
1829
+ totalBytesBilled?: string;
1810
1830
  /** The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run. */
1811
1831
  totalBytesProcessed?: string;
1812
1832
  /** The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results. */
1813
1833
  totalRows?: string;
1834
+ /** Output only. Number of slot ms the user is actually billed for. */
1835
+ totalSlotMs?: string;
1814
1836
  }
1815
1837
  interface QueryTimelineSample {
1816
1838
  /** Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. */
@@ -1954,6 +1976,8 @@ declare namespace gapi.client {
1954
1976
  etag?: string;
1955
1977
  /** 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 */
1956
1978
  filterPredicate?: string;
1979
+ /** 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. */
1980
+ grantees?: string[];
1957
1981
  /** Output only. The time when this row access policy was last modified, in milliseconds since the epoch. */
1958
1982
  lastModifiedTime?: string;
1959
1983
  /** Required. Reference describing the ID of this row access policy. */
@@ -2131,6 +2155,22 @@ declare namespace gapi.client {
2131
2155
  /** Optional. Serializer and deserializer information. */
2132
2156
  serdeInfo?: SerDeInfo;
2133
2157
  }
2158
+ interface StoredColumnsUnusedReason {
2159
+ /** Specifies the high-level reason for the unused scenario, each reason must have a code associated. */
2160
+ code?: string;
2161
+ /** Specifies the detailed description for the scenario. */
2162
+ message?: string;
2163
+ /** 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. */
2164
+ uncoveredColumns?: string[];
2165
+ }
2166
+ interface StoredColumnsUsage {
2167
+ /** Specifies the base table. */
2168
+ baseTable?: TableReference;
2169
+ /** Specifies whether the query was accelerated with stored columns. */
2170
+ isQueryAccelerated?: boolean;
2171
+ /** If stored columns were not used, explain why. */
2172
+ storedColumnsUnusedReasons?: StoredColumnsUnusedReason[];
2173
+ }
2134
2174
  interface Streamingbuffer {
2135
2175
  /** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
2136
2176
  estimatedBytes?: string;
@@ -2533,6 +2573,10 @@ declare namespace gapi.client {
2533
2573
  feedbackType?: string;
2534
2574
  /** Whether the model should include intercept during model training. */
2535
2575
  fitIntercept?: boolean;
2576
+ /** 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 */
2577
+ forecastLimitLowerBound?: number;
2578
+ /** The forecast limit upper bound that was used during ARIMA model training with limits. */
2579
+ forecastLimitUpperBound?: number;
2536
2580
  /** Hidden units for dnn models. */
2537
2581
  hiddenUnits?: string[];
2538
2582
  /** 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. */
@@ -2701,6 +2745,8 @@ declare namespace gapi.client {
2701
2745
  indexUnusedReasons?: IndexUnusedReason[];
2702
2746
  /** Specifies the index usage mode for the query. */
2703
2747
  indexUsageMode?: string;
2748
+ /** Specifies the usage of stored columns in the query when stored columns are used in the query. */
2749
+ storedColumnsUsages?: StoredColumnsUsage[];
2704
2750
  }
2705
2751
  interface ViewDefinition {
2706
2752
  /** Optional. Foreign view representations. */
@@ -2841,7 +2887,7 @@ declare namespace gapi.client {
2841
2887
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2842
2888
  uploadType?: string;
2843
2889
  },
2844
- body: Dataset
2890
+ body: Dataset,
2845
2891
  ): Request<Dataset>;
2846
2892
  /** Lists all datasets in the specified project to which the user has been granted the READER dataset role. */
2847
2893
  list(request?: {
@@ -2942,7 +2988,7 @@ declare namespace gapi.client {
2942
2988
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2943
2989
  uploadType?: string;
2944
2990
  },
2945
- body: Dataset
2991
+ body: Dataset,
2946
2992
  ): Request<Dataset>;
2947
2993
  /** 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. */
2948
2994
  undelete(request: {
@@ -3004,7 +3050,7 @@ declare namespace gapi.client {
3004
3050
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3005
3051
  uploadType?: string;
3006
3052
  },
3007
- body: UndeleteDatasetRequest
3053
+ body: UndeleteDatasetRequest,
3008
3054
  ): Request<Dataset>;
3009
3055
  /** 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. */
3010
3056
  update(request: {
@@ -3070,7 +3116,7 @@ declare namespace gapi.client {
3070
3116
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3071
3117
  uploadType?: string;
3072
3118
  },
3073
- body: Dataset
3119
+ body: Dataset,
3074
3120
  ): Request<Dataset>;
3075
3121
  }
3076
3122
  interface JobsResource {
@@ -3264,7 +3310,7 @@ declare namespace gapi.client {
3264
3310
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3265
3311
  uploadType?: string;
3266
3312
  },
3267
- body: Job
3313
+ body: Job,
3268
3314
  ): Request<Job>;
3269
3315
  /** 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. */
3270
3316
  list(request?: {
@@ -3365,7 +3411,7 @@ declare namespace gapi.client {
3365
3411
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3366
3412
  uploadType?: string;
3367
3413
  },
3368
- body: QueryRequest
3414
+ body: QueryRequest,
3369
3415
  ): Request<QueryResponse>;
3370
3416
  }
3371
3417
  interface ModelsResource {
@@ -3528,7 +3574,7 @@ declare namespace gapi.client {
3528
3574
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3529
3575
  uploadType?: string;
3530
3576
  },
3531
- body: Model
3577
+ body: Model,
3532
3578
  ): Request<Model>;
3533
3579
  }
3534
3580
  interface ProjectsResource {
@@ -3682,7 +3728,7 @@ declare namespace gapi.client {
3682
3728
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3683
3729
  uploadType?: string;
3684
3730
  },
3685
- body: GetIamPolicyRequest
3731
+ body: GetIamPolicyRequest,
3686
3732
  ): Request<Policy>;
3687
3733
  /** Creates a new routine in the dataset. */
3688
3734
  insert(request: {
@@ -3744,7 +3790,7 @@ declare namespace gapi.client {
3744
3790
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3745
3791
  uploadType?: string;
3746
3792
  },
3747
- body: Routine
3793
+ body: Routine,
3748
3794
  ): Request<Routine>;
3749
3795
  /** Lists all routines in the specified dataset. Requires the READER dataset role. */
3750
3796
  list(request?: {
@@ -3811,7 +3857,7 @@ declare namespace gapi.client {
3811
3857
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3812
3858
  uploadType?: string;
3813
3859
  },
3814
- body: SetIamPolicyRequest
3860
+ body: SetIamPolicyRequest,
3815
3861
  ): Request<Policy>;
3816
3862
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3817
3863
  update(request: {
@@ -3877,10 +3923,144 @@ declare namespace gapi.client {
3877
3923
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3878
3924
  uploadType?: string;
3879
3925
  },
3880
- body: Routine
3926
+ body: Routine,
3881
3927
  ): Request<Routine>;
3882
3928
  }
3883
3929
  interface RowAccessPoliciesResource {
3930
+ /** Deletes provided row access policies. */
3931
+ batchDelete(request: {
3932
+ /** V1 error format. */
3933
+ '$.xgafv'?: string;
3934
+ /** OAuth access token. */
3935
+ access_token?: string;
3936
+ /** Data format for response. */
3937
+ alt?: string;
3938
+ /** JSONP */
3939
+ callback?: string;
3940
+ /** Required. Dataset ID of the table to delete the row access policies. */
3941
+ datasetId: string;
3942
+ /** Selector specifying which fields to include in a partial response. */
3943
+ fields?: string;
3944
+ /** 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. */
3945
+ key?: string;
3946
+ /** OAuth 2.0 token for the current user. */
3947
+ oauth_token?: string;
3948
+ /** Returns response with indentations and line breaks. */
3949
+ prettyPrint?: boolean;
3950
+ /** Required. Project ID of the table to delete the row access policies. */
3951
+ projectId: string;
3952
+ /** 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. */
3953
+ quotaUser?: string;
3954
+ /** Required. Table ID of the table to delete the row access policies. */
3955
+ tableId: string;
3956
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3957
+ upload_protocol?: string;
3958
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3959
+ uploadType?: string;
3960
+ /** Request body */
3961
+ resource: BatchDeleteRowAccessPoliciesRequest;
3962
+ }): Request<void>;
3963
+ batchDelete(
3964
+ request: {
3965
+ /** V1 error format. */
3966
+ '$.xgafv'?: string;
3967
+ /** OAuth access token. */
3968
+ access_token?: string;
3969
+ /** Data format for response. */
3970
+ alt?: string;
3971
+ /** JSONP */
3972
+ callback?: string;
3973
+ /** Required. Dataset ID of the table to delete the row access policies. */
3974
+ datasetId: string;
3975
+ /** Selector specifying which fields to include in a partial response. */
3976
+ fields?: string;
3977
+ /** 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. */
3978
+ key?: string;
3979
+ /** OAuth 2.0 token for the current user. */
3980
+ oauth_token?: string;
3981
+ /** Returns response with indentations and line breaks. */
3982
+ prettyPrint?: boolean;
3983
+ /** Required. Project ID of the table to delete the row access policies. */
3984
+ projectId: string;
3985
+ /** 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. */
3986
+ quotaUser?: string;
3987
+ /** Required. Table ID of the table to delete the row access policies. */
3988
+ tableId: string;
3989
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3990
+ upload_protocol?: string;
3991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3992
+ uploadType?: string;
3993
+ },
3994
+ body: BatchDeleteRowAccessPoliciesRequest,
3995
+ ): Request<void>;
3996
+ /** Deletes a row access policy. */
3997
+ delete(request?: {
3998
+ /** V1 error format. */
3999
+ '$.xgafv'?: string;
4000
+ /** OAuth access token. */
4001
+ access_token?: string;
4002
+ /** Data format for response. */
4003
+ alt?: string;
4004
+ /** JSONP */
4005
+ callback?: string;
4006
+ /** Required. Dataset ID of the table to delete the row access policy. */
4007
+ datasetId: string;
4008
+ /** Selector specifying which fields to include in a partial response. */
4009
+ fields?: string;
4010
+ /** 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. */
4011
+ force?: boolean;
4012
+ /** 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. */
4013
+ key?: string;
4014
+ /** OAuth 2.0 token for the current user. */
4015
+ oauth_token?: string;
4016
+ /** Required. Policy ID of the row access policy. */
4017
+ policyId: string;
4018
+ /** Returns response with indentations and line breaks. */
4019
+ prettyPrint?: boolean;
4020
+ /** Required. Project ID of the table to delete the row access policy. */
4021
+ projectId: string;
4022
+ /** 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. */
4023
+ quotaUser?: string;
4024
+ /** Required. Table ID of the table to delete the row access policy. */
4025
+ tableId: string;
4026
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4027
+ upload_protocol?: string;
4028
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4029
+ uploadType?: string;
4030
+ }): Request<void>;
4031
+ /** Gets the specified row access policy by policy ID. */
4032
+ get(request?: {
4033
+ /** V1 error format. */
4034
+ '$.xgafv'?: string;
4035
+ /** OAuth access token. */
4036
+ access_token?: string;
4037
+ /** Data format for response. */
4038
+ alt?: string;
4039
+ /** JSONP */
4040
+ callback?: string;
4041
+ /** Required. Dataset ID of the table to get the row access policy. */
4042
+ datasetId: string;
4043
+ /** Selector specifying which fields to include in a partial response. */
4044
+ fields?: string;
4045
+ /** 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. */
4046
+ key?: string;
4047
+ /** OAuth 2.0 token for the current user. */
4048
+ oauth_token?: string;
4049
+ /** Required. Policy ID of the row access policy. */
4050
+ policyId: string;
4051
+ /** Returns response with indentations and line breaks. */
4052
+ prettyPrint?: boolean;
4053
+ /** Required. Project ID of the table to get the row access policy. */
4054
+ projectId: string;
4055
+ /** 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. */
4056
+ quotaUser?: string;
4057
+ /** Required. Table ID of the table to get the row access policy. */
4058
+ tableId: string;
4059
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4060
+ upload_protocol?: string;
4061
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4062
+ uploadType?: string;
4063
+ }): Request<RowAccessPolicy>;
3884
4064
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3885
4065
  getIamPolicy(
3886
4066
  request: {
@@ -3909,8 +4089,74 @@ declare namespace gapi.client {
3909
4089
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3910
4090
  uploadType?: string;
3911
4091
  },
3912
- body: GetIamPolicyRequest
4092
+ body: GetIamPolicyRequest,
3913
4093
  ): Request<Policy>;
4094
+ /** Creates a row access policy. */
4095
+ insert(request: {
4096
+ /** V1 error format. */
4097
+ '$.xgafv'?: string;
4098
+ /** OAuth access token. */
4099
+ access_token?: string;
4100
+ /** Data format for response. */
4101
+ alt?: string;
4102
+ /** JSONP */
4103
+ callback?: string;
4104
+ /** Required. Dataset ID of the table to get the row access policy. */
4105
+ datasetId: string;
4106
+ /** Selector specifying which fields to include in a partial response. */
4107
+ fields?: string;
4108
+ /** 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. */
4109
+ key?: string;
4110
+ /** OAuth 2.0 token for the current user. */
4111
+ oauth_token?: string;
4112
+ /** Returns response with indentations and line breaks. */
4113
+ prettyPrint?: boolean;
4114
+ /** Required. Project ID of the table to get the row access policy. */
4115
+ projectId: string;
4116
+ /** 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. */
4117
+ quotaUser?: string;
4118
+ /** Required. Table ID of the table to get the row access policy. */
4119
+ tableId: string;
4120
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4121
+ upload_protocol?: string;
4122
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4123
+ uploadType?: string;
4124
+ /** Request body */
4125
+ resource: RowAccessPolicy;
4126
+ }): Request<RowAccessPolicy>;
4127
+ insert(
4128
+ request: {
4129
+ /** V1 error format. */
4130
+ '$.xgafv'?: string;
4131
+ /** OAuth access token. */
4132
+ access_token?: string;
4133
+ /** Data format for response. */
4134
+ alt?: string;
4135
+ /** JSONP */
4136
+ callback?: string;
4137
+ /** Required. Dataset ID of the table to get the row access policy. */
4138
+ datasetId: string;
4139
+ /** Selector specifying which fields to include in a partial response. */
4140
+ fields?: string;
4141
+ /** 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. */
4142
+ key?: string;
4143
+ /** OAuth 2.0 token for the current user. */
4144
+ oauth_token?: string;
4145
+ /** Returns response with indentations and line breaks. */
4146
+ prettyPrint?: boolean;
4147
+ /** Required. Project ID of the table to get the row access policy. */
4148
+ projectId: string;
4149
+ /** 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. */
4150
+ quotaUser?: string;
4151
+ /** Required. Table ID of the table to get the row access policy. */
4152
+ tableId: string;
4153
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4154
+ upload_protocol?: string;
4155
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4156
+ uploadType?: string;
4157
+ },
4158
+ body: RowAccessPolicy,
4159
+ ): Request<RowAccessPolicy>;
3914
4160
  /** Lists all row access policies on the specified table. */
3915
4161
  list(request?: {
3916
4162
  /** V1 error format. */
@@ -3974,8 +4220,78 @@ declare namespace gapi.client {
3974
4220
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3975
4221
  uploadType?: string;
3976
4222
  },
3977
- body: TestIamPermissionsRequest
4223
+ body: TestIamPermissionsRequest,
3978
4224
  ): Request<TestIamPermissionsResponse>;
4225
+ /** Updates a row access policy. */
4226
+ update(request: {
4227
+ /** V1 error format. */
4228
+ '$.xgafv'?: string;
4229
+ /** OAuth access token. */
4230
+ access_token?: string;
4231
+ /** Data format for response. */
4232
+ alt?: string;
4233
+ /** JSONP */
4234
+ callback?: string;
4235
+ /** Required. Dataset ID of the table to get the row access policy. */
4236
+ datasetId: string;
4237
+ /** Selector specifying which fields to include in a partial response. */
4238
+ fields?: string;
4239
+ /** 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. */
4240
+ key?: string;
4241
+ /** OAuth 2.0 token for the current user. */
4242
+ oauth_token?: string;
4243
+ /** Required. Policy ID of the row access policy. */
4244
+ policyId: string;
4245
+ /** Returns response with indentations and line breaks. */
4246
+ prettyPrint?: boolean;
4247
+ /** Required. Project ID of the table to get the row access policy. */
4248
+ projectId: string;
4249
+ /** 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. */
4250
+ quotaUser?: string;
4251
+ /** Required. Table ID of the table to get the row access policy. */
4252
+ tableId: string;
4253
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4254
+ upload_protocol?: string;
4255
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4256
+ uploadType?: string;
4257
+ /** Request body */
4258
+ resource: RowAccessPolicy;
4259
+ }): Request<RowAccessPolicy>;
4260
+ update(
4261
+ request: {
4262
+ /** V1 error format. */
4263
+ '$.xgafv'?: string;
4264
+ /** OAuth access token. */
4265
+ access_token?: string;
4266
+ /** Data format for response. */
4267
+ alt?: string;
4268
+ /** JSONP */
4269
+ callback?: string;
4270
+ /** Required. Dataset ID of the table to get the row access policy. */
4271
+ datasetId: string;
4272
+ /** Selector specifying which fields to include in a partial response. */
4273
+ fields?: string;
4274
+ /** 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. */
4275
+ key?: string;
4276
+ /** OAuth 2.0 token for the current user. */
4277
+ oauth_token?: string;
4278
+ /** Required. Policy ID of the row access policy. */
4279
+ policyId: string;
4280
+ /** Returns response with indentations and line breaks. */
4281
+ prettyPrint?: boolean;
4282
+ /** Required. Project ID of the table to get the row access policy. */
4283
+ projectId: string;
4284
+ /** 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. */
4285
+ quotaUser?: string;
4286
+ /** Required. Table ID of the table to get the row access policy. */
4287
+ tableId: string;
4288
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4289
+ upload_protocol?: string;
4290
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4291
+ uploadType?: string;
4292
+ },
4293
+ body: RowAccessPolicy,
4294
+ ): Request<RowAccessPolicy>;
3979
4295
  }
3980
4296
  interface TabledataResource {
3981
4297
  /** Streams data into BigQuery one record at a time without needing to run a load job. */
@@ -4042,7 +4358,7 @@ declare namespace gapi.client {
4042
4358
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4043
4359
  uploadType?: string;
4044
4360
  },
4045
- body: TableDataInsertAllRequest
4361
+ body: TableDataInsertAllRequest,
4046
4362
  ): Request<TableDataInsertAllResponse>;
4047
4363
  /** List the content of a table in rows. */
4048
4364
  list(request?: {
@@ -4181,7 +4497,7 @@ declare namespace gapi.client {
4181
4497
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4182
4498
  uploadType?: string;
4183
4499
  },
4184
- body: GetIamPolicyRequest
4500
+ body: GetIamPolicyRequest,
4185
4501
  ): Request<Policy>;
4186
4502
  /** Creates a new, empty table in the dataset. */
4187
4503
  insert(request: {
@@ -4243,7 +4559,7 @@ declare namespace gapi.client {
4243
4559
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4244
4560
  uploadType?: string;
4245
4561
  },
4246
- body: Table
4562
+ body: Table,
4247
4563
  ): Request<Table>;
4248
4564
  /** Lists all tables in the specified dataset. Requires the READER dataset role. */
4249
4565
  list(request?: {
@@ -4346,7 +4662,7 @@ declare namespace gapi.client {
4346
4662
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4347
4663
  uploadType?: string;
4348
4664
  },
4349
- body: Table
4665
+ body: Table,
4350
4666
  ): Request<Table>;
4351
4667
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
4352
4668
  setIamPolicy(
@@ -4376,7 +4692,7 @@ declare namespace gapi.client {
4376
4692
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4377
4693
  uploadType?: string;
4378
4694
  },
4379
- body: SetIamPolicyRequest
4695
+ body: SetIamPolicyRequest,
4380
4696
  ): Request<Policy>;
4381
4697
  /** 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. */
4382
4698
  testIamPermissions(
@@ -4406,7 +4722,7 @@ declare namespace gapi.client {
4406
4722
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4407
4723
  uploadType?: string;
4408
4724
  },
4409
- body: TestIamPermissionsRequest
4725
+ body: TestIamPermissionsRequest,
4410
4726
  ): Request<TestIamPermissionsResponse>;
4411
4727
  /** 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. */
4412
4728
  update(request: {
@@ -4476,7 +4792,7 @@ declare namespace gapi.client {
4476
4792
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4477
4793
  uploadType?: string;
4478
4794
  },
4479
- body: Table
4795
+ body: Table,
4480
4796
  ): Request<Table>;
4481
4797
  }
4482
4798
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20241222",
3
+ "version": "0.0.20250128",
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
  */