@maxim_mazurok/gapi.client.bigquerydatapolicy-v2 0.0.20260218 → 0.1.20260304

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 (2) hide show
  1. package/index.d.ts +50 -33
  2. package/package.json +1 -1
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://bigquerydatapolicy.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20260218
12
+ // Revision: 20260304
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -42,7 +42,11 @@ declare namespace gapi.client {
42
42
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
43
43
  exemptedMembers?: string[];
44
44
  /** The log type that this config enables. */
45
- logType?: string;
45
+ logType?:
46
+ | 'LOG_TYPE_UNSPECIFIED'
47
+ | 'ADMIN_READ'
48
+ | 'DATA_WRITE'
49
+ | 'DATA_READ';
46
50
  }
47
51
  interface Binding {
48
52
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
@@ -60,7 +64,16 @@ declare namespace gapi.client {
60
64
  }
61
65
  interface DataMaskingPolicy {
62
66
  /** Optional. A predefined masking expression. */
63
- predefinedExpression?: string;
67
+ predefinedExpression?:
68
+ | 'PREDEFINED_EXPRESSION_UNSPECIFIED'
69
+ | 'SHA256'
70
+ | 'ALWAYS_NULL'
71
+ | 'DEFAULT_MASKING_VALUE'
72
+ | 'LAST_FOUR_CHARACTERS'
73
+ | 'FIRST_FOUR_CHARACTERS'
74
+ | 'EMAIL_MASK'
75
+ | 'DATE_YEAR_MASK'
76
+ | 'RANDOM_HASH';
64
77
  /** Optional. The name of the BigQuery routine that contains the custom masking routine, in the format of `projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}`. */
65
78
  routine?: string;
66
79
  }
@@ -70,7 +83,11 @@ declare namespace gapi.client {
70
83
  /** Output only. User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name. */
71
84
  dataPolicyId?: string;
72
85
  /** Required. Type of data policy. */
73
- dataPolicyType?: string;
86
+ dataPolicyType?:
87
+ | 'DATA_POLICY_TYPE_UNSPECIFIED'
88
+ | 'DATA_MASKING_POLICY'
89
+ | 'RAW_DATA_ACCESS_POLICY'
90
+ | 'COLUMN_LEVEL_SECURITY_POLICY';
74
91
  /** The etag for this Data Policy. This field is used for UpdateDataPolicy calls. If Data Policy exists, this field is required and must match the server's etag. It will also be populated in the response of GetDataPolicy, CreateDataPolicy, and UpdateDataPolicy calls. */
75
92
  etag?: string;
76
93
  /** Optional. The list of IAM principals that have Fine Grained Access to the underlying data goverened by this data policy. Uses the [IAM V2 principal syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only supports principal types users, groups, serviceaccounts, cloudidentity. This field is supported in V2 Data Policy only. In case of V1 data policies (i.e. verion = 1 and policy_tag is set), this field is not populated. */
@@ -80,7 +97,7 @@ declare namespace gapi.client {
80
97
  /** Output only. Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. policy_tag is supported only for V1 data policies. */
81
98
  policyTag?: string;
82
99
  /** Output only. The version of the Data Policy resource. */
83
- version?: string;
100
+ version?: 'VERSION_UNSPECIFIED' | 'V1' | 'V2';
84
101
  }
85
102
  interface Empty {}
86
103
  interface Expr {
@@ -139,11 +156,11 @@ declare namespace gapi.client {
139
156
  /** Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored. */
140
157
  addGrantees(request: {
141
158
  /** V1 error format. */
142
- '$.xgafv'?: string;
159
+ '$.xgafv'?: '1' | '2';
143
160
  /** OAuth access token. */
144
161
  access_token?: string;
145
162
  /** Data format for response. */
146
- alt?: string;
163
+ alt?: 'json' | 'media' | 'proto';
147
164
  /** JSONP */
148
165
  callback?: string;
149
166
  /** Required. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. */
@@ -168,11 +185,11 @@ declare namespace gapi.client {
168
185
  addGrantees(
169
186
  request: {
170
187
  /** V1 error format. */
171
- '$.xgafv'?: string;
188
+ '$.xgafv'?: '1' | '2';
172
189
  /** OAuth access token. */
173
190
  access_token?: string;
174
191
  /** Data format for response. */
175
- alt?: string;
192
+ alt?: 'json' | 'media' | 'proto';
176
193
  /** JSONP */
177
194
  callback?: string;
178
195
  /** Required. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. */
@@ -197,11 +214,11 @@ declare namespace gapi.client {
197
214
  /** Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type. */
198
215
  create(request: {
199
216
  /** V1 error format. */
200
- '$.xgafv'?: string;
217
+ '$.xgafv'?: '1' | '2';
201
218
  /** OAuth access token. */
202
219
  access_token?: string;
203
220
  /** Data format for response. */
204
- alt?: string;
221
+ alt?: 'json' | 'media' | 'proto';
205
222
  /** JSONP */
206
223
  callback?: string;
207
224
  /** Selector specifying which fields to include in a partial response. */
@@ -226,11 +243,11 @@ declare namespace gapi.client {
226
243
  create(
227
244
  request: {
228
245
  /** V1 error format. */
229
- '$.xgafv'?: string;
246
+ '$.xgafv'?: '1' | '2';
230
247
  /** OAuth access token. */
231
248
  access_token?: string;
232
249
  /** Data format for response. */
233
- alt?: string;
250
+ alt?: 'json' | 'media' | 'proto';
234
251
  /** JSONP */
235
252
  callback?: string;
236
253
  /** Selector specifying which fields to include in a partial response. */
@@ -255,11 +272,11 @@ declare namespace gapi.client {
255
272
  /** Deletes the data policy specified by its resource name. */
256
273
  delete(request?: {
257
274
  /** V1 error format. */
258
- '$.xgafv'?: string;
275
+ '$.xgafv'?: '1' | '2';
259
276
  /** OAuth access token. */
260
277
  access_token?: string;
261
278
  /** Data format for response. */
262
- alt?: string;
279
+ alt?: 'json' | 'media' | 'proto';
263
280
  /** JSONP */
264
281
  callback?: string;
265
282
  /** Selector specifying which fields to include in a partial response. */
@@ -282,11 +299,11 @@ declare namespace gapi.client {
282
299
  /** Gets the data policy specified by its resource name. */
283
300
  get(request?: {
284
301
  /** V1 error format. */
285
- '$.xgafv'?: string;
302
+ '$.xgafv'?: '1' | '2';
286
303
  /** OAuth access token. */
287
304
  access_token?: string;
288
305
  /** Data format for response. */
289
- alt?: string;
306
+ alt?: 'json' | 'media' | 'proto';
290
307
  /** JSONP */
291
308
  callback?: string;
292
309
  /** Selector specifying which fields to include in a partial response. */
@@ -310,11 +327,11 @@ declare namespace gapi.client {
310
327
  getIamPolicy(
311
328
  request: {
312
329
  /** V1 error format. */
313
- '$.xgafv'?: string;
330
+ '$.xgafv'?: '1' | '2';
314
331
  /** OAuth access token. */
315
332
  access_token?: string;
316
333
  /** Data format for response. */
317
- alt?: string;
334
+ alt?: 'json' | 'media' | 'proto';
318
335
  /** JSONP */
319
336
  callback?: string;
320
337
  /** Selector specifying which fields to include in a partial response. */
@@ -339,11 +356,11 @@ declare namespace gapi.client {
339
356
  /** List all of the data policies in the specified parent project. */
340
357
  list(request?: {
341
358
  /** V1 error format. */
342
- '$.xgafv'?: string;
359
+ '$.xgafv'?: '1' | '2';
343
360
  /** OAuth access token. */
344
361
  access_token?: string;
345
362
  /** Data format for response. */
346
- alt?: string;
363
+ alt?: 'json' | 'media' | 'proto';
347
364
  /** JSONP */
348
365
  callback?: string;
349
366
  /** Selector specifying which fields to include in a partial response. */
@@ -372,13 +389,13 @@ declare namespace gapi.client {
372
389
  /** Updates the metadata for an existing data policy. The target data policy can be specified by the resource name. */
373
390
  patch(request: {
374
391
  /** V1 error format. */
375
- '$.xgafv'?: string;
392
+ '$.xgafv'?: '1' | '2';
376
393
  /** OAuth access token. */
377
394
  access_token?: string;
378
395
  /** Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored. */
379
396
  allowMissing?: boolean;
380
397
  /** Data format for response. */
381
- alt?: string;
398
+ alt?: 'json' | 'media' | 'proto';
382
399
  /** JSONP */
383
400
  callback?: string;
384
401
  /** Selector specifying which fields to include in a partial response. */
@@ -405,13 +422,13 @@ declare namespace gapi.client {
405
422
  patch(
406
423
  request: {
407
424
  /** V1 error format. */
408
- '$.xgafv'?: string;
425
+ '$.xgafv'?: '1' | '2';
409
426
  /** OAuth access token. */
410
427
  access_token?: string;
411
428
  /** Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored. */
412
429
  allowMissing?: boolean;
413
430
  /** Data format for response. */
414
- alt?: string;
431
+ alt?: 'json' | 'media' | 'proto';
415
432
  /** JSONP */
416
433
  callback?: string;
417
434
  /** Selector specifying which fields to include in a partial response. */
@@ -438,11 +455,11 @@ declare namespace gapi.client {
438
455
  /** Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored. */
439
456
  removeGrantees(request: {
440
457
  /** V1 error format. */
441
- '$.xgafv'?: string;
458
+ '$.xgafv'?: '1' | '2';
442
459
  /** OAuth access token. */
443
460
  access_token?: string;
444
461
  /** Data format for response. */
445
- alt?: string;
462
+ alt?: 'json' | 'media' | 'proto';
446
463
  /** JSONP */
447
464
  callback?: string;
448
465
  /** Required. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. */
@@ -467,11 +484,11 @@ declare namespace gapi.client {
467
484
  removeGrantees(
468
485
  request: {
469
486
  /** V1 error format. */
470
- '$.xgafv'?: string;
487
+ '$.xgafv'?: '1' | '2';
471
488
  /** OAuth access token. */
472
489
  access_token?: string;
473
490
  /** Data format for response. */
474
- alt?: string;
491
+ alt?: 'json' | 'media' | 'proto';
475
492
  /** JSONP */
476
493
  callback?: string;
477
494
  /** Required. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. */
@@ -497,11 +514,11 @@ declare namespace gapi.client {
497
514
  setIamPolicy(
498
515
  request: {
499
516
  /** V1 error format. */
500
- '$.xgafv'?: string;
517
+ '$.xgafv'?: '1' | '2';
501
518
  /** OAuth access token. */
502
519
  access_token?: string;
503
520
  /** Data format for response. */
504
- alt?: string;
521
+ alt?: 'json' | 'media' | 'proto';
505
522
  /** JSONP */
506
523
  callback?: string;
507
524
  /** Selector specifying which fields to include in a partial response. */
@@ -527,11 +544,11 @@ declare namespace gapi.client {
527
544
  testIamPermissions(
528
545
  request: {
529
546
  /** V1 error format. */
530
- '$.xgafv'?: string;
547
+ '$.xgafv'?: '1' | '2';
531
548
  /** OAuth access token. */
532
549
  access_token?: string;
533
550
  /** Data format for response. */
534
- alt?: string;
551
+ alt?: 'json' | 'media' | 'proto';
535
552
  /** JSONP */
536
553
  callback?: string;
537
554
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquerydatapolicy-v2",
3
- "version": "0.0.20260218",
3
+ "version": "0.1.20260304",
4
4
  "description": "TypeScript typings for BigQuery Data Policy API v2",
5
5
  "repository": {
6
6
  "type": "git",