@maxim_mazurok/gapi.client.cloudresourcemanager-v2 0.1.20260310 → 0.2.20260310
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 +58 -40
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -38,7 +38,11 @@ declare namespace gapi.client {
|
|
|
38
38
|
/** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
|
|
39
39
|
exemptedMembers?: string[];
|
|
40
40
|
/** The log type that this config enables. */
|
|
41
|
-
logType?:
|
|
41
|
+
logType?:
|
|
42
|
+
| 'LOG_TYPE_UNSPECIFIED'
|
|
43
|
+
| 'ADMIN_READ'
|
|
44
|
+
| 'DATA_WRITE'
|
|
45
|
+
| 'DATA_READ';
|
|
42
46
|
}
|
|
43
47
|
interface Binding {
|
|
44
48
|
/** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
@@ -54,7 +58,7 @@ declare namespace gapi.client {
|
|
|
54
58
|
/** The display name of the folder. */
|
|
55
59
|
displayName?: string;
|
|
56
60
|
/** The type of this operation. */
|
|
57
|
-
operationType?:
|
|
61
|
+
operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
|
|
58
62
|
/** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
|
|
59
63
|
sourceParent?: string;
|
|
60
64
|
}
|
|
@@ -64,7 +68,7 @@ declare namespace gapi.client {
|
|
|
64
68
|
/** The display name of the folder. */
|
|
65
69
|
displayName?: string;
|
|
66
70
|
/** The type of this operation. */
|
|
67
|
-
operationType?:
|
|
71
|
+
operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
|
|
68
72
|
/** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
|
|
69
73
|
sourceParent?: string;
|
|
70
74
|
}
|
|
@@ -109,7 +113,10 @@ declare namespace gapi.client {
|
|
|
109
113
|
/** The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: `[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?`. */
|
|
110
114
|
displayName?: string;
|
|
111
115
|
/** Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder. */
|
|
112
|
-
lifecycleState?:
|
|
116
|
+
lifecycleState?:
|
|
117
|
+
| 'LIFECYCLE_STATE_UNSPECIFIED'
|
|
118
|
+
| 'ACTIVE'
|
|
119
|
+
| 'DELETE_REQUESTED';
|
|
113
120
|
/** Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY. */
|
|
114
121
|
managementProject?: string;
|
|
115
122
|
/** Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234". */
|
|
@@ -125,13 +132,24 @@ declare namespace gapi.client {
|
|
|
125
132
|
/** The display name of the folder. */
|
|
126
133
|
displayName?: string;
|
|
127
134
|
/** The type of this operation. */
|
|
128
|
-
operationType?:
|
|
135
|
+
operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
|
|
129
136
|
/** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
|
|
130
137
|
sourceParent?: string;
|
|
131
138
|
}
|
|
132
139
|
interface FolderOperationError {
|
|
133
140
|
/** The type of operation error experienced. */
|
|
134
|
-
errorMessageId?:
|
|
141
|
+
errorMessageId?:
|
|
142
|
+
| 'ERROR_TYPE_UNSPECIFIED'
|
|
143
|
+
| 'ACTIVE_FOLDER_HEIGHT_VIOLATION'
|
|
144
|
+
| 'MAX_CHILD_FOLDERS_VIOLATION'
|
|
145
|
+
| 'FOLDER_NAME_UNIQUENESS_VIOLATION'
|
|
146
|
+
| 'RESOURCE_DELETED_VIOLATION'
|
|
147
|
+
| 'PARENT_DELETED_VIOLATION'
|
|
148
|
+
| 'CYCLE_INTRODUCED_VIOLATION'
|
|
149
|
+
| 'FOLDER_BEING_MOVED_VIOLATION'
|
|
150
|
+
| 'FOLDER_TO_DELETE_NON_EMPTY_VIOLATION'
|
|
151
|
+
| 'DELETED_FOLDER_HEIGHT_VIOLATION'
|
|
152
|
+
| 'FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION';
|
|
135
153
|
}
|
|
136
154
|
interface GetIamPolicyRequest {
|
|
137
155
|
/** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
|
|
@@ -238,11 +256,11 @@ declare namespace gapi.client {
|
|
|
238
256
|
/** Creates a Folder in the resource hierarchy. Returns an Operation which can be used to track the progress of the folder creation workflow. Upon success the Operation.response field will be populated with the created Folder. In order to succeed, the addition of this new Folder must not violate the Folder naming, height or fanout constraints. + The Folder's display_name must be distinct from all other Folders that share its parent. + The addition of the Folder must not cause the active Folder hierarchy to exceed a height of 10. Note, the full active + deleted Folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the Folder must not cause the total number of Folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the CreateFolder request, with status code FAILED_PRECONDITION and an error description. Other folder constraint violations will be communicated in the Operation, with the specific PreconditionFailure returned via the details list in the Operation.error field. The caller must have `resourcemanager.folders.create` permission on the identified parent. */
|
|
239
257
|
create(request: {
|
|
240
258
|
/** V1 error format. */
|
|
241
|
-
'$.xgafv'?:
|
|
259
|
+
'$.xgafv'?: '1' | '2';
|
|
242
260
|
/** OAuth access token. */
|
|
243
261
|
access_token?: string;
|
|
244
262
|
/** Data format for response. */
|
|
245
|
-
alt?:
|
|
263
|
+
alt?: 'json' | 'media' | 'proto';
|
|
246
264
|
/** JSONP */
|
|
247
265
|
callback?: string;
|
|
248
266
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -267,11 +285,11 @@ declare namespace gapi.client {
|
|
|
267
285
|
create(
|
|
268
286
|
request: {
|
|
269
287
|
/** V1 error format. */
|
|
270
|
-
'$.xgafv'?:
|
|
288
|
+
'$.xgafv'?: '1' | '2';
|
|
271
289
|
/** OAuth access token. */
|
|
272
290
|
access_token?: string;
|
|
273
291
|
/** Data format for response. */
|
|
274
|
-
alt?:
|
|
292
|
+
alt?: 'json' | 'media' | 'proto';
|
|
275
293
|
/** JSONP */
|
|
276
294
|
callback?: string;
|
|
277
295
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -296,11 +314,11 @@ declare namespace gapi.client {
|
|
|
296
314
|
/** Requests deletion of a Folder. The Folder is moved into the DELETE_REQUESTED state immediately, and is deleted approximately 30 days later. This method may only be called on an empty Folder in the ACTIVE state, where a Folder is empty if it doesn't contain any Folders or Projects in the ACTIVE state. The caller must have `resourcemanager.folders.delete` permission on the identified folder. */
|
|
297
315
|
delete(request?: {
|
|
298
316
|
/** V1 error format. */
|
|
299
|
-
'$.xgafv'?:
|
|
317
|
+
'$.xgafv'?: '1' | '2';
|
|
300
318
|
/** OAuth access token. */
|
|
301
319
|
access_token?: string;
|
|
302
320
|
/** Data format for response. */
|
|
303
|
-
alt?:
|
|
321
|
+
alt?: 'json' | 'media' | 'proto';
|
|
304
322
|
/** JSONP */
|
|
305
323
|
callback?: string;
|
|
306
324
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -323,11 +341,11 @@ declare namespace gapi.client {
|
|
|
323
341
|
/** Retrieves a Folder identified by the supplied resource name. Valid Folder resource names have the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have `resourcemanager.folders.get` permission on the identified folder. */
|
|
324
342
|
get(request?: {
|
|
325
343
|
/** V1 error format. */
|
|
326
|
-
'$.xgafv'?:
|
|
344
|
+
'$.xgafv'?: '1' | '2';
|
|
327
345
|
/** OAuth access token. */
|
|
328
346
|
access_token?: string;
|
|
329
347
|
/** Data format for response. */
|
|
330
|
-
alt?:
|
|
348
|
+
alt?: 'json' | 'media' | 'proto';
|
|
331
349
|
/** JSONP */
|
|
332
350
|
callback?: string;
|
|
333
351
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -351,11 +369,11 @@ declare namespace gapi.client {
|
|
|
351
369
|
getIamPolicy(
|
|
352
370
|
request: {
|
|
353
371
|
/** V1 error format. */
|
|
354
|
-
'$.xgafv'?:
|
|
372
|
+
'$.xgafv'?: '1' | '2';
|
|
355
373
|
/** OAuth access token. */
|
|
356
374
|
access_token?: string;
|
|
357
375
|
/** Data format for response. */
|
|
358
|
-
alt?:
|
|
376
|
+
alt?: 'json' | 'media' | 'proto';
|
|
359
377
|
/** JSONP */
|
|
360
378
|
callback?: string;
|
|
361
379
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -380,11 +398,11 @@ declare namespace gapi.client {
|
|
|
380
398
|
/** Lists the Folders that are direct descendants of supplied parent resource. List provides a strongly consistent view of the Folders underneath the specified parent resource. List returns Folders sorted based upon the (ascending) lexical ordering of their display_name. The caller must have `resourcemanager.folders.list` permission on the identified parent. */
|
|
381
399
|
list(request?: {
|
|
382
400
|
/** V1 error format. */
|
|
383
|
-
'$.xgafv'?:
|
|
401
|
+
'$.xgafv'?: '1' | '2';
|
|
384
402
|
/** OAuth access token. */
|
|
385
403
|
access_token?: string;
|
|
386
404
|
/** Data format for response. */
|
|
387
|
-
alt?:
|
|
405
|
+
alt?: 'json' | 'media' | 'proto';
|
|
388
406
|
/** JSONP */
|
|
389
407
|
callback?: string;
|
|
390
408
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -413,11 +431,11 @@ declare namespace gapi.client {
|
|
|
413
431
|
/** Moves a Folder under a new resource parent. Returns an Operation which can be used to track the progress of the folder move workflow. Upon success the Operation.response field will be populated with the moved Folder. Upon failure, a FolderOperationError categorizing the failure cause will be returned - if the failure occurs synchronously then the FolderOperationError will be returned via the Status.details field and if it occurs asynchronously then the FolderOperation will be returned via the Operation.error field. In addition, the Operation.metadata field will be populated with a FolderOperation message as an aid to stateless clients. Folder moves will be rejected if they violate either the naming, height or fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.move` permission on the folder's current and proposed new parent. */
|
|
414
432
|
move(request: {
|
|
415
433
|
/** V1 error format. */
|
|
416
|
-
'$.xgafv'?:
|
|
434
|
+
'$.xgafv'?: '1' | '2';
|
|
417
435
|
/** OAuth access token. */
|
|
418
436
|
access_token?: string;
|
|
419
437
|
/** Data format for response. */
|
|
420
|
-
alt?:
|
|
438
|
+
alt?: 'json' | 'media' | 'proto';
|
|
421
439
|
/** JSONP */
|
|
422
440
|
callback?: string;
|
|
423
441
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -442,11 +460,11 @@ declare namespace gapi.client {
|
|
|
442
460
|
move(
|
|
443
461
|
request: {
|
|
444
462
|
/** V1 error format. */
|
|
445
|
-
'$.xgafv'?:
|
|
463
|
+
'$.xgafv'?: '1' | '2';
|
|
446
464
|
/** OAuth access token. */
|
|
447
465
|
access_token?: string;
|
|
448
466
|
/** Data format for response. */
|
|
449
|
-
alt?:
|
|
467
|
+
alt?: 'json' | 'media' | 'proto';
|
|
450
468
|
/** JSONP */
|
|
451
469
|
callback?: string;
|
|
452
470
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -471,11 +489,11 @@ declare namespace gapi.client {
|
|
|
471
489
|
/** Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation. The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\p{L}\p{N}{1,28}[\p{L}\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field. */
|
|
472
490
|
patch(request: {
|
|
473
491
|
/** V1 error format. */
|
|
474
|
-
'$.xgafv'?:
|
|
492
|
+
'$.xgafv'?: '1' | '2';
|
|
475
493
|
/** OAuth access token. */
|
|
476
494
|
access_token?: string;
|
|
477
495
|
/** Data format for response. */
|
|
478
|
-
alt?:
|
|
496
|
+
alt?: 'json' | 'media' | 'proto';
|
|
479
497
|
/** JSONP */
|
|
480
498
|
callback?: string;
|
|
481
499
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -502,11 +520,11 @@ declare namespace gapi.client {
|
|
|
502
520
|
patch(
|
|
503
521
|
request: {
|
|
504
522
|
/** V1 error format. */
|
|
505
|
-
'$.xgafv'?:
|
|
523
|
+
'$.xgafv'?: '1' | '2';
|
|
506
524
|
/** OAuth access token. */
|
|
507
525
|
access_token?: string;
|
|
508
526
|
/** Data format for response. */
|
|
509
|
-
alt?:
|
|
527
|
+
alt?: 'json' | 'media' | 'proto';
|
|
510
528
|
/** JSONP */
|
|
511
529
|
callback?: string;
|
|
512
530
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -533,11 +551,11 @@ declare namespace gapi.client {
|
|
|
533
551
|
/** Search for folders that match specific filter criteria. Search provides an eventually consistent view of the folders a user has access to which meet the specified filter criteria. This will only return folders on which the caller has the permission `resourcemanager.folders.get`. */
|
|
534
552
|
search(request: {
|
|
535
553
|
/** V1 error format. */
|
|
536
|
-
'$.xgafv'?:
|
|
554
|
+
'$.xgafv'?: '1' | '2';
|
|
537
555
|
/** OAuth access token. */
|
|
538
556
|
access_token?: string;
|
|
539
557
|
/** Data format for response. */
|
|
540
|
-
alt?:
|
|
558
|
+
alt?: 'json' | 'media' | 'proto';
|
|
541
559
|
/** JSONP */
|
|
542
560
|
callback?: string;
|
|
543
561
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -560,11 +578,11 @@ declare namespace gapi.client {
|
|
|
560
578
|
search(
|
|
561
579
|
request: {
|
|
562
580
|
/** V1 error format. */
|
|
563
|
-
'$.xgafv'?:
|
|
581
|
+
'$.xgafv'?: '1' | '2';
|
|
564
582
|
/** OAuth access token. */
|
|
565
583
|
access_token?: string;
|
|
566
584
|
/** Data format for response. */
|
|
567
|
-
alt?:
|
|
585
|
+
alt?: 'json' | 'media' | 'proto';
|
|
568
586
|
/** JSONP */
|
|
569
587
|
callback?: string;
|
|
570
588
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -588,11 +606,11 @@ declare namespace gapi.client {
|
|
|
588
606
|
setIamPolicy(
|
|
589
607
|
request: {
|
|
590
608
|
/** V1 error format. */
|
|
591
|
-
'$.xgafv'?:
|
|
609
|
+
'$.xgafv'?: '1' | '2';
|
|
592
610
|
/** OAuth access token. */
|
|
593
611
|
access_token?: string;
|
|
594
612
|
/** Data format for response. */
|
|
595
|
-
alt?:
|
|
613
|
+
alt?: 'json' | 'media' | 'proto';
|
|
596
614
|
/** JSONP */
|
|
597
615
|
callback?: string;
|
|
598
616
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -618,11 +636,11 @@ declare namespace gapi.client {
|
|
|
618
636
|
testIamPermissions(
|
|
619
637
|
request: {
|
|
620
638
|
/** V1 error format. */
|
|
621
|
-
'$.xgafv'?:
|
|
639
|
+
'$.xgafv'?: '1' | '2';
|
|
622
640
|
/** OAuth access token. */
|
|
623
641
|
access_token?: string;
|
|
624
642
|
/** Data format for response. */
|
|
625
|
-
alt?:
|
|
643
|
+
alt?: 'json' | 'media' | 'proto';
|
|
626
644
|
/** JSONP */
|
|
627
645
|
callback?: string;
|
|
628
646
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -647,11 +665,11 @@ declare namespace gapi.client {
|
|
|
647
665
|
/** Cancels the deletion request for a Folder. This method may only be called on a Folder in the DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height and fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder. */
|
|
648
666
|
undelete(request: {
|
|
649
667
|
/** V1 error format. */
|
|
650
|
-
'$.xgafv'?:
|
|
668
|
+
'$.xgafv'?: '1' | '2';
|
|
651
669
|
/** OAuth access token. */
|
|
652
670
|
access_token?: string;
|
|
653
671
|
/** Data format for response. */
|
|
654
|
-
alt?:
|
|
672
|
+
alt?: 'json' | 'media' | 'proto';
|
|
655
673
|
/** JSONP */
|
|
656
674
|
callback?: string;
|
|
657
675
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -676,11 +694,11 @@ declare namespace gapi.client {
|
|
|
676
694
|
undelete(
|
|
677
695
|
request: {
|
|
678
696
|
/** V1 error format. */
|
|
679
|
-
'$.xgafv'?:
|
|
697
|
+
'$.xgafv'?: '1' | '2';
|
|
680
698
|
/** OAuth access token. */
|
|
681
699
|
access_token?: string;
|
|
682
700
|
/** Data format for response. */
|
|
683
|
-
alt?:
|
|
701
|
+
alt?: 'json' | 'media' | 'proto';
|
|
684
702
|
/** JSONP */
|
|
685
703
|
callback?: string;
|
|
686
704
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -707,11 +725,11 @@ declare namespace gapi.client {
|
|
|
707
725
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
708
726
|
get(request?: {
|
|
709
727
|
/** V1 error format. */
|
|
710
|
-
'$.xgafv'?:
|
|
728
|
+
'$.xgafv'?: '1' | '2';
|
|
711
729
|
/** OAuth access token. */
|
|
712
730
|
access_token?: string;
|
|
713
731
|
/** Data format for response. */
|
|
714
|
-
alt?:
|
|
732
|
+
alt?: 'json' | 'media' | 'proto';
|
|
715
733
|
/** JSONP */
|
|
716
734
|
callback?: string;
|
|
717
735
|
/** Selector specifying which fields to include in a partial response. */
|