@maxim_mazurok/gapi.client.bigquerydatapolicy-v1 0.1.20260304 → 0.2.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 +43 -27
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -38,7 +38,11 @@ declare namespace gapi.client {
38
38
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
39
39
  exemptedMembers?: string[];
40
40
  /** The log type that this config enables. */
41
- logType?: string;
41
+ logType?:
42
+ | 'LOG_TYPE_UNSPECIFIED'
43
+ | 'ADMIN_READ'
44
+ | 'DATA_WRITE'
45
+ | 'DATA_READ';
42
46
  }
43
47
  interface Binding {
44
48
  /** 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). */
@@ -50,7 +54,16 @@ declare namespace gapi.client {
50
54
  }
51
55
  interface DataMaskingPolicy {
52
56
  /** A predefined masking expression. */
53
- predefinedExpression?: string;
57
+ predefinedExpression?:
58
+ | 'PREDEFINED_EXPRESSION_UNSPECIFIED'
59
+ | 'SHA256'
60
+ | 'ALWAYS_NULL'
61
+ | 'DEFAULT_MASKING_VALUE'
62
+ | 'LAST_FOUR_CHARACTERS'
63
+ | 'FIRST_FOUR_CHARACTERS'
64
+ | 'EMAIL_MASK'
65
+ | 'DATE_YEAR_MASK'
66
+ | 'RANDOM_HASH';
54
67
  /** 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}`. */
55
68
  routine?: string;
56
69
  }
@@ -60,7 +73,10 @@ declare namespace gapi.client {
60
73
  /** 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. */
61
74
  dataPolicyId?: string;
62
75
  /** Required. Data policy type. Type of data policy. */
63
- dataPolicyType?: string;
76
+ dataPolicyType?:
77
+ | 'DATA_POLICY_TYPE_UNSPECIFIED'
78
+ | 'COLUMN_LEVEL_SECURITY_POLICY'
79
+ | 'DATA_MASKING_POLICY';
64
80
  /** Output only. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. */
65
81
  name?: string;
66
82
  /** Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. */
@@ -123,11 +139,11 @@ declare namespace gapi.client {
123
139
  /** Creates a new data policy under a project with the given `dataPolicyId` (used as the display name), policy tag, and data policy type. */
124
140
  create(request: {
125
141
  /** V1 error format. */
126
- '$.xgafv'?: string;
142
+ '$.xgafv'?: '1' | '2';
127
143
  /** OAuth access token. */
128
144
  access_token?: string;
129
145
  /** Data format for response. */
130
- alt?: string;
146
+ alt?: 'json' | 'media' | 'proto';
131
147
  /** JSONP */
132
148
  callback?: string;
133
149
  /** Selector specifying which fields to include in a partial response. */
@@ -152,11 +168,11 @@ declare namespace gapi.client {
152
168
  create(
153
169
  request: {
154
170
  /** V1 error format. */
155
- '$.xgafv'?: string;
171
+ '$.xgafv'?: '1' | '2';
156
172
  /** OAuth access token. */
157
173
  access_token?: string;
158
174
  /** Data format for response. */
159
- alt?: string;
175
+ alt?: 'json' | 'media' | 'proto';
160
176
  /** JSONP */
161
177
  callback?: string;
162
178
  /** Selector specifying which fields to include in a partial response. */
@@ -181,11 +197,11 @@ declare namespace gapi.client {
181
197
  /** Deletes the data policy specified by its resource name. */
182
198
  delete(request?: {
183
199
  /** V1 error format. */
184
- '$.xgafv'?: string;
200
+ '$.xgafv'?: '1' | '2';
185
201
  /** OAuth access token. */
186
202
  access_token?: string;
187
203
  /** Data format for response. */
188
- alt?: string;
204
+ alt?: 'json' | 'media' | 'proto';
189
205
  /** JSONP */
190
206
  callback?: string;
191
207
  /** Selector specifying which fields to include in a partial response. */
@@ -210,11 +226,11 @@ declare namespace gapi.client {
210
226
  /** Gets the data policy specified by its resource name. */
211
227
  get(request?: {
212
228
  /** V1 error format. */
213
- '$.xgafv'?: string;
229
+ '$.xgafv'?: '1' | '2';
214
230
  /** OAuth access token. */
215
231
  access_token?: string;
216
232
  /** Data format for response. */
217
- alt?: string;
233
+ alt?: 'json' | 'media' | 'proto';
218
234
  /** JSONP */
219
235
  callback?: string;
220
236
  /** Selector specifying which fields to include in a partial response. */
@@ -238,11 +254,11 @@ declare namespace gapi.client {
238
254
  getIamPolicy(
239
255
  request: {
240
256
  /** V1 error format. */
241
- '$.xgafv'?: string;
257
+ '$.xgafv'?: '1' | '2';
242
258
  /** OAuth access token. */
243
259
  access_token?: string;
244
260
  /** Data format for response. */
245
- alt?: string;
261
+ alt?: 'json' | 'media' | 'proto';
246
262
  /** JSONP */
247
263
  callback?: string;
248
264
  /** Selector specifying which fields to include in a partial response. */
@@ -267,11 +283,11 @@ declare namespace gapi.client {
267
283
  /** List all of the data policies in the specified parent project. */
268
284
  list(request?: {
269
285
  /** V1 error format. */
270
- '$.xgafv'?: string;
286
+ '$.xgafv'?: '1' | '2';
271
287
  /** OAuth access token. */
272
288
  access_token?: string;
273
289
  /** Data format for response. */
274
- alt?: string;
290
+ alt?: 'json' | 'media' | 'proto';
275
291
  /** JSONP */
276
292
  callback?: string;
277
293
  /** Selector specifying which fields to include in a partial response. */
@@ -300,13 +316,13 @@ declare namespace gapi.client {
300
316
  /** Updates the metadata for an existing data policy. The target data policy can be specified by the resource name. */
301
317
  patch(request: {
302
318
  /** V1 error format. */
303
- '$.xgafv'?: string;
319
+ '$.xgafv'?: '1' | '2';
304
320
  /** OAuth access token. */
305
321
  access_token?: string;
306
322
  /** 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. */
307
323
  allowMissing?: boolean;
308
324
  /** Data format for response. */
309
- alt?: string;
325
+ alt?: 'json' | 'media' | 'proto';
310
326
  /** JSONP */
311
327
  callback?: string;
312
328
  /** Selector specifying which fields to include in a partial response. */
@@ -333,13 +349,13 @@ declare namespace gapi.client {
333
349
  patch(
334
350
  request: {
335
351
  /** V1 error format. */
336
- '$.xgafv'?: string;
352
+ '$.xgafv'?: '1' | '2';
337
353
  /** OAuth access token. */
338
354
  access_token?: string;
339
355
  /** 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. */
340
356
  allowMissing?: boolean;
341
357
  /** Data format for response. */
342
- alt?: string;
358
+ alt?: 'json' | 'media' | 'proto';
343
359
  /** JSONP */
344
360
  callback?: string;
345
361
  /** Selector specifying which fields to include in a partial response. */
@@ -366,11 +382,11 @@ declare namespace gapi.client {
366
382
  /** Renames the id (display name) of the specified data policy. */
367
383
  rename(request: {
368
384
  /** V1 error format. */
369
- '$.xgafv'?: string;
385
+ '$.xgafv'?: '1' | '2';
370
386
  /** OAuth access token. */
371
387
  access_token?: string;
372
388
  /** Data format for response. */
373
- alt?: string;
389
+ alt?: 'json' | 'media' | 'proto';
374
390
  /** JSONP */
375
391
  callback?: string;
376
392
  /** Selector specifying which fields to include in a partial response. */
@@ -395,11 +411,11 @@ declare namespace gapi.client {
395
411
  rename(
396
412
  request: {
397
413
  /** V1 error format. */
398
- '$.xgafv'?: string;
414
+ '$.xgafv'?: '1' | '2';
399
415
  /** OAuth access token. */
400
416
  access_token?: string;
401
417
  /** Data format for response. */
402
- alt?: string;
418
+ alt?: 'json' | 'media' | 'proto';
403
419
  /** JSONP */
404
420
  callback?: string;
405
421
  /** Selector specifying which fields to include in a partial response. */
@@ -425,11 +441,11 @@ declare namespace gapi.client {
425
441
  setIamPolicy(
426
442
  request: {
427
443
  /** V1 error format. */
428
- '$.xgafv'?: string;
444
+ '$.xgafv'?: '1' | '2';
429
445
  /** OAuth access token. */
430
446
  access_token?: string;
431
447
  /** Data format for response. */
432
- alt?: string;
448
+ alt?: 'json' | 'media' | 'proto';
433
449
  /** JSONP */
434
450
  callback?: string;
435
451
  /** Selector specifying which fields to include in a partial response. */
@@ -455,11 +471,11 @@ declare namespace gapi.client {
455
471
  testIamPermissions(
456
472
  request: {
457
473
  /** V1 error format. */
458
- '$.xgafv'?: string;
474
+ '$.xgafv'?: '1' | '2';
459
475
  /** OAuth access token. */
460
476
  access_token?: string;
461
477
  /** Data format for response. */
462
- alt?: string;
478
+ alt?: 'json' | 'media' | 'proto';
463
479
  /** JSONP */
464
480
  callback?: string;
465
481
  /** 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-v1",
3
- "version": "0.1.20260304",
3
+ "version": "0.2.20260304",
4
4
  "description": "TypeScript typings for BigQuery Data Policy API v1",
5
5
  "repository": {
6
6
  "type": "git",