@maxim_mazurok/gapi.client.orgpolicy-v2 0.0.20231113 → 0.0.20231204
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.
- package/index.d.ts +1147 -1782
- package/package.json +6 -6
- package/readme.md +17 -12
- package/tests.ts +0 -738
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/index.d.ts
CHANGED
|
@@ -9,1794 +9,1159 @@
|
|
|
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://orgpolicy.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231204
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/** Load Organization Policy API v2 */
|
|
18
|
+
function load(
|
|
19
|
+
urlOrObject: 'https://orgpolicy.googleapis.com/$discovery/rest?version=v2'
|
|
20
|
+
): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: 'orgpolicy', version: 'v2'): Promise<void>;
|
|
23
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
24
|
+
function load(name: 'orgpolicy', version: 'v2', callback: () => any): void;
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
/** Required. Resource name of the policy. See Policy for naming requirements. */
|
|
1159
|
-
name:
|
|
1160
|
-
string;
|
|
1161
|
-
/** OAuth 2.0 token for the current user. */
|
|
1162
|
-
oauth_token?:
|
|
1163
|
-
string;
|
|
1164
|
-
/** Returns response with indentations and line breaks. */
|
|
1165
|
-
prettyPrint?:
|
|
1166
|
-
boolean;
|
|
1167
|
-
/** 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. */
|
|
1168
|
-
quotaUser?:
|
|
1169
|
-
string;
|
|
1170
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1171
|
-
upload_protocol?:
|
|
1172
|
-
string;
|
|
1173
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1174
|
-
uploadType?:
|
|
1175
|
-
string;
|
|
1176
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1177
|
-
/**
|
|
1178
|
-
* Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or
|
|
1179
|
-
* `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
|
|
1180
|
-
*/
|
|
1181
|
-
getEffectivePolicy(request?: {
|
|
1182
|
-
/** V1 error format. */
|
|
1183
|
-
"$.xgafv"?:
|
|
1184
|
-
string;
|
|
1185
|
-
/** OAuth access token. */
|
|
1186
|
-
access_token?:
|
|
1187
|
-
string;
|
|
1188
|
-
/** Data format for response. */
|
|
1189
|
-
alt?:
|
|
1190
|
-
string;
|
|
1191
|
-
/** JSONP */
|
|
1192
|
-
callback?:
|
|
1193
|
-
string;
|
|
1194
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1195
|
-
fields?:
|
|
1196
|
-
string;
|
|
1197
|
-
/** 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. */
|
|
1198
|
-
key?:
|
|
1199
|
-
string;
|
|
1200
|
-
/** Required. The effective policy to compute. See Policy for naming requirements. */
|
|
1201
|
-
name:
|
|
1202
|
-
string;
|
|
1203
|
-
/** OAuth 2.0 token for the current user. */
|
|
1204
|
-
oauth_token?:
|
|
1205
|
-
string;
|
|
1206
|
-
/** Returns response with indentations and line breaks. */
|
|
1207
|
-
prettyPrint?:
|
|
1208
|
-
boolean;
|
|
1209
|
-
/** 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. */
|
|
1210
|
-
quotaUser?:
|
|
1211
|
-
string;
|
|
1212
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1213
|
-
upload_protocol?:
|
|
1214
|
-
string;
|
|
1215
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1216
|
-
uploadType?:
|
|
1217
|
-
string;
|
|
1218
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1219
|
-
/** Retrieves all of the policies that exist on a particular resource. */
|
|
1220
|
-
list(request?: {
|
|
1221
|
-
/** V1 error format. */
|
|
1222
|
-
"$.xgafv"?:
|
|
1223
|
-
string;
|
|
1224
|
-
/** OAuth access token. */
|
|
1225
|
-
access_token?:
|
|
1226
|
-
string;
|
|
1227
|
-
/** Data format for response. */
|
|
1228
|
-
alt?:
|
|
1229
|
-
string;
|
|
1230
|
-
/** JSONP */
|
|
1231
|
-
callback?:
|
|
1232
|
-
string;
|
|
1233
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1234
|
-
fields?:
|
|
1235
|
-
string;
|
|
1236
|
-
/** 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. */
|
|
1237
|
-
key?:
|
|
1238
|
-
string;
|
|
1239
|
-
/** OAuth 2.0 token for the current user. */
|
|
1240
|
-
oauth_token?:
|
|
1241
|
-
string;
|
|
1242
|
-
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
1243
|
-
pageSize?:
|
|
1244
|
-
number;
|
|
1245
|
-
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
1246
|
-
pageToken?:
|
|
1247
|
-
string;
|
|
1248
|
-
/**
|
|
1249
|
-
* Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: *
|
|
1250
|
-
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`
|
|
1251
|
-
*/
|
|
1252
|
-
parent:
|
|
1253
|
-
string;
|
|
1254
|
-
/** Returns response with indentations and line breaks. */
|
|
1255
|
-
prettyPrint?:
|
|
1256
|
-
boolean;
|
|
1257
|
-
/** 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. */
|
|
1258
|
-
quotaUser?:
|
|
1259
|
-
string;
|
|
1260
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1261
|
-
upload_protocol?:
|
|
1262
|
-
string;
|
|
1263
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1264
|
-
uploadType?:
|
|
1265
|
-
string;
|
|
1266
|
-
}): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
|
|
1267
|
-
/**
|
|
1268
|
-
* Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with
|
|
1269
|
-
* `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.
|
|
1270
|
-
*/
|
|
1271
|
-
patch(request: {
|
|
1272
|
-
/** V1 error format. */
|
|
1273
|
-
"$.xgafv"?:
|
|
1274
|
-
string;
|
|
1275
|
-
/** OAuth access token. */
|
|
1276
|
-
access_token?:
|
|
1277
|
-
string;
|
|
1278
|
-
/** Data format for response. */
|
|
1279
|
-
alt?:
|
|
1280
|
-
string;
|
|
1281
|
-
/** JSONP */
|
|
1282
|
-
callback?:
|
|
1283
|
-
string;
|
|
1284
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1285
|
-
fields?:
|
|
1286
|
-
string;
|
|
1287
|
-
/** 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. */
|
|
1288
|
-
key?:
|
|
1289
|
-
string;
|
|
1290
|
-
/**
|
|
1291
|
-
* Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: *
|
|
1292
|
-
* `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For
|
|
1293
|
-
* example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but
|
|
1294
|
-
* responses will return the name using the equivalent project number.
|
|
1295
|
-
*/
|
|
1296
|
-
name:
|
|
1297
|
-
string;
|
|
1298
|
-
/** OAuth 2.0 token for the current user. */
|
|
1299
|
-
oauth_token?:
|
|
1300
|
-
string;
|
|
1301
|
-
/** Returns response with indentations and line breaks. */
|
|
1302
|
-
prettyPrint?:
|
|
1303
|
-
boolean;
|
|
1304
|
-
/** 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. */
|
|
1305
|
-
quotaUser?:
|
|
1306
|
-
string;
|
|
1307
|
-
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1308
|
-
updateMask?:
|
|
1309
|
-
string;
|
|
1310
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1311
|
-
upload_protocol?:
|
|
1312
|
-
string;
|
|
1313
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1314
|
-
uploadType?:
|
|
1315
|
-
string;
|
|
1316
|
-
/** Request body */
|
|
1317
|
-
resource:
|
|
1318
|
-
GoogleCloudOrgpolicyV2Policy;
|
|
1319
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1320
|
-
patch(request: {
|
|
1321
|
-
/** V1 error format. */
|
|
1322
|
-
"$.xgafv"?:
|
|
1323
|
-
string;
|
|
1324
|
-
/** OAuth access token. */
|
|
1325
|
-
access_token?:
|
|
1326
|
-
string;
|
|
1327
|
-
/** Data format for response. */
|
|
1328
|
-
alt?:
|
|
1329
|
-
string;
|
|
1330
|
-
/** JSONP */
|
|
1331
|
-
callback?:
|
|
1332
|
-
string;
|
|
1333
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1334
|
-
fields?:
|
|
1335
|
-
string;
|
|
1336
|
-
/** 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. */
|
|
1337
|
-
key?:
|
|
1338
|
-
string;
|
|
1339
|
-
/**
|
|
1340
|
-
* Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: *
|
|
1341
|
-
* `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For
|
|
1342
|
-
* example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but
|
|
1343
|
-
* responses will return the name using the equivalent project number.
|
|
1344
|
-
*/
|
|
1345
|
-
name:
|
|
1346
|
-
string;
|
|
1347
|
-
/** OAuth 2.0 token for the current user. */
|
|
1348
|
-
oauth_token?:
|
|
1349
|
-
string;
|
|
1350
|
-
/** Returns response with indentations and line breaks. */
|
|
1351
|
-
prettyPrint?:
|
|
1352
|
-
boolean;
|
|
1353
|
-
/** 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. */
|
|
1354
|
-
quotaUser?:
|
|
1355
|
-
string;
|
|
1356
|
-
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1357
|
-
updateMask?:
|
|
1358
|
-
string;
|
|
1359
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1360
|
-
upload_protocol?:
|
|
1361
|
-
string;
|
|
1362
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1363
|
-
uploadType?:
|
|
1364
|
-
string;
|
|
1365
|
-
},
|
|
1366
|
-
body: GoogleCloudOrgpolicyV2Policy): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1367
|
-
}
|
|
1368
|
-
interface OrganizationsResource {
|
|
1369
|
-
constraints:
|
|
1370
|
-
ConstraintsResource;
|
|
1371
|
-
customConstraints:
|
|
1372
|
-
CustomConstraintsResource;
|
|
1373
|
-
policies:
|
|
1374
|
-
PoliciesResource;
|
|
1375
|
-
}
|
|
1376
|
-
interface ConstraintsResource {
|
|
1377
|
-
/** Lists constraints that could be applied on the specified resource. */
|
|
1378
|
-
list(request?: {
|
|
1379
|
-
/** V1 error format. */
|
|
1380
|
-
"$.xgafv"?:
|
|
1381
|
-
string;
|
|
1382
|
-
/** OAuth access token. */
|
|
1383
|
-
access_token?:
|
|
1384
|
-
string;
|
|
1385
|
-
/** Data format for response. */
|
|
1386
|
-
alt?:
|
|
1387
|
-
string;
|
|
1388
|
-
/** JSONP */
|
|
1389
|
-
callback?:
|
|
1390
|
-
string;
|
|
1391
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1392
|
-
fields?:
|
|
1393
|
-
string;
|
|
1394
|
-
/** 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. */
|
|
1395
|
-
key?:
|
|
1396
|
-
string;
|
|
1397
|
-
/** OAuth 2.0 token for the current user. */
|
|
1398
|
-
oauth_token?:
|
|
1399
|
-
string;
|
|
1400
|
-
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
1401
|
-
pageSize?:
|
|
1402
|
-
number;
|
|
1403
|
-
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
1404
|
-
pageToken?:
|
|
1405
|
-
string;
|
|
1406
|
-
/**
|
|
1407
|
-
* Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` *
|
|
1408
|
-
* `folders/{folder_id}` * `organizations/{organization_id}`
|
|
1409
|
-
*/
|
|
1410
|
-
parent:
|
|
1411
|
-
string;
|
|
1412
|
-
/** Returns response with indentations and line breaks. */
|
|
1413
|
-
prettyPrint?:
|
|
1414
|
-
boolean;
|
|
1415
|
-
/** 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. */
|
|
1416
|
-
quotaUser?:
|
|
1417
|
-
string;
|
|
1418
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1419
|
-
upload_protocol?:
|
|
1420
|
-
string;
|
|
1421
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1422
|
-
uploadType?:
|
|
1423
|
-
string;
|
|
1424
|
-
}): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
|
|
1425
|
-
}
|
|
1426
|
-
interface PoliciesResource {
|
|
1427
|
-
/**
|
|
1428
|
-
* Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with
|
|
1429
|
-
* `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.
|
|
1430
|
-
*/
|
|
1431
|
-
create(request: {
|
|
1432
|
-
/** V1 error format. */
|
|
1433
|
-
"$.xgafv"?:
|
|
1434
|
-
string;
|
|
1435
|
-
/** OAuth access token. */
|
|
1436
|
-
access_token?:
|
|
1437
|
-
string;
|
|
1438
|
-
/** Data format for response. */
|
|
1439
|
-
alt?:
|
|
1440
|
-
string;
|
|
1441
|
-
/** JSONP */
|
|
1442
|
-
callback?:
|
|
1443
|
-
string;
|
|
1444
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1445
|
-
fields?:
|
|
1446
|
-
string;
|
|
1447
|
-
/** 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. */
|
|
1448
|
-
key?:
|
|
1449
|
-
string;
|
|
1450
|
-
/** OAuth 2.0 token for the current user. */
|
|
1451
|
-
oauth_token?:
|
|
1452
|
-
string;
|
|
1453
|
-
/**
|
|
1454
|
-
* Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` *
|
|
1455
|
-
* `folders/{folder_id}` * `organizations/{organization_id}`
|
|
1456
|
-
*/
|
|
1457
|
-
parent:
|
|
1458
|
-
string;
|
|
1459
|
-
/** Returns response with indentations and line breaks. */
|
|
1460
|
-
prettyPrint?:
|
|
1461
|
-
boolean;
|
|
1462
|
-
/** 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. */
|
|
1463
|
-
quotaUser?:
|
|
1464
|
-
string;
|
|
1465
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1466
|
-
upload_protocol?:
|
|
1467
|
-
string;
|
|
1468
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1469
|
-
uploadType?:
|
|
1470
|
-
string;
|
|
1471
|
-
/** Request body */
|
|
1472
|
-
resource:
|
|
1473
|
-
GoogleCloudOrgpolicyV2Policy;
|
|
1474
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1475
|
-
create(request: {
|
|
1476
|
-
/** V1 error format. */
|
|
1477
|
-
"$.xgafv"?:
|
|
1478
|
-
string;
|
|
1479
|
-
/** OAuth access token. */
|
|
1480
|
-
access_token?:
|
|
1481
|
-
string;
|
|
1482
|
-
/** Data format for response. */
|
|
1483
|
-
alt?:
|
|
1484
|
-
string;
|
|
1485
|
-
/** JSONP */
|
|
1486
|
-
callback?:
|
|
1487
|
-
string;
|
|
1488
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1489
|
-
fields?:
|
|
1490
|
-
string;
|
|
1491
|
-
/** 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. */
|
|
1492
|
-
key?:
|
|
1493
|
-
string;
|
|
1494
|
-
/** OAuth 2.0 token for the current user. */
|
|
1495
|
-
oauth_token?:
|
|
1496
|
-
string;
|
|
1497
|
-
/**
|
|
1498
|
-
* Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` *
|
|
1499
|
-
* `folders/{folder_id}` * `organizations/{organization_id}`
|
|
1500
|
-
*/
|
|
1501
|
-
parent:
|
|
1502
|
-
string;
|
|
1503
|
-
/** Returns response with indentations and line breaks. */
|
|
1504
|
-
prettyPrint?:
|
|
1505
|
-
boolean;
|
|
1506
|
-
/** 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. */
|
|
1507
|
-
quotaUser?:
|
|
1508
|
-
string;
|
|
1509
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1510
|
-
upload_protocol?:
|
|
1511
|
-
string;
|
|
1512
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1513
|
-
uploadType?:
|
|
1514
|
-
string;
|
|
1515
|
-
},
|
|
1516
|
-
body: GoogleCloudOrgpolicyV2Policy): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1517
|
-
/** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
|
|
1518
|
-
delete(request?: {
|
|
1519
|
-
/** V1 error format. */
|
|
1520
|
-
"$.xgafv"?:
|
|
1521
|
-
string;
|
|
1522
|
-
/** OAuth access token. */
|
|
1523
|
-
access_token?:
|
|
1524
|
-
string;
|
|
1525
|
-
/** Data format for response. */
|
|
1526
|
-
alt?:
|
|
1527
|
-
string;
|
|
1528
|
-
/** JSONP */
|
|
1529
|
-
callback?:
|
|
1530
|
-
string;
|
|
1531
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1532
|
-
fields?:
|
|
1533
|
-
string;
|
|
1534
|
-
/** 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. */
|
|
1535
|
-
key?:
|
|
1536
|
-
string;
|
|
1537
|
-
/** Required. Name of the policy to delete. See the policy entry for naming rules. */
|
|
1538
|
-
name:
|
|
1539
|
-
string;
|
|
1540
|
-
/** OAuth 2.0 token for the current user. */
|
|
1541
|
-
oauth_token?:
|
|
1542
|
-
string;
|
|
1543
|
-
/** Returns response with indentations and line breaks. */
|
|
1544
|
-
prettyPrint?:
|
|
1545
|
-
boolean;
|
|
1546
|
-
/** 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. */
|
|
1547
|
-
quotaUser?:
|
|
1548
|
-
string;
|
|
1549
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1550
|
-
upload_protocol?:
|
|
1551
|
-
string;
|
|
1552
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1553
|
-
uploadType?:
|
|
1554
|
-
string;
|
|
1555
|
-
}): Request<{}>;
|
|
1556
|
-
/**
|
|
1557
|
-
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during
|
|
1558
|
-
* read-modify-write.
|
|
1559
|
-
*/
|
|
1560
|
-
get(request?: {
|
|
1561
|
-
/** V1 error format. */
|
|
1562
|
-
"$.xgafv"?:
|
|
1563
|
-
string;
|
|
1564
|
-
/** OAuth access token. */
|
|
1565
|
-
access_token?:
|
|
1566
|
-
string;
|
|
1567
|
-
/** Data format for response. */
|
|
1568
|
-
alt?:
|
|
1569
|
-
string;
|
|
1570
|
-
/** JSONP */
|
|
1571
|
-
callback?:
|
|
1572
|
-
string;
|
|
1573
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1574
|
-
fields?:
|
|
1575
|
-
string;
|
|
1576
|
-
/** 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. */
|
|
1577
|
-
key?:
|
|
1578
|
-
string;
|
|
1579
|
-
/** Required. Resource name of the policy. See Policy for naming requirements. */
|
|
1580
|
-
name:
|
|
1581
|
-
string;
|
|
1582
|
-
/** OAuth 2.0 token for the current user. */
|
|
1583
|
-
oauth_token?:
|
|
1584
|
-
string;
|
|
1585
|
-
/** Returns response with indentations and line breaks. */
|
|
1586
|
-
prettyPrint?:
|
|
1587
|
-
boolean;
|
|
1588
|
-
/** 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. */
|
|
1589
|
-
quotaUser?:
|
|
1590
|
-
string;
|
|
1591
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1592
|
-
upload_protocol?:
|
|
1593
|
-
string;
|
|
1594
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1595
|
-
uploadType?:
|
|
1596
|
-
string;
|
|
1597
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1598
|
-
/**
|
|
1599
|
-
* Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or
|
|
1600
|
-
* `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
|
|
1601
|
-
*/
|
|
1602
|
-
getEffectivePolicy(request?: {
|
|
1603
|
-
/** V1 error format. */
|
|
1604
|
-
"$.xgafv"?:
|
|
1605
|
-
string;
|
|
1606
|
-
/** OAuth access token. */
|
|
1607
|
-
access_token?:
|
|
1608
|
-
string;
|
|
1609
|
-
/** Data format for response. */
|
|
1610
|
-
alt?:
|
|
1611
|
-
string;
|
|
1612
|
-
/** JSONP */
|
|
1613
|
-
callback?:
|
|
1614
|
-
string;
|
|
1615
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1616
|
-
fields?:
|
|
1617
|
-
string;
|
|
1618
|
-
/** 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. */
|
|
1619
|
-
key?:
|
|
1620
|
-
string;
|
|
1621
|
-
/** Required. The effective policy to compute. See Policy for naming requirements. */
|
|
1622
|
-
name:
|
|
1623
|
-
string;
|
|
1624
|
-
/** OAuth 2.0 token for the current user. */
|
|
1625
|
-
oauth_token?:
|
|
1626
|
-
string;
|
|
1627
|
-
/** Returns response with indentations and line breaks. */
|
|
1628
|
-
prettyPrint?:
|
|
1629
|
-
boolean;
|
|
1630
|
-
/** 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. */
|
|
1631
|
-
quotaUser?:
|
|
1632
|
-
string;
|
|
1633
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1634
|
-
upload_protocol?:
|
|
1635
|
-
string;
|
|
1636
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1637
|
-
uploadType?:
|
|
1638
|
-
string;
|
|
1639
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1640
|
-
/** Retrieves all of the policies that exist on a particular resource. */
|
|
1641
|
-
list(request?: {
|
|
1642
|
-
/** V1 error format. */
|
|
1643
|
-
"$.xgafv"?:
|
|
1644
|
-
string;
|
|
1645
|
-
/** OAuth access token. */
|
|
1646
|
-
access_token?:
|
|
1647
|
-
string;
|
|
1648
|
-
/** Data format for response. */
|
|
1649
|
-
alt?:
|
|
1650
|
-
string;
|
|
1651
|
-
/** JSONP */
|
|
1652
|
-
callback?:
|
|
1653
|
-
string;
|
|
1654
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1655
|
-
fields?:
|
|
1656
|
-
string;
|
|
1657
|
-
/** 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. */
|
|
1658
|
-
key?:
|
|
1659
|
-
string;
|
|
1660
|
-
/** OAuth 2.0 token for the current user. */
|
|
1661
|
-
oauth_token?:
|
|
1662
|
-
string;
|
|
1663
|
-
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
1664
|
-
pageSize?:
|
|
1665
|
-
number;
|
|
1666
|
-
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
1667
|
-
pageToken?:
|
|
1668
|
-
string;
|
|
1669
|
-
/**
|
|
1670
|
-
* Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: *
|
|
1671
|
-
* `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}`
|
|
1672
|
-
*/
|
|
1673
|
-
parent:
|
|
1674
|
-
string;
|
|
1675
|
-
/** Returns response with indentations and line breaks. */
|
|
1676
|
-
prettyPrint?:
|
|
1677
|
-
boolean;
|
|
1678
|
-
/** 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. */
|
|
1679
|
-
quotaUser?:
|
|
1680
|
-
string;
|
|
1681
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1682
|
-
upload_protocol?:
|
|
1683
|
-
string;
|
|
1684
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1685
|
-
uploadType?:
|
|
1686
|
-
string;
|
|
1687
|
-
}): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
|
|
1688
|
-
/**
|
|
1689
|
-
* Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with
|
|
1690
|
-
* `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.
|
|
1691
|
-
*/
|
|
1692
|
-
patch(request: {
|
|
1693
|
-
/** V1 error format. */
|
|
1694
|
-
"$.xgafv"?:
|
|
1695
|
-
string;
|
|
1696
|
-
/** OAuth access token. */
|
|
1697
|
-
access_token?:
|
|
1698
|
-
string;
|
|
1699
|
-
/** Data format for response. */
|
|
1700
|
-
alt?:
|
|
1701
|
-
string;
|
|
1702
|
-
/** JSONP */
|
|
1703
|
-
callback?:
|
|
1704
|
-
string;
|
|
1705
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1706
|
-
fields?:
|
|
1707
|
-
string;
|
|
1708
|
-
/** 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. */
|
|
1709
|
-
key?:
|
|
1710
|
-
string;
|
|
1711
|
-
/**
|
|
1712
|
-
* Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: *
|
|
1713
|
-
* `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For
|
|
1714
|
-
* example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but
|
|
1715
|
-
* responses will return the name using the equivalent project number.
|
|
1716
|
-
*/
|
|
1717
|
-
name:
|
|
1718
|
-
string;
|
|
1719
|
-
/** OAuth 2.0 token for the current user. */
|
|
1720
|
-
oauth_token?:
|
|
1721
|
-
string;
|
|
1722
|
-
/** Returns response with indentations and line breaks. */
|
|
1723
|
-
prettyPrint?:
|
|
1724
|
-
boolean;
|
|
1725
|
-
/** 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. */
|
|
1726
|
-
quotaUser?:
|
|
1727
|
-
string;
|
|
1728
|
-
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1729
|
-
updateMask?:
|
|
1730
|
-
string;
|
|
1731
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1732
|
-
upload_protocol?:
|
|
1733
|
-
string;
|
|
1734
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1735
|
-
uploadType?:
|
|
1736
|
-
string;
|
|
1737
|
-
/** Request body */
|
|
1738
|
-
resource:
|
|
1739
|
-
GoogleCloudOrgpolicyV2Policy;
|
|
1740
|
-
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1741
|
-
patch(request: {
|
|
1742
|
-
/** V1 error format. */
|
|
1743
|
-
"$.xgafv"?:
|
|
1744
|
-
string;
|
|
1745
|
-
/** OAuth access token. */
|
|
1746
|
-
access_token?:
|
|
1747
|
-
string;
|
|
1748
|
-
/** Data format for response. */
|
|
1749
|
-
alt?:
|
|
1750
|
-
string;
|
|
1751
|
-
/** JSONP */
|
|
1752
|
-
callback?:
|
|
1753
|
-
string;
|
|
1754
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1755
|
-
fields?:
|
|
1756
|
-
string;
|
|
1757
|
-
/** 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. */
|
|
1758
|
-
key?:
|
|
1759
|
-
string;
|
|
1760
|
-
/**
|
|
1761
|
-
* Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: *
|
|
1762
|
-
* `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For
|
|
1763
|
-
* example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but
|
|
1764
|
-
* responses will return the name using the equivalent project number.
|
|
1765
|
-
*/
|
|
1766
|
-
name:
|
|
1767
|
-
string;
|
|
1768
|
-
/** OAuth 2.0 token for the current user. */
|
|
1769
|
-
oauth_token?:
|
|
1770
|
-
string;
|
|
1771
|
-
/** Returns response with indentations and line breaks. */
|
|
1772
|
-
prettyPrint?:
|
|
1773
|
-
boolean;
|
|
1774
|
-
/** 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. */
|
|
1775
|
-
quotaUser?:
|
|
1776
|
-
string;
|
|
1777
|
-
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1778
|
-
updateMask?:
|
|
1779
|
-
string;
|
|
1780
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1781
|
-
upload_protocol?:
|
|
1782
|
-
string;
|
|
1783
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1784
|
-
uploadType?:
|
|
1785
|
-
string;
|
|
1786
|
-
},
|
|
1787
|
-
body: GoogleCloudOrgpolicyV2Policy): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1788
|
-
}
|
|
1789
|
-
interface ProjectsResource {
|
|
1790
|
-
constraints:
|
|
1791
|
-
ConstraintsResource;
|
|
1792
|
-
policies:
|
|
1793
|
-
PoliciesResource;
|
|
1794
|
-
}
|
|
26
|
+
namespace orgpolicy {
|
|
27
|
+
interface GoogleCloudOrgpolicyV2AlternatePolicySpec {
|
|
28
|
+
/** Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy. */
|
|
29
|
+
launch?: string;
|
|
30
|
+
/** Specify constraint for configurations of Google Cloud resources. */
|
|
31
|
+
spec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
32
|
+
}
|
|
33
|
+
interface GoogleCloudOrgpolicyV2Constraint {
|
|
34
|
+
/** Defines this constraint as being a BooleanConstraint. */
|
|
35
|
+
booleanConstraint?: any;
|
|
36
|
+
/** The evaluation behavior of this constraint in the absence of a policy. */
|
|
37
|
+
constraintDefault?: string;
|
|
38
|
+
/** Detailed description of what this constraint controls as well as how and where it is enforced. Mutable. */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** The human readable name. Mutable. */
|
|
41
|
+
displayName?: string;
|
|
42
|
+
/** Defines this constraint as being a ListConstraint. */
|
|
43
|
+
listConstraint?: GoogleCloudOrgpolicyV2ConstraintListConstraint;
|
|
44
|
+
/** Immutable. The resource name of the constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_id}/constraints/{constraint_name}` * `organizations/{organization_id}/constraints/{constraint_name}` For example, "/projects/123/constraints/compute.disableSerialPortAccess". */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** Shows if dry run is supported for this constraint or not. */
|
|
47
|
+
supportsDryRun?: boolean;
|
|
48
|
+
}
|
|
49
|
+
interface GoogleCloudOrgpolicyV2ConstraintBooleanConstraint {}
|
|
50
|
+
interface GoogleCloudOrgpolicyV2ConstraintListConstraint {
|
|
51
|
+
/** Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"in:Python"` would match any value in the 'Python' group. */
|
|
52
|
+
supportsIn?: boolean;
|
|
53
|
+
/** Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"under:folders/123"` would match any resource under the 'folders/123' folder. */
|
|
54
|
+
supportsUnder?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface GoogleCloudOrgpolicyV2CustomConstraint {
|
|
57
|
+
/** Allow or deny type. */
|
|
58
|
+
actionType?: string;
|
|
59
|
+
/** Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters. */
|
|
60
|
+
condition?: string;
|
|
61
|
+
/** Detailed information about this custom policy constraint. The max length of the description is 2000 characters. */
|
|
62
|
+
description?: string;
|
|
63
|
+
/** One line display name for the UI. The max length of the display_name is 200 characters. */
|
|
64
|
+
displayName?: string;
|
|
65
|
+
/** All the operations being applied for this constraint. */
|
|
66
|
+
methodTypes?: string[];
|
|
67
|
+
/** Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted. */
|
|
68
|
+
name?: string;
|
|
69
|
+
/** Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */
|
|
70
|
+
resourceTypes?: string[];
|
|
71
|
+
/** Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called */
|
|
72
|
+
updateTime?: string;
|
|
73
|
+
}
|
|
74
|
+
interface GoogleCloudOrgpolicyV2ListConstraintsResponse {
|
|
75
|
+
/** The collection of constraints that are available on the targeted resource. */
|
|
76
|
+
constraints?: GoogleCloudOrgpolicyV2Constraint[];
|
|
77
|
+
/** Page token used to retrieve the next page. This is currently not used. */
|
|
78
|
+
nextPageToken?: string;
|
|
79
|
+
}
|
|
80
|
+
interface GoogleCloudOrgpolicyV2ListCustomConstraintsResponse {
|
|
81
|
+
/** All custom constraints that exist on the organization resource. It will be empty if no custom constraints are set. */
|
|
82
|
+
customConstraints?: GoogleCloudOrgpolicyV2CustomConstraint[];
|
|
83
|
+
/** Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token. */
|
|
84
|
+
nextPageToken?: string;
|
|
85
|
+
}
|
|
86
|
+
interface GoogleCloudOrgpolicyV2ListPoliciesResponse {
|
|
87
|
+
/** Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token. */
|
|
88
|
+
nextPageToken?: string;
|
|
89
|
+
/** All policies that exist on the resource. It will be empty if no policies are set. */
|
|
90
|
+
policies?: GoogleCloudOrgpolicyV2Policy[];
|
|
91
|
+
}
|
|
92
|
+
interface GoogleCloudOrgpolicyV2Policy {
|
|
93
|
+
/** Deprecated. */
|
|
94
|
+
alternate?: GoogleCloudOrgpolicyV2AlternatePolicySpec;
|
|
95
|
+
/** Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced. */
|
|
96
|
+
dryRunSpec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
97
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
98
|
+
name?: string;
|
|
99
|
+
/** Basic information about the Organization Policy. */
|
|
100
|
+
spec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
101
|
+
}
|
|
102
|
+
interface GoogleCloudOrgpolicyV2PolicySpec {
|
|
103
|
+
/** An opaque tag indicating the current version of the policySpec, used for concurrency control. This field is ignored if used in a `CreatePolicy` request. When the policy is returned from either a `GetPolicy` or a `ListPolicies` request, this `etag` indicates the version of the current policySpec to use when executing a read-modify-write loop. When the policy is returned from a `GetEffectivePolicy` request, the `etag` will be unset. */
|
|
104
|
+
etag?: string;
|
|
105
|
+
/** Determines the inheritance behavior for this policy. If `inherit_from_parent` is true, policy rules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this policy becomes the new root for evaluation. This field can be set only for policies which configure list constraints. */
|
|
106
|
+
inheritFromParent?: boolean;
|
|
107
|
+
/** Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. */
|
|
108
|
+
reset?: boolean;
|
|
109
|
+
/** In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set `enforced` to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. */
|
|
110
|
+
rules?: GoogleCloudOrgpolicyV2PolicySpecPolicyRule[];
|
|
111
|
+
/** Output only. The time stamp this was previously updated. This represents the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that policy. */
|
|
112
|
+
updateTime?: string;
|
|
113
|
+
}
|
|
114
|
+
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRule {
|
|
115
|
+
/** Setting this to true means that all values are allowed. This field can be set only in policies for list constraints. */
|
|
116
|
+
allowAll?: boolean;
|
|
117
|
+
/** A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')". */
|
|
118
|
+
condition?: GoogleTypeExpr;
|
|
119
|
+
/** Setting this to true means that all values are denied. This field can be set only in policies for list constraints. */
|
|
120
|
+
denyAll?: boolean;
|
|
121
|
+
/** If `true`, then the policy is enforced. If `false`, then any configuration is acceptable. This field can be set only in policies for boolean constraints. */
|
|
122
|
+
enforce?: boolean;
|
|
123
|
+
/** List of values to be used for this policy rule. This field can be set only in policies for list constraints. */
|
|
124
|
+
values?: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues;
|
|
125
|
+
}
|
|
126
|
+
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues {
|
|
127
|
+
/** List of values allowed at this resource. */
|
|
128
|
+
allowedValues?: string[];
|
|
129
|
+
/** List of values denied at this resource. */
|
|
130
|
+
deniedValues?: string[];
|
|
131
|
+
}
|
|
132
|
+
interface GoogleProtobufEmpty {}
|
|
133
|
+
interface GoogleTypeExpr {
|
|
134
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
135
|
+
description?: string;
|
|
136
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
137
|
+
expression?: string;
|
|
138
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
139
|
+
location?: string;
|
|
140
|
+
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
|
141
|
+
title?: string;
|
|
142
|
+
}
|
|
143
|
+
interface ConstraintsResource {
|
|
144
|
+
/** Lists constraints that could be applied on the specified resource. */
|
|
145
|
+
list(request?: {
|
|
146
|
+
/** V1 error format. */
|
|
147
|
+
'$.xgafv'?: string;
|
|
148
|
+
/** OAuth access token. */
|
|
149
|
+
access_token?: string;
|
|
150
|
+
/** Data format for response. */
|
|
151
|
+
alt?: string;
|
|
152
|
+
/** JSONP */
|
|
153
|
+
callback?: string;
|
|
154
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
155
|
+
fields?: string;
|
|
156
|
+
/** 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. */
|
|
157
|
+
key?: string;
|
|
158
|
+
/** OAuth 2.0 token for the current user. */
|
|
159
|
+
oauth_token?: string;
|
|
160
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
161
|
+
pageSize?: number;
|
|
162
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
163
|
+
pageToken?: string;
|
|
164
|
+
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
165
|
+
parent: string;
|
|
166
|
+
/** Returns response with indentations and line breaks. */
|
|
167
|
+
prettyPrint?: boolean;
|
|
168
|
+
/** 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. */
|
|
169
|
+
quotaUser?: string;
|
|
170
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
171
|
+
upload_protocol?: string;
|
|
172
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
173
|
+
uploadType?: string;
|
|
174
|
+
}): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
|
|
175
|
+
}
|
|
176
|
+
interface PoliciesResource {
|
|
177
|
+
/** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
|
|
178
|
+
create(request: {
|
|
179
|
+
/** V1 error format. */
|
|
180
|
+
'$.xgafv'?: string;
|
|
181
|
+
/** OAuth access token. */
|
|
182
|
+
access_token?: string;
|
|
183
|
+
/** Data format for response. */
|
|
184
|
+
alt?: string;
|
|
185
|
+
/** JSONP */
|
|
186
|
+
callback?: string;
|
|
187
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
188
|
+
fields?: string;
|
|
189
|
+
/** 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. */
|
|
190
|
+
key?: string;
|
|
191
|
+
/** OAuth 2.0 token for the current user. */
|
|
192
|
+
oauth_token?: string;
|
|
193
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
194
|
+
parent: string;
|
|
195
|
+
/** Returns response with indentations and line breaks. */
|
|
196
|
+
prettyPrint?: boolean;
|
|
197
|
+
/** 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. */
|
|
198
|
+
quotaUser?: string;
|
|
199
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
200
|
+
upload_protocol?: string;
|
|
201
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
202
|
+
uploadType?: string;
|
|
203
|
+
/** Request body */
|
|
204
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
205
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
206
|
+
create(
|
|
207
|
+
request: {
|
|
208
|
+
/** V1 error format. */
|
|
209
|
+
'$.xgafv'?: string;
|
|
210
|
+
/** OAuth access token. */
|
|
211
|
+
access_token?: string;
|
|
212
|
+
/** Data format for response. */
|
|
213
|
+
alt?: string;
|
|
214
|
+
/** JSONP */
|
|
215
|
+
callback?: string;
|
|
216
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
217
|
+
fields?: string;
|
|
218
|
+
/** 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. */
|
|
219
|
+
key?: string;
|
|
220
|
+
/** OAuth 2.0 token for the current user. */
|
|
221
|
+
oauth_token?: string;
|
|
222
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
223
|
+
parent: string;
|
|
224
|
+
/** Returns response with indentations and line breaks. */
|
|
225
|
+
prettyPrint?: boolean;
|
|
226
|
+
/** 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. */
|
|
227
|
+
quotaUser?: string;
|
|
228
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
229
|
+
upload_protocol?: string;
|
|
230
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
231
|
+
uploadType?: string;
|
|
232
|
+
},
|
|
233
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
234
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
235
|
+
/** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
|
|
236
|
+
delete(request?: {
|
|
237
|
+
/** V1 error format. */
|
|
238
|
+
'$.xgafv'?: string;
|
|
239
|
+
/** OAuth access token. */
|
|
240
|
+
access_token?: string;
|
|
241
|
+
/** Data format for response. */
|
|
242
|
+
alt?: string;
|
|
243
|
+
/** JSONP */
|
|
244
|
+
callback?: string;
|
|
245
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
246
|
+
fields?: string;
|
|
247
|
+
/** 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. */
|
|
248
|
+
key?: string;
|
|
249
|
+
/** Required. Name of the policy to delete. See the policy entry for naming rules. */
|
|
250
|
+
name: string;
|
|
251
|
+
/** OAuth 2.0 token for the current user. */
|
|
252
|
+
oauth_token?: string;
|
|
253
|
+
/** Returns response with indentations and line breaks. */
|
|
254
|
+
prettyPrint?: boolean;
|
|
255
|
+
/** 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. */
|
|
256
|
+
quotaUser?: string;
|
|
257
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
258
|
+
upload_protocol?: string;
|
|
259
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
260
|
+
uploadType?: string;
|
|
261
|
+
}): Request<{}>;
|
|
262
|
+
/** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
|
|
263
|
+
get(request?: {
|
|
264
|
+
/** V1 error format. */
|
|
265
|
+
'$.xgafv'?: string;
|
|
266
|
+
/** OAuth access token. */
|
|
267
|
+
access_token?: string;
|
|
268
|
+
/** Data format for response. */
|
|
269
|
+
alt?: string;
|
|
270
|
+
/** JSONP */
|
|
271
|
+
callback?: string;
|
|
272
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
273
|
+
fields?: string;
|
|
274
|
+
/** 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. */
|
|
275
|
+
key?: string;
|
|
276
|
+
/** Required. Resource name of the policy. See Policy for naming requirements. */
|
|
277
|
+
name: string;
|
|
278
|
+
/** OAuth 2.0 token for the current user. */
|
|
279
|
+
oauth_token?: string;
|
|
280
|
+
/** Returns response with indentations and line breaks. */
|
|
281
|
+
prettyPrint?: boolean;
|
|
282
|
+
/** 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. */
|
|
283
|
+
quotaUser?: string;
|
|
284
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
285
|
+
upload_protocol?: string;
|
|
286
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
287
|
+
uploadType?: string;
|
|
288
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
289
|
+
/** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
|
|
290
|
+
getEffectivePolicy(request?: {
|
|
291
|
+
/** V1 error format. */
|
|
292
|
+
'$.xgafv'?: string;
|
|
293
|
+
/** OAuth access token. */
|
|
294
|
+
access_token?: string;
|
|
295
|
+
/** Data format for response. */
|
|
296
|
+
alt?: string;
|
|
297
|
+
/** JSONP */
|
|
298
|
+
callback?: string;
|
|
299
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
300
|
+
fields?: string;
|
|
301
|
+
/** 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. */
|
|
302
|
+
key?: string;
|
|
303
|
+
/** Required. The effective policy to compute. See Policy for naming requirements. */
|
|
304
|
+
name: string;
|
|
305
|
+
/** OAuth 2.0 token for the current user. */
|
|
306
|
+
oauth_token?: string;
|
|
307
|
+
/** Returns response with indentations and line breaks. */
|
|
308
|
+
prettyPrint?: boolean;
|
|
309
|
+
/** 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. */
|
|
310
|
+
quotaUser?: string;
|
|
311
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
312
|
+
upload_protocol?: string;
|
|
313
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
314
|
+
uploadType?: string;
|
|
315
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
316
|
+
/** Retrieves all of the policies that exist on a particular resource. */
|
|
317
|
+
list(request?: {
|
|
318
|
+
/** V1 error format. */
|
|
319
|
+
'$.xgafv'?: string;
|
|
320
|
+
/** OAuth access token. */
|
|
321
|
+
access_token?: string;
|
|
322
|
+
/** Data format for response. */
|
|
323
|
+
alt?: string;
|
|
324
|
+
/** JSONP */
|
|
325
|
+
callback?: string;
|
|
326
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
327
|
+
fields?: string;
|
|
328
|
+
/** 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. */
|
|
329
|
+
key?: string;
|
|
330
|
+
/** OAuth 2.0 token for the current user. */
|
|
331
|
+
oauth_token?: string;
|
|
332
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
333
|
+
pageSize?: number;
|
|
334
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
335
|
+
pageToken?: string;
|
|
336
|
+
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
337
|
+
parent: string;
|
|
338
|
+
/** Returns response with indentations and line breaks. */
|
|
339
|
+
prettyPrint?: boolean;
|
|
340
|
+
/** 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. */
|
|
341
|
+
quotaUser?: string;
|
|
342
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
343
|
+
upload_protocol?: string;
|
|
344
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
345
|
+
uploadType?: string;
|
|
346
|
+
}): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
|
|
347
|
+
/** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields. */
|
|
348
|
+
patch(request: {
|
|
349
|
+
/** V1 error format. */
|
|
350
|
+
'$.xgafv'?: string;
|
|
351
|
+
/** OAuth access token. */
|
|
352
|
+
access_token?: string;
|
|
353
|
+
/** Data format for response. */
|
|
354
|
+
alt?: string;
|
|
355
|
+
/** JSONP */
|
|
356
|
+
callback?: string;
|
|
357
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
358
|
+
fields?: string;
|
|
359
|
+
/** 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. */
|
|
360
|
+
key?: string;
|
|
361
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
362
|
+
name: string;
|
|
363
|
+
/** OAuth 2.0 token for the current user. */
|
|
364
|
+
oauth_token?: string;
|
|
365
|
+
/** Returns response with indentations and line breaks. */
|
|
366
|
+
prettyPrint?: boolean;
|
|
367
|
+
/** 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. */
|
|
368
|
+
quotaUser?: string;
|
|
369
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
370
|
+
updateMask?: string;
|
|
371
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
372
|
+
upload_protocol?: string;
|
|
373
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
374
|
+
uploadType?: string;
|
|
375
|
+
/** Request body */
|
|
376
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
377
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
378
|
+
patch(
|
|
379
|
+
request: {
|
|
380
|
+
/** V1 error format. */
|
|
381
|
+
'$.xgafv'?: string;
|
|
382
|
+
/** OAuth access token. */
|
|
383
|
+
access_token?: string;
|
|
384
|
+
/** Data format for response. */
|
|
385
|
+
alt?: string;
|
|
386
|
+
/** JSONP */
|
|
387
|
+
callback?: string;
|
|
388
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
389
|
+
fields?: string;
|
|
390
|
+
/** 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. */
|
|
391
|
+
key?: string;
|
|
392
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
393
|
+
name: string;
|
|
394
|
+
/** OAuth 2.0 token for the current user. */
|
|
395
|
+
oauth_token?: string;
|
|
396
|
+
/** Returns response with indentations and line breaks. */
|
|
397
|
+
prettyPrint?: boolean;
|
|
398
|
+
/** 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. */
|
|
399
|
+
quotaUser?: string;
|
|
400
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
401
|
+
updateMask?: string;
|
|
402
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
403
|
+
upload_protocol?: string;
|
|
404
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
405
|
+
uploadType?: string;
|
|
406
|
+
},
|
|
407
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
408
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
409
|
+
}
|
|
410
|
+
interface FoldersResource {
|
|
411
|
+
constraints: ConstraintsResource;
|
|
412
|
+
policies: PoliciesResource;
|
|
413
|
+
}
|
|
414
|
+
interface ConstraintsResource {
|
|
415
|
+
/** Lists constraints that could be applied on the specified resource. */
|
|
416
|
+
list(request?: {
|
|
417
|
+
/** V1 error format. */
|
|
418
|
+
'$.xgafv'?: string;
|
|
419
|
+
/** OAuth access token. */
|
|
420
|
+
access_token?: string;
|
|
421
|
+
/** Data format for response. */
|
|
422
|
+
alt?: string;
|
|
423
|
+
/** JSONP */
|
|
424
|
+
callback?: string;
|
|
425
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
426
|
+
fields?: string;
|
|
427
|
+
/** 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. */
|
|
428
|
+
key?: string;
|
|
429
|
+
/** OAuth 2.0 token for the current user. */
|
|
430
|
+
oauth_token?: string;
|
|
431
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
432
|
+
pageSize?: number;
|
|
433
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
434
|
+
pageToken?: string;
|
|
435
|
+
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
436
|
+
parent: string;
|
|
437
|
+
/** Returns response with indentations and line breaks. */
|
|
438
|
+
prettyPrint?: boolean;
|
|
439
|
+
/** 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. */
|
|
440
|
+
quotaUser?: string;
|
|
441
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
442
|
+
upload_protocol?: string;
|
|
443
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
444
|
+
uploadType?: string;
|
|
445
|
+
}): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
|
|
446
|
+
}
|
|
447
|
+
interface CustomConstraintsResource {
|
|
448
|
+
/** Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization. */
|
|
449
|
+
create(request: {
|
|
450
|
+
/** V1 error format. */
|
|
451
|
+
'$.xgafv'?: string;
|
|
452
|
+
/** OAuth access token. */
|
|
453
|
+
access_token?: string;
|
|
454
|
+
/** Data format for response. */
|
|
455
|
+
alt?: string;
|
|
456
|
+
/** JSONP */
|
|
457
|
+
callback?: string;
|
|
458
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
459
|
+
fields?: string;
|
|
460
|
+
/** 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. */
|
|
461
|
+
key?: string;
|
|
462
|
+
/** OAuth 2.0 token for the current user. */
|
|
463
|
+
oauth_token?: string;
|
|
464
|
+
/** Required. Must be in the following form: * `organizations/{organization_id}` */
|
|
465
|
+
parent: string;
|
|
466
|
+
/** Returns response with indentations and line breaks. */
|
|
467
|
+
prettyPrint?: boolean;
|
|
468
|
+
/** 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. */
|
|
469
|
+
quotaUser?: string;
|
|
470
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
471
|
+
upload_protocol?: string;
|
|
472
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
473
|
+
uploadType?: string;
|
|
474
|
+
/** Request body */
|
|
475
|
+
resource: GoogleCloudOrgpolicyV2CustomConstraint;
|
|
476
|
+
}): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
|
|
477
|
+
create(
|
|
478
|
+
request: {
|
|
479
|
+
/** V1 error format. */
|
|
480
|
+
'$.xgafv'?: string;
|
|
481
|
+
/** OAuth access token. */
|
|
482
|
+
access_token?: string;
|
|
483
|
+
/** Data format for response. */
|
|
484
|
+
alt?: string;
|
|
485
|
+
/** JSONP */
|
|
486
|
+
callback?: string;
|
|
487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
488
|
+
fields?: string;
|
|
489
|
+
/** 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. */
|
|
490
|
+
key?: string;
|
|
491
|
+
/** OAuth 2.0 token for the current user. */
|
|
492
|
+
oauth_token?: string;
|
|
493
|
+
/** Required. Must be in the following form: * `organizations/{organization_id}` */
|
|
494
|
+
parent: string;
|
|
495
|
+
/** Returns response with indentations and line breaks. */
|
|
496
|
+
prettyPrint?: boolean;
|
|
497
|
+
/** 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. */
|
|
498
|
+
quotaUser?: string;
|
|
499
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
500
|
+
upload_protocol?: string;
|
|
501
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
502
|
+
uploadType?: string;
|
|
503
|
+
},
|
|
504
|
+
body: GoogleCloudOrgpolicyV2CustomConstraint
|
|
505
|
+
): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
|
|
506
|
+
/** Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. */
|
|
507
|
+
delete(request?: {
|
|
508
|
+
/** V1 error format. */
|
|
509
|
+
'$.xgafv'?: string;
|
|
510
|
+
/** OAuth access token. */
|
|
511
|
+
access_token?: string;
|
|
512
|
+
/** Data format for response. */
|
|
513
|
+
alt?: string;
|
|
514
|
+
/** JSONP */
|
|
515
|
+
callback?: string;
|
|
516
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
517
|
+
fields?: string;
|
|
518
|
+
/** 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. */
|
|
519
|
+
key?: string;
|
|
520
|
+
/** Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules. */
|
|
521
|
+
name: string;
|
|
522
|
+
/** OAuth 2.0 token for the current user. */
|
|
523
|
+
oauth_token?: string;
|
|
524
|
+
/** Returns response with indentations and line breaks. */
|
|
525
|
+
prettyPrint?: boolean;
|
|
526
|
+
/** 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. */
|
|
527
|
+
quotaUser?: string;
|
|
528
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
529
|
+
upload_protocol?: string;
|
|
530
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
531
|
+
uploadType?: string;
|
|
532
|
+
}): Request<{}>;
|
|
533
|
+
/** Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist. */
|
|
534
|
+
get(request?: {
|
|
535
|
+
/** V1 error format. */
|
|
536
|
+
'$.xgafv'?: string;
|
|
537
|
+
/** OAuth access token. */
|
|
538
|
+
access_token?: string;
|
|
539
|
+
/** Data format for response. */
|
|
540
|
+
alt?: string;
|
|
541
|
+
/** JSONP */
|
|
542
|
+
callback?: string;
|
|
543
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
544
|
+
fields?: string;
|
|
545
|
+
/** 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. */
|
|
546
|
+
key?: string;
|
|
547
|
+
/** Required. Resource name of the custom constraint. See the custom constraint entry for naming requirements. */
|
|
548
|
+
name: string;
|
|
549
|
+
/** OAuth 2.0 token for the current user. */
|
|
550
|
+
oauth_token?: string;
|
|
551
|
+
/** Returns response with indentations and line breaks. */
|
|
552
|
+
prettyPrint?: boolean;
|
|
553
|
+
/** 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. */
|
|
554
|
+
quotaUser?: string;
|
|
555
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
556
|
+
upload_protocol?: string;
|
|
557
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
558
|
+
uploadType?: string;
|
|
559
|
+
}): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
|
|
560
|
+
/** Retrieves all of the custom constraints that exist on a particular organization resource. */
|
|
561
|
+
list(request?: {
|
|
562
|
+
/** V1 error format. */
|
|
563
|
+
'$.xgafv'?: string;
|
|
564
|
+
/** OAuth access token. */
|
|
565
|
+
access_token?: string;
|
|
566
|
+
/** Data format for response. */
|
|
567
|
+
alt?: string;
|
|
568
|
+
/** JSONP */
|
|
569
|
+
callback?: string;
|
|
570
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
571
|
+
fields?: string;
|
|
572
|
+
/** 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. */
|
|
573
|
+
key?: string;
|
|
574
|
+
/** OAuth 2.0 token for the current user. */
|
|
575
|
+
oauth_token?: string;
|
|
576
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
577
|
+
pageSize?: number;
|
|
578
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
579
|
+
pageToken?: string;
|
|
580
|
+
/** Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}` */
|
|
581
|
+
parent: string;
|
|
582
|
+
/** Returns response with indentations and line breaks. */
|
|
583
|
+
prettyPrint?: boolean;
|
|
584
|
+
/** 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. */
|
|
585
|
+
quotaUser?: string;
|
|
586
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
587
|
+
upload_protocol?: string;
|
|
588
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
589
|
+
uploadType?: string;
|
|
590
|
+
}): Request<GoogleCloudOrgpolicyV2ListCustomConstraintsResponse>;
|
|
591
|
+
/** Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields. */
|
|
592
|
+
patch(request: {
|
|
593
|
+
/** V1 error format. */
|
|
594
|
+
'$.xgafv'?: string;
|
|
595
|
+
/** OAuth access token. */
|
|
596
|
+
access_token?: string;
|
|
597
|
+
/** Data format for response. */
|
|
598
|
+
alt?: string;
|
|
599
|
+
/** JSONP */
|
|
600
|
+
callback?: string;
|
|
601
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
602
|
+
fields?: string;
|
|
603
|
+
/** 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. */
|
|
604
|
+
key?: string;
|
|
605
|
+
/** Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted. */
|
|
606
|
+
name: string;
|
|
607
|
+
/** OAuth 2.0 token for the current user. */
|
|
608
|
+
oauth_token?: string;
|
|
609
|
+
/** Returns response with indentations and line breaks. */
|
|
610
|
+
prettyPrint?: boolean;
|
|
611
|
+
/** 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. */
|
|
612
|
+
quotaUser?: string;
|
|
613
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
614
|
+
upload_protocol?: string;
|
|
615
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
616
|
+
uploadType?: string;
|
|
617
|
+
/** Request body */
|
|
618
|
+
resource: GoogleCloudOrgpolicyV2CustomConstraint;
|
|
619
|
+
}): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
|
|
620
|
+
patch(
|
|
621
|
+
request: {
|
|
622
|
+
/** V1 error format. */
|
|
623
|
+
'$.xgafv'?: string;
|
|
624
|
+
/** OAuth access token. */
|
|
625
|
+
access_token?: string;
|
|
626
|
+
/** Data format for response. */
|
|
627
|
+
alt?: string;
|
|
628
|
+
/** JSONP */
|
|
629
|
+
callback?: string;
|
|
630
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
631
|
+
fields?: string;
|
|
632
|
+
/** 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. */
|
|
633
|
+
key?: string;
|
|
634
|
+
/** Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted. */
|
|
635
|
+
name: string;
|
|
636
|
+
/** OAuth 2.0 token for the current user. */
|
|
637
|
+
oauth_token?: string;
|
|
638
|
+
/** Returns response with indentations and line breaks. */
|
|
639
|
+
prettyPrint?: boolean;
|
|
640
|
+
/** 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. */
|
|
641
|
+
quotaUser?: string;
|
|
642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
643
|
+
upload_protocol?: string;
|
|
644
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
645
|
+
uploadType?: string;
|
|
646
|
+
},
|
|
647
|
+
body: GoogleCloudOrgpolicyV2CustomConstraint
|
|
648
|
+
): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
|
|
649
|
+
}
|
|
650
|
+
interface PoliciesResource {
|
|
651
|
+
/** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
|
|
652
|
+
create(request: {
|
|
653
|
+
/** V1 error format. */
|
|
654
|
+
'$.xgafv'?: string;
|
|
655
|
+
/** OAuth access token. */
|
|
656
|
+
access_token?: string;
|
|
657
|
+
/** Data format for response. */
|
|
658
|
+
alt?: string;
|
|
659
|
+
/** JSONP */
|
|
660
|
+
callback?: string;
|
|
661
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
662
|
+
fields?: string;
|
|
663
|
+
/** 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. */
|
|
664
|
+
key?: string;
|
|
665
|
+
/** OAuth 2.0 token for the current user. */
|
|
666
|
+
oauth_token?: string;
|
|
667
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
668
|
+
parent: string;
|
|
669
|
+
/** Returns response with indentations and line breaks. */
|
|
670
|
+
prettyPrint?: boolean;
|
|
671
|
+
/** 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. */
|
|
672
|
+
quotaUser?: string;
|
|
673
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
674
|
+
upload_protocol?: string;
|
|
675
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
676
|
+
uploadType?: string;
|
|
677
|
+
/** Request body */
|
|
678
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
679
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
680
|
+
create(
|
|
681
|
+
request: {
|
|
682
|
+
/** V1 error format. */
|
|
683
|
+
'$.xgafv'?: string;
|
|
684
|
+
/** OAuth access token. */
|
|
685
|
+
access_token?: string;
|
|
686
|
+
/** Data format for response. */
|
|
687
|
+
alt?: string;
|
|
688
|
+
/** JSONP */
|
|
689
|
+
callback?: string;
|
|
690
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
691
|
+
fields?: string;
|
|
692
|
+
/** 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. */
|
|
693
|
+
key?: string;
|
|
694
|
+
/** OAuth 2.0 token for the current user. */
|
|
695
|
+
oauth_token?: string;
|
|
696
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
697
|
+
parent: string;
|
|
698
|
+
/** Returns response with indentations and line breaks. */
|
|
699
|
+
prettyPrint?: boolean;
|
|
700
|
+
/** 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. */
|
|
701
|
+
quotaUser?: string;
|
|
702
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
703
|
+
upload_protocol?: string;
|
|
704
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
705
|
+
uploadType?: string;
|
|
706
|
+
},
|
|
707
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
708
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
709
|
+
/** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
|
|
710
|
+
delete(request?: {
|
|
711
|
+
/** V1 error format. */
|
|
712
|
+
'$.xgafv'?: string;
|
|
713
|
+
/** OAuth access token. */
|
|
714
|
+
access_token?: string;
|
|
715
|
+
/** Data format for response. */
|
|
716
|
+
alt?: string;
|
|
717
|
+
/** JSONP */
|
|
718
|
+
callback?: string;
|
|
719
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
720
|
+
fields?: string;
|
|
721
|
+
/** 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. */
|
|
722
|
+
key?: string;
|
|
723
|
+
/** Required. Name of the policy to delete. See the policy entry for naming rules. */
|
|
724
|
+
name: string;
|
|
725
|
+
/** OAuth 2.0 token for the current user. */
|
|
726
|
+
oauth_token?: string;
|
|
727
|
+
/** Returns response with indentations and line breaks. */
|
|
728
|
+
prettyPrint?: boolean;
|
|
729
|
+
/** 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. */
|
|
730
|
+
quotaUser?: string;
|
|
731
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
732
|
+
upload_protocol?: string;
|
|
733
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
734
|
+
uploadType?: string;
|
|
735
|
+
}): Request<{}>;
|
|
736
|
+
/** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
|
|
737
|
+
get(request?: {
|
|
738
|
+
/** V1 error format. */
|
|
739
|
+
'$.xgafv'?: string;
|
|
740
|
+
/** OAuth access token. */
|
|
741
|
+
access_token?: string;
|
|
742
|
+
/** Data format for response. */
|
|
743
|
+
alt?: string;
|
|
744
|
+
/** JSONP */
|
|
745
|
+
callback?: string;
|
|
746
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
747
|
+
fields?: string;
|
|
748
|
+
/** 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. */
|
|
749
|
+
key?: string;
|
|
750
|
+
/** Required. Resource name of the policy. See Policy for naming requirements. */
|
|
751
|
+
name: string;
|
|
752
|
+
/** OAuth 2.0 token for the current user. */
|
|
753
|
+
oauth_token?: string;
|
|
754
|
+
/** Returns response with indentations and line breaks. */
|
|
755
|
+
prettyPrint?: boolean;
|
|
756
|
+
/** 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. */
|
|
757
|
+
quotaUser?: string;
|
|
758
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
759
|
+
upload_protocol?: string;
|
|
760
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
761
|
+
uploadType?: string;
|
|
762
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
763
|
+
/** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
|
|
764
|
+
getEffectivePolicy(request?: {
|
|
765
|
+
/** V1 error format. */
|
|
766
|
+
'$.xgafv'?: string;
|
|
767
|
+
/** OAuth access token. */
|
|
768
|
+
access_token?: string;
|
|
769
|
+
/** Data format for response. */
|
|
770
|
+
alt?: string;
|
|
771
|
+
/** JSONP */
|
|
772
|
+
callback?: string;
|
|
773
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
774
|
+
fields?: string;
|
|
775
|
+
/** 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. */
|
|
776
|
+
key?: string;
|
|
777
|
+
/** Required. The effective policy to compute. See Policy for naming requirements. */
|
|
778
|
+
name: string;
|
|
779
|
+
/** OAuth 2.0 token for the current user. */
|
|
780
|
+
oauth_token?: string;
|
|
781
|
+
/** Returns response with indentations and line breaks. */
|
|
782
|
+
prettyPrint?: boolean;
|
|
783
|
+
/** 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. */
|
|
784
|
+
quotaUser?: string;
|
|
785
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
786
|
+
upload_protocol?: string;
|
|
787
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
788
|
+
uploadType?: string;
|
|
789
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
790
|
+
/** Retrieves all of the policies that exist on a particular resource. */
|
|
791
|
+
list(request?: {
|
|
792
|
+
/** V1 error format. */
|
|
793
|
+
'$.xgafv'?: string;
|
|
794
|
+
/** OAuth access token. */
|
|
795
|
+
access_token?: string;
|
|
796
|
+
/** Data format for response. */
|
|
797
|
+
alt?: string;
|
|
798
|
+
/** JSONP */
|
|
799
|
+
callback?: string;
|
|
800
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
801
|
+
fields?: string;
|
|
802
|
+
/** 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. */
|
|
803
|
+
key?: string;
|
|
804
|
+
/** OAuth 2.0 token for the current user. */
|
|
805
|
+
oauth_token?: string;
|
|
806
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
807
|
+
pageSize?: number;
|
|
808
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
809
|
+
pageToken?: string;
|
|
810
|
+
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
811
|
+
parent: string;
|
|
812
|
+
/** Returns response with indentations and line breaks. */
|
|
813
|
+
prettyPrint?: boolean;
|
|
814
|
+
/** 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. */
|
|
815
|
+
quotaUser?: string;
|
|
816
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
817
|
+
upload_protocol?: string;
|
|
818
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
819
|
+
uploadType?: string;
|
|
820
|
+
}): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
|
|
821
|
+
/** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields. */
|
|
822
|
+
patch(request: {
|
|
823
|
+
/** V1 error format. */
|
|
824
|
+
'$.xgafv'?: string;
|
|
825
|
+
/** OAuth access token. */
|
|
826
|
+
access_token?: string;
|
|
827
|
+
/** Data format for response. */
|
|
828
|
+
alt?: string;
|
|
829
|
+
/** JSONP */
|
|
830
|
+
callback?: string;
|
|
831
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
832
|
+
fields?: string;
|
|
833
|
+
/** 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. */
|
|
834
|
+
key?: string;
|
|
835
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
836
|
+
name: string;
|
|
837
|
+
/** OAuth 2.0 token for the current user. */
|
|
838
|
+
oauth_token?: string;
|
|
839
|
+
/** Returns response with indentations and line breaks. */
|
|
840
|
+
prettyPrint?: boolean;
|
|
841
|
+
/** 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. */
|
|
842
|
+
quotaUser?: string;
|
|
843
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
844
|
+
updateMask?: string;
|
|
845
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
846
|
+
upload_protocol?: string;
|
|
847
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
848
|
+
uploadType?: string;
|
|
849
|
+
/** Request body */
|
|
850
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
851
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
852
|
+
patch(
|
|
853
|
+
request: {
|
|
854
|
+
/** V1 error format. */
|
|
855
|
+
'$.xgafv'?: string;
|
|
856
|
+
/** OAuth access token. */
|
|
857
|
+
access_token?: string;
|
|
858
|
+
/** Data format for response. */
|
|
859
|
+
alt?: string;
|
|
860
|
+
/** JSONP */
|
|
861
|
+
callback?: string;
|
|
862
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
863
|
+
fields?: string;
|
|
864
|
+
/** 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. */
|
|
865
|
+
key?: string;
|
|
866
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
867
|
+
name: string;
|
|
868
|
+
/** OAuth 2.0 token for the current user. */
|
|
869
|
+
oauth_token?: string;
|
|
870
|
+
/** Returns response with indentations and line breaks. */
|
|
871
|
+
prettyPrint?: boolean;
|
|
872
|
+
/** 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. */
|
|
873
|
+
quotaUser?: string;
|
|
874
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
875
|
+
updateMask?: string;
|
|
876
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
877
|
+
upload_protocol?: string;
|
|
878
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
879
|
+
uploadType?: string;
|
|
880
|
+
},
|
|
881
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
882
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
883
|
+
}
|
|
884
|
+
interface OrganizationsResource {
|
|
885
|
+
constraints: ConstraintsResource;
|
|
886
|
+
customConstraints: CustomConstraintsResource;
|
|
887
|
+
policies: PoliciesResource;
|
|
888
|
+
}
|
|
889
|
+
interface ConstraintsResource {
|
|
890
|
+
/** Lists constraints that could be applied on the specified resource. */
|
|
891
|
+
list(request?: {
|
|
892
|
+
/** V1 error format. */
|
|
893
|
+
'$.xgafv'?: string;
|
|
894
|
+
/** OAuth access token. */
|
|
895
|
+
access_token?: string;
|
|
896
|
+
/** Data format for response. */
|
|
897
|
+
alt?: string;
|
|
898
|
+
/** JSONP */
|
|
899
|
+
callback?: string;
|
|
900
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
901
|
+
fields?: string;
|
|
902
|
+
/** 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. */
|
|
903
|
+
key?: string;
|
|
904
|
+
/** OAuth 2.0 token for the current user. */
|
|
905
|
+
oauth_token?: string;
|
|
906
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
907
|
+
pageSize?: number;
|
|
908
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
909
|
+
pageToken?: string;
|
|
910
|
+
/** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
911
|
+
parent: string;
|
|
912
|
+
/** Returns response with indentations and line breaks. */
|
|
913
|
+
prettyPrint?: boolean;
|
|
914
|
+
/** 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. */
|
|
915
|
+
quotaUser?: string;
|
|
916
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
917
|
+
upload_protocol?: string;
|
|
918
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
919
|
+
uploadType?: string;
|
|
920
|
+
}): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
|
|
921
|
+
}
|
|
922
|
+
interface PoliciesResource {
|
|
923
|
+
/** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
|
|
924
|
+
create(request: {
|
|
925
|
+
/** V1 error format. */
|
|
926
|
+
'$.xgafv'?: string;
|
|
927
|
+
/** OAuth access token. */
|
|
928
|
+
access_token?: string;
|
|
929
|
+
/** Data format for response. */
|
|
930
|
+
alt?: string;
|
|
931
|
+
/** JSONP */
|
|
932
|
+
callback?: string;
|
|
933
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
934
|
+
fields?: string;
|
|
935
|
+
/** 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. */
|
|
936
|
+
key?: string;
|
|
937
|
+
/** OAuth 2.0 token for the current user. */
|
|
938
|
+
oauth_token?: string;
|
|
939
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
940
|
+
parent: string;
|
|
941
|
+
/** Returns response with indentations and line breaks. */
|
|
942
|
+
prettyPrint?: boolean;
|
|
943
|
+
/** 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. */
|
|
944
|
+
quotaUser?: string;
|
|
945
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
946
|
+
upload_protocol?: string;
|
|
947
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
948
|
+
uploadType?: string;
|
|
949
|
+
/** Request body */
|
|
950
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
951
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
952
|
+
create(
|
|
953
|
+
request: {
|
|
954
|
+
/** V1 error format. */
|
|
955
|
+
'$.xgafv'?: string;
|
|
956
|
+
/** OAuth access token. */
|
|
957
|
+
access_token?: string;
|
|
958
|
+
/** Data format for response. */
|
|
959
|
+
alt?: string;
|
|
960
|
+
/** JSONP */
|
|
961
|
+
callback?: string;
|
|
962
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
963
|
+
fields?: string;
|
|
964
|
+
/** 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. */
|
|
965
|
+
key?: string;
|
|
966
|
+
/** OAuth 2.0 token for the current user. */
|
|
967
|
+
oauth_token?: string;
|
|
968
|
+
/** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
969
|
+
parent: string;
|
|
970
|
+
/** Returns response with indentations and line breaks. */
|
|
971
|
+
prettyPrint?: boolean;
|
|
972
|
+
/** 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. */
|
|
973
|
+
quotaUser?: string;
|
|
974
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
975
|
+
upload_protocol?: string;
|
|
976
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
977
|
+
uploadType?: string;
|
|
978
|
+
},
|
|
979
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
980
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
981
|
+
/** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
|
|
982
|
+
delete(request?: {
|
|
983
|
+
/** V1 error format. */
|
|
984
|
+
'$.xgafv'?: string;
|
|
985
|
+
/** OAuth access token. */
|
|
986
|
+
access_token?: string;
|
|
987
|
+
/** Data format for response. */
|
|
988
|
+
alt?: string;
|
|
989
|
+
/** JSONP */
|
|
990
|
+
callback?: string;
|
|
991
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
992
|
+
fields?: string;
|
|
993
|
+
/** 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. */
|
|
994
|
+
key?: string;
|
|
995
|
+
/** Required. Name of the policy to delete. See the policy entry for naming rules. */
|
|
996
|
+
name: string;
|
|
997
|
+
/** OAuth 2.0 token for the current user. */
|
|
998
|
+
oauth_token?: string;
|
|
999
|
+
/** Returns response with indentations and line breaks. */
|
|
1000
|
+
prettyPrint?: boolean;
|
|
1001
|
+
/** 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. */
|
|
1002
|
+
quotaUser?: string;
|
|
1003
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1004
|
+
upload_protocol?: string;
|
|
1005
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1006
|
+
uploadType?: string;
|
|
1007
|
+
}): Request<{}>;
|
|
1008
|
+
/** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
|
|
1009
|
+
get(request?: {
|
|
1010
|
+
/** V1 error format. */
|
|
1011
|
+
'$.xgafv'?: string;
|
|
1012
|
+
/** OAuth access token. */
|
|
1013
|
+
access_token?: string;
|
|
1014
|
+
/** Data format for response. */
|
|
1015
|
+
alt?: string;
|
|
1016
|
+
/** JSONP */
|
|
1017
|
+
callback?: string;
|
|
1018
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1019
|
+
fields?: string;
|
|
1020
|
+
/** 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. */
|
|
1021
|
+
key?: string;
|
|
1022
|
+
/** Required. Resource name of the policy. See Policy for naming requirements. */
|
|
1023
|
+
name: string;
|
|
1024
|
+
/** OAuth 2.0 token for the current user. */
|
|
1025
|
+
oauth_token?: string;
|
|
1026
|
+
/** Returns response with indentations and line breaks. */
|
|
1027
|
+
prettyPrint?: boolean;
|
|
1028
|
+
/** 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. */
|
|
1029
|
+
quotaUser?: string;
|
|
1030
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1031
|
+
upload_protocol?: string;
|
|
1032
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1033
|
+
uploadType?: string;
|
|
1034
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1035
|
+
/** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
|
|
1036
|
+
getEffectivePolicy(request?: {
|
|
1037
|
+
/** V1 error format. */
|
|
1038
|
+
'$.xgafv'?: string;
|
|
1039
|
+
/** OAuth access token. */
|
|
1040
|
+
access_token?: string;
|
|
1041
|
+
/** Data format for response. */
|
|
1042
|
+
alt?: string;
|
|
1043
|
+
/** JSONP */
|
|
1044
|
+
callback?: string;
|
|
1045
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1046
|
+
fields?: string;
|
|
1047
|
+
/** 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. */
|
|
1048
|
+
key?: string;
|
|
1049
|
+
/** Required. The effective policy to compute. See Policy for naming requirements. */
|
|
1050
|
+
name: string;
|
|
1051
|
+
/** OAuth 2.0 token for the current user. */
|
|
1052
|
+
oauth_token?: string;
|
|
1053
|
+
/** Returns response with indentations and line breaks. */
|
|
1054
|
+
prettyPrint?: boolean;
|
|
1055
|
+
/** 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. */
|
|
1056
|
+
quotaUser?: string;
|
|
1057
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1058
|
+
upload_protocol?: string;
|
|
1059
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1060
|
+
uploadType?: string;
|
|
1061
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1062
|
+
/** Retrieves all of the policies that exist on a particular resource. */
|
|
1063
|
+
list(request?: {
|
|
1064
|
+
/** V1 error format. */
|
|
1065
|
+
'$.xgafv'?: string;
|
|
1066
|
+
/** OAuth access token. */
|
|
1067
|
+
access_token?: string;
|
|
1068
|
+
/** Data format for response. */
|
|
1069
|
+
alt?: string;
|
|
1070
|
+
/** JSONP */
|
|
1071
|
+
callback?: string;
|
|
1072
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1073
|
+
fields?: string;
|
|
1074
|
+
/** 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. */
|
|
1075
|
+
key?: string;
|
|
1076
|
+
/** OAuth 2.0 token for the current user. */
|
|
1077
|
+
oauth_token?: string;
|
|
1078
|
+
/** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
|
|
1079
|
+
pageSize?: number;
|
|
1080
|
+
/** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
|
|
1081
|
+
pageToken?: string;
|
|
1082
|
+
/** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_id}` * `organizations/{organization_id}` */
|
|
1083
|
+
parent: string;
|
|
1084
|
+
/** Returns response with indentations and line breaks. */
|
|
1085
|
+
prettyPrint?: boolean;
|
|
1086
|
+
/** 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. */
|
|
1087
|
+
quotaUser?: string;
|
|
1088
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1089
|
+
upload_protocol?: string;
|
|
1090
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1091
|
+
uploadType?: string;
|
|
1092
|
+
}): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
|
|
1093
|
+
/** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields. */
|
|
1094
|
+
patch(request: {
|
|
1095
|
+
/** V1 error format. */
|
|
1096
|
+
'$.xgafv'?: string;
|
|
1097
|
+
/** OAuth access token. */
|
|
1098
|
+
access_token?: string;
|
|
1099
|
+
/** Data format for response. */
|
|
1100
|
+
alt?: string;
|
|
1101
|
+
/** JSONP */
|
|
1102
|
+
callback?: string;
|
|
1103
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1104
|
+
fields?: string;
|
|
1105
|
+
/** 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. */
|
|
1106
|
+
key?: string;
|
|
1107
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
1108
|
+
name: string;
|
|
1109
|
+
/** OAuth 2.0 token for the current user. */
|
|
1110
|
+
oauth_token?: string;
|
|
1111
|
+
/** Returns response with indentations and line breaks. */
|
|
1112
|
+
prettyPrint?: boolean;
|
|
1113
|
+
/** 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. */
|
|
1114
|
+
quotaUser?: string;
|
|
1115
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1116
|
+
updateMask?: string;
|
|
1117
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1118
|
+
upload_protocol?: string;
|
|
1119
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1120
|
+
uploadType?: string;
|
|
1121
|
+
/** Request body */
|
|
1122
|
+
resource: GoogleCloudOrgpolicyV2Policy;
|
|
1123
|
+
}): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1124
|
+
patch(
|
|
1125
|
+
request: {
|
|
1126
|
+
/** V1 error format. */
|
|
1127
|
+
'$.xgafv'?: string;
|
|
1128
|
+
/** OAuth access token. */
|
|
1129
|
+
access_token?: string;
|
|
1130
|
+
/** Data format for response. */
|
|
1131
|
+
alt?: string;
|
|
1132
|
+
/** JSONP */
|
|
1133
|
+
callback?: string;
|
|
1134
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1135
|
+
fields?: string;
|
|
1136
|
+
/** 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. */
|
|
1137
|
+
key?: string;
|
|
1138
|
+
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
1139
|
+
name: string;
|
|
1140
|
+
/** OAuth 2.0 token for the current user. */
|
|
1141
|
+
oauth_token?: string;
|
|
1142
|
+
/** Returns response with indentations and line breaks. */
|
|
1143
|
+
prettyPrint?: boolean;
|
|
1144
|
+
/** 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. */
|
|
1145
|
+
quotaUser?: string;
|
|
1146
|
+
/** Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. */
|
|
1147
|
+
updateMask?: string;
|
|
1148
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1149
|
+
upload_protocol?: string;
|
|
1150
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1151
|
+
uploadType?: string;
|
|
1152
|
+
},
|
|
1153
|
+
body: GoogleCloudOrgpolicyV2Policy
|
|
1154
|
+
): Request<GoogleCloudOrgpolicyV2Policy>;
|
|
1155
|
+
}
|
|
1156
|
+
interface ProjectsResource {
|
|
1157
|
+
constraints: ConstraintsResource;
|
|
1158
|
+
policies: PoliciesResource;
|
|
1159
|
+
}
|
|
1795
1160
|
|
|
1796
|
-
|
|
1161
|
+
const folders: FoldersResource;
|
|
1797
1162
|
|
|
1798
|
-
|
|
1163
|
+
const organizations: OrganizationsResource;
|
|
1799
1164
|
|
|
1800
|
-
|
|
1801
|
-
|
|
1165
|
+
const projects: ProjectsResource;
|
|
1166
|
+
}
|
|
1802
1167
|
}
|