@maxim_mazurok/gapi.client.cloudresourcemanager-v1beta1 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.
Files changed (2) hide show
  1. package/index.d.ts +71 -49
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -45,7 +45,11 @@ declare namespace gapi.client {
45
45
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
46
46
  exemptedMembers?: string[];
47
47
  /** The log type that this config enables. */
48
- logType?: string;
48
+ logType?:
49
+ | 'LOG_TYPE_UNSPECIFIED'
50
+ | 'ADMIN_READ'
51
+ | 'DATA_WRITE'
52
+ | 'DATA_READ';
49
53
  }
50
54
  interface Binding {
51
55
  /** 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). */
@@ -61,7 +65,7 @@ declare namespace gapi.client {
61
65
  /** The display name of the folder. */
62
66
  displayName?: string;
63
67
  /** The type of this operation. */
64
- operationType?: string;
68
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
65
69
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
66
70
  sourceParent?: string;
67
71
  }
@@ -71,7 +75,7 @@ declare namespace gapi.client {
71
75
  /** The display name of the folder. */
72
76
  displayName?: string;
73
77
  /** The type of this operation. */
74
- operationType?: string;
78
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
75
79
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
76
80
  sourceParent?: string;
77
81
  }
@@ -115,13 +119,24 @@ declare namespace gapi.client {
115
119
  /** The display name of the folder. */
116
120
  displayName?: string;
117
121
  /** The type of this operation. */
118
- operationType?: string;
122
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
119
123
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
120
124
  sourceParent?: string;
121
125
  }
122
126
  interface FolderOperationError {
123
127
  /** The type of operation error experienced. */
124
- errorMessageId?: string;
128
+ errorMessageId?:
129
+ | 'ERROR_TYPE_UNSPECIFIED'
130
+ | 'ACTIVE_FOLDER_HEIGHT_VIOLATION'
131
+ | 'MAX_CHILD_FOLDERS_VIOLATION'
132
+ | 'FOLDER_NAME_UNIQUENESS_VIOLATION'
133
+ | 'RESOURCE_DELETED_VIOLATION'
134
+ | 'PARENT_DELETED_VIOLATION'
135
+ | 'CYCLE_INTRODUCED_VIOLATION'
136
+ | 'FOLDER_BEING_MOVED_VIOLATION'
137
+ | 'FOLDER_TO_DELETE_NON_EMPTY_VIOLATION'
138
+ | 'DELETED_FOLDER_HEIGHT_VIOLATION'
139
+ | 'FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION';
125
140
  }
126
141
  interface GetAncestryRequest {}
127
142
  interface GetAncestryResponse {
@@ -163,7 +178,10 @@ declare namespace gapi.client {
163
178
  /** A human-readable string that refers to the Organization in the Google Cloud console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the G Suite customer that owns the organization. */
164
179
  displayName?: string;
165
180
  /** The organization's current lifecycle state. Assigned by the server. */
166
- lifecycleState?: string;
181
+ lifecycleState?:
182
+ | 'LIFECYCLE_STATE_UNSPECIFIED'
183
+ | 'ACTIVE'
184
+ | 'DELETE_REQUESTED';
167
185
  /** Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". */
168
186
  name?: string;
169
187
  /** An immutable id for the Organization that is assigned on creation. This should be omitted when creating a new Organization. This field is read-only. */
@@ -193,7 +211,11 @@ declare namespace gapi.client {
193
211
  /** The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"environment" : "dev"` Read-write. */
194
212
  labels?: {[P in string]: string};
195
213
  /** The Project lifecycle state. Read-only. */
196
- lifecycleState?: string;
214
+ lifecycleState?:
215
+ | 'LIFECYCLE_STATE_UNSPECIFIED'
216
+ | 'ACTIVE'
217
+ | 'DELETE_REQUESTED'
218
+ | 'DELETE_IN_PROGRESS';
197
219
  /** The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write. */
198
220
  name?: string;
199
221
  /** An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The `parent` can be set on creation or using the `UpdateProject` method; the end user must have the `resourcemanager.projects.create` permission on the parent. Read-write. */
@@ -243,11 +265,11 @@ declare namespace gapi.client {
243
265
  /** Fetches an Organization resource identified by the specified resource name. */
244
266
  get(request?: {
245
267
  /** V1 error format. */
246
- '$.xgafv'?: string;
268
+ '$.xgafv'?: '1' | '2';
247
269
  /** OAuth access token. */
248
270
  access_token?: string;
249
271
  /** Data format for response. */
250
- alt?: string;
272
+ alt?: 'json' | 'media' | 'proto';
251
273
  /** JSONP */
252
274
  callback?: string;
253
275
  /** Selector specifying which fields to include in a partial response. */
@@ -273,11 +295,11 @@ declare namespace gapi.client {
273
295
  getIamPolicy(
274
296
  request: {
275
297
  /** V1 error format. */
276
- '$.xgafv'?: string;
298
+ '$.xgafv'?: '1' | '2';
277
299
  /** OAuth access token. */
278
300
  access_token?: string;
279
301
  /** Data format for response. */
280
- alt?: string;
302
+ alt?: 'json' | 'media' | 'proto';
281
303
  /** JSONP */
282
304
  callback?: string;
283
305
  /** Selector specifying which fields to include in a partial response. */
@@ -302,11 +324,11 @@ declare namespace gapi.client {
302
324
  /** Lists Organization resources that are visible to the user and satisfy the specified filter. This method returns Organizations in an unspecified order. New Organizations do not necessarily appear at the end of the list. */
303
325
  list(request?: {
304
326
  /** V1 error format. */
305
- '$.xgafv'?: string;
327
+ '$.xgafv'?: '1' | '2';
306
328
  /** OAuth access token. */
307
329
  access_token?: string;
308
330
  /** Data format for response. */
309
- alt?: string;
331
+ alt?: 'json' | 'media' | 'proto';
310
332
  /** JSONP */
311
333
  callback?: string;
312
334
  /** Selector specifying which fields to include in a partial response. */
@@ -334,11 +356,11 @@ declare namespace gapi.client {
334
356
  setIamPolicy(
335
357
  request: {
336
358
  /** V1 error format. */
337
- '$.xgafv'?: string;
359
+ '$.xgafv'?: '1' | '2';
338
360
  /** OAuth access token. */
339
361
  access_token?: string;
340
362
  /** Data format for response. */
341
- alt?: string;
363
+ alt?: 'json' | 'media' | 'proto';
342
364
  /** JSONP */
343
365
  callback?: string;
344
366
  /** Selector specifying which fields to include in a partial response. */
@@ -364,11 +386,11 @@ declare namespace gapi.client {
364
386
  testIamPermissions(
365
387
  request: {
366
388
  /** V1 error format. */
367
- '$.xgafv'?: string;
389
+ '$.xgafv'?: '1' | '2';
368
390
  /** OAuth access token. */
369
391
  access_token?: string;
370
392
  /** Data format for response. */
371
- alt?: string;
393
+ alt?: 'json' | 'media' | 'proto';
372
394
  /** JSONP */
373
395
  callback?: string;
374
396
  /** Selector specifying which fields to include in a partial response. */
@@ -393,11 +415,11 @@ declare namespace gapi.client {
393
415
  /** Updates an Organization resource identified by the specified resource name. */
394
416
  update(request: {
395
417
  /** V1 error format. */
396
- '$.xgafv'?: string;
418
+ '$.xgafv'?: '1' | '2';
397
419
  /** OAuth access token. */
398
420
  access_token?: string;
399
421
  /** Data format for response. */
400
- alt?: string;
422
+ alt?: 'json' | 'media' | 'proto';
401
423
  /** JSONP */
402
424
  callback?: string;
403
425
  /** Selector specifying which fields to include in a partial response. */
@@ -422,11 +444,11 @@ declare namespace gapi.client {
422
444
  update(
423
445
  request: {
424
446
  /** V1 error format. */
425
- '$.xgafv'?: string;
447
+ '$.xgafv'?: '1' | '2';
426
448
  /** OAuth access token. */
427
449
  access_token?: string;
428
450
  /** Data format for response. */
429
- alt?: string;
451
+ alt?: 'json' | 'media' | 'proto';
430
452
  /** JSONP */
431
453
  callback?: string;
432
454
  /** Selector specifying which fields to include in a partial response. */
@@ -453,11 +475,11 @@ declare namespace gapi.client {
453
475
  /** Creates a Project resource. Initially, the Project resource is owned by its creator exclusively. The creator can later grant permission to others to read or update the Project. Several APIs are activated automatically for the Project, including Google Cloud Storage. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as project, folder, or organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a project using the [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method. */
454
476
  create(request: {
455
477
  /** V1 error format. */
456
- '$.xgafv'?: string;
478
+ '$.xgafv'?: '1' | '2';
457
479
  /** OAuth access token. */
458
480
  access_token?: string;
459
481
  /** Data format for response. */
460
- alt?: string;
482
+ alt?: 'json' | 'media' | 'proto';
461
483
  /** JSONP */
462
484
  callback?: string;
463
485
  /** Selector specifying which fields to include in a partial response. */
@@ -482,11 +504,11 @@ declare namespace gapi.client {
482
504
  create(
483
505
  request: {
484
506
  /** V1 error format. */
485
- '$.xgafv'?: string;
507
+ '$.xgafv'?: '1' | '2';
486
508
  /** OAuth access token. */
487
509
  access_token?: string;
488
510
  /** Data format for response. */
489
- alt?: string;
511
+ alt?: 'json' | 'media' | 'proto';
490
512
  /** JSONP */
491
513
  callback?: string;
492
514
  /** Selector specifying which fields to include in a partial response. */
@@ -511,11 +533,11 @@ declare namespace gapi.client {
511
533
  /** Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if it has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with GetProject, and the Project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have delete permissions for this Project. */
512
534
  delete(request?: {
513
535
  /** V1 error format. */
514
- '$.xgafv'?: string;
536
+ '$.xgafv'?: '1' | '2';
515
537
  /** OAuth access token. */
516
538
  access_token?: string;
517
539
  /** Data format for response. */
518
- alt?: string;
540
+ alt?: 'json' | 'media' | 'proto';
519
541
  /** JSONP */
520
542
  callback?: string;
521
543
  /** Selector specifying which fields to include in a partial response. */
@@ -538,11 +560,11 @@ declare namespace gapi.client {
538
560
  /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
539
561
  get(request?: {
540
562
  /** V1 error format. */
541
- '$.xgafv'?: string;
563
+ '$.xgafv'?: '1' | '2';
542
564
  /** OAuth access token. */
543
565
  access_token?: string;
544
566
  /** Data format for response. */
545
- alt?: string;
567
+ alt?: 'json' | 'media' | 'proto';
546
568
  /** JSONP */
547
569
  callback?: string;
548
570
  /** Selector specifying which fields to include in a partial response. */
@@ -565,11 +587,11 @@ declare namespace gapi.client {
565
587
  /** Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
566
588
  getAncestry(request: {
567
589
  /** V1 error format. */
568
- '$.xgafv'?: string;
590
+ '$.xgafv'?: '1' | '2';
569
591
  /** OAuth access token. */
570
592
  access_token?: string;
571
593
  /** Data format for response. */
572
- alt?: string;
594
+ alt?: 'json' | 'media' | 'proto';
573
595
  /** JSONP */
574
596
  callback?: string;
575
597
  /** Selector specifying which fields to include in a partial response. */
@@ -594,11 +616,11 @@ declare namespace gapi.client {
594
616
  getAncestry(
595
617
  request: {
596
618
  /** V1 error format. */
597
- '$.xgafv'?: string;
619
+ '$.xgafv'?: '1' | '2';
598
620
  /** OAuth access token. */
599
621
  access_token?: string;
600
622
  /** Data format for response. */
601
- alt?: string;
623
+ alt?: 'json' | 'media' | 'proto';
602
624
  /** JSONP */
603
625
  callback?: string;
604
626
  /** Selector specifying which fields to include in a partial response. */
@@ -624,11 +646,11 @@ declare namespace gapi.client {
624
646
  getIamPolicy(
625
647
  request: {
626
648
  /** V1 error format. */
627
- '$.xgafv'?: string;
649
+ '$.xgafv'?: '1' | '2';
628
650
  /** OAuth access token. */
629
651
  access_token?: string;
630
652
  /** Data format for response. */
631
- alt?: string;
653
+ alt?: 'json' | 'media' | 'proto';
632
654
  /** JSONP */
633
655
  callback?: string;
634
656
  /** Selector specifying which fields to include in a partial response. */
@@ -653,11 +675,11 @@ declare namespace gapi.client {
653
675
  /** Lists Projects that the caller has the `resourcemanager.projects.get` permission on and satisfy the specified filter. This method returns Projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method. NOTE: If the request filter contains a `parent.type` and `parent.id` and the caller has the `resourcemanager.projects.list` permission on the parent, the results will be drawn from an alternate index which provides more consistent results. In future versions of this API, this List method will be split into List and Search to properly capture the behavioral difference. */
654
676
  list(request?: {
655
677
  /** V1 error format. */
656
- '$.xgafv'?: string;
678
+ '$.xgafv'?: '1' | '2';
657
679
  /** OAuth access token. */
658
680
  access_token?: string;
659
681
  /** Data format for response. */
660
- alt?: string;
682
+ alt?: 'json' | 'media' | 'proto';
661
683
  /** JSONP */
662
684
  callback?: string;
663
685
  /** Selector specifying which fields to include in a partial response. */
@@ -685,11 +707,11 @@ declare namespace gapi.client {
685
707
  setIamPolicy(
686
708
  request: {
687
709
  /** V1 error format. */
688
- '$.xgafv'?: string;
710
+ '$.xgafv'?: '1' | '2';
689
711
  /** OAuth access token. */
690
712
  access_token?: string;
691
713
  /** Data format for response. */
692
- alt?: string;
714
+ alt?: 'json' | 'media' | 'proto';
693
715
  /** JSONP */
694
716
  callback?: string;
695
717
  /** Selector specifying which fields to include in a partial response. */
@@ -715,11 +737,11 @@ declare namespace gapi.client {
715
737
  testIamPermissions(
716
738
  request: {
717
739
  /** V1 error format. */
718
- '$.xgafv'?: string;
740
+ '$.xgafv'?: '1' | '2';
719
741
  /** OAuth access token. */
720
742
  access_token?: string;
721
743
  /** Data format for response. */
722
- alt?: string;
744
+ alt?: 'json' | 'media' | 'proto';
723
745
  /** JSONP */
724
746
  callback?: string;
725
747
  /** Selector specifying which fields to include in a partial response. */
@@ -744,11 +766,11 @@ declare namespace gapi.client {
744
766
  /** Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project. */
745
767
  undelete(request: {
746
768
  /** V1 error format. */
747
- '$.xgafv'?: string;
769
+ '$.xgafv'?: '1' | '2';
748
770
  /** OAuth access token. */
749
771
  access_token?: string;
750
772
  /** Data format for response. */
751
- alt?: string;
773
+ alt?: 'json' | 'media' | 'proto';
752
774
  /** JSONP */
753
775
  callback?: string;
754
776
  /** Selector specifying which fields to include in a partial response. */
@@ -773,11 +795,11 @@ declare namespace gapi.client {
773
795
  undelete(
774
796
  request: {
775
797
  /** V1 error format. */
776
- '$.xgafv'?: string;
798
+ '$.xgafv'?: '1' | '2';
777
799
  /** OAuth access token. */
778
800
  access_token?: string;
779
801
  /** Data format for response. */
780
- alt?: string;
802
+ alt?: 'json' | 'media' | 'proto';
781
803
  /** JSONP */
782
804
  callback?: string;
783
805
  /** Selector specifying which fields to include in a partial response. */
@@ -802,11 +824,11 @@ declare namespace gapi.client {
802
824
  /** Updates the attributes of the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have modify permissions for this Project. */
803
825
  update(request: {
804
826
  /** V1 error format. */
805
- '$.xgafv'?: string;
827
+ '$.xgafv'?: '1' | '2';
806
828
  /** OAuth access token. */
807
829
  access_token?: string;
808
830
  /** Data format for response. */
809
- alt?: string;
831
+ alt?: 'json' | 'media' | 'proto';
810
832
  /** JSONP */
811
833
  callback?: string;
812
834
  /** Selector specifying which fields to include in a partial response. */
@@ -831,11 +853,11 @@ declare namespace gapi.client {
831
853
  update(
832
854
  request: {
833
855
  /** V1 error format. */
834
- '$.xgafv'?: string;
856
+ '$.xgafv'?: '1' | '2';
835
857
  /** OAuth access token. */
836
858
  access_token?: string;
837
859
  /** Data format for response. */
838
- alt?: string;
860
+ alt?: 'json' | 'media' | 'proto';
839
861
  /** JSONP */
840
862
  callback?: string;
841
863
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudresourcemanager-v1beta1",
3
- "version": "0.1.20260310",
3
+ "version": "0.2.20260310",
4
4
  "description": "TypeScript typings for Cloud Resource Manager API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",