@maxim_mazurok/gapi.client.cloudresourcemanager-v1 0.1.20260310 → 0.2.20260521

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 (3) hide show
  1. package/index.d.ts +121 -99
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260310
12
+ // Revision: 20260521
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -42,7 +42,11 @@ declare namespace gapi.client {
42
42
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
43
43
  exemptedMembers?: string[];
44
44
  /** The log type that this config enables. */
45
- logType?: string;
45
+ logType?:
46
+ | 'LOG_TYPE_UNSPECIFIED'
47
+ | 'ADMIN_READ'
48
+ | 'DATA_WRITE'
49
+ | 'DATA_READ';
46
50
  }
47
51
  interface Binding {
48
52
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
@@ -69,7 +73,7 @@ declare namespace gapi.client {
69
73
  /** The display name of the folder. */
70
74
  displayName?: string;
71
75
  /** The type of this operation. */
72
- operationType?: string;
76
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
73
77
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
74
78
  sourceParent?: string;
75
79
  }
@@ -79,7 +83,7 @@ declare namespace gapi.client {
79
83
  /** The display name of the folder. */
80
84
  displayName?: string;
81
85
  /** The type of this operation. */
82
- operationType?: string;
86
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
83
87
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
84
88
  sourceParent?: string;
85
89
  }
@@ -87,7 +91,7 @@ declare namespace gapi.client {
87
91
  /** Defines this constraint as being a BooleanConstraint. */
88
92
  booleanConstraint?: any;
89
93
  /** The evaluation behavior of this constraint in the absence of 'Policy'. */
90
- constraintDefault?: string;
94
+ constraintDefault?: 'CONSTRAINT_DEFAULT_UNSPECIFIED' | 'ALLOW' | 'DENY';
91
95
  /** Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. */
92
96
  description?: string;
93
97
  /** The human readable name. Mutable. */
@@ -139,13 +143,24 @@ declare namespace gapi.client {
139
143
  /** The display name of the folder. */
140
144
  displayName?: string;
141
145
  /** The type of this operation. */
142
- operationType?: string;
146
+ operationType?: 'OPERATION_TYPE_UNSPECIFIED' | 'CREATE' | 'MOVE';
143
147
  /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
144
148
  sourceParent?: string;
145
149
  }
146
150
  interface FolderOperationError {
147
151
  /** The type of operation error experienced. */
148
- errorMessageId?: string;
152
+ errorMessageId?:
153
+ | 'ERROR_TYPE_UNSPECIFIED'
154
+ | 'ACTIVE_FOLDER_HEIGHT_VIOLATION'
155
+ | 'MAX_CHILD_FOLDERS_VIOLATION'
156
+ | 'FOLDER_NAME_UNIQUENESS_VIOLATION'
157
+ | 'RESOURCE_DELETED_VIOLATION'
158
+ | 'PARENT_DELETED_VIOLATION'
159
+ | 'CYCLE_INTRODUCED_VIOLATION'
160
+ | 'FOLDER_BEING_MOVED_VIOLATION'
161
+ | 'FOLDER_TO_DELETE_NON_EMPTY_VIOLATION'
162
+ | 'DELETED_FOLDER_HEIGHT_VIOLATION'
163
+ | 'FOLDER_TO_DELETE_CONFIGURED_CAPABILITY_VIOLATION';
149
164
  }
150
165
  interface GetAncestryRequest {}
151
166
  interface GetAncestryResponse {
@@ -222,7 +237,7 @@ declare namespace gapi.client {
222
237
  /** List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
223
238
  allowedValues?: string[];
224
239
  /** The policy all_values state. */
225
- allValues?: string;
240
+ allValues?: 'ALL_VALUES_UNSPECIFIED' | 'ALLOW' | 'DENY';
226
241
  /** List of values denied at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
227
242
  deniedValues?: string[];
228
243
  /** Determines the inheritance behavior for this `Policy`. By default, a `ListPolicy` set at a resource supersedes any `Policy` set anywhere up the resource hierarchy. However, if `inherit_from_parent` is set to `true`, then the values from the effective `Policy` of the parent resource are inherited, meaning the values set in this `Policy` are added to the values inherited up the hierarchy. Setting `Policy` hierarchies that inherit both allowed values and denied values isn't recommended in most circumstances to keep the configuration simple and understandable. However, it is possible to set a `Policy` with `allowed_values` set that inherits a `Policy` with `denied_values` set. In this case, the values that are allowed must be in `allowed_values` and not present in `denied_values`. For example, suppose you have a `Constraint` `constraints/serviceuser.services`, which has a `constraint_type` of `list_constraint`, and with `constraint_default` set to `ALLOW`. Suppose that at the Organization level, a `Policy` is applied that restricts the allowed API activations to {`E1`, `E2`}. Then, if a `Policy` is applied to a project below the Organization that has `inherit_from_parent` set to `false` and field all_values set to DENY, then an attempt to activate any API will be denied. The following examples demonstrate different possible layerings for `projects/bar` parented by `organizations/foo`: Example 1 (no inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has `inherit_from_parent` `false` and values: {allowed_values: "E3" allowed_values: "E4"} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E3`, and `E4`. Example 2 (inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {value: "E3" value: "E4" inherit_from_parent: true} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting both allowed and denied values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {denied_values: "E1"} The accepted values at `organizations/foo` are `E1`, `E2`. The value accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are either all or none depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (no policy inherits parent policy): `organizations/foo` has no `Policy` set. `projects/bar` has no `Policy` set. The accepted values at both levels are either all or none depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 (ListConstraint allowing all): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: ALLOW} The accepted values at `organizations/foo` are `E1`, E2`. Any value is accepted at `projects/bar`. Example 7 (ListConstraint allowing none): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: DENY} The accepted values at `organizations/foo` are `E1`, E2`. No value is accepted at `projects/bar`. Example 10 (allowed and denied subtrees of Resource Manager hierarchy): Given the following resource hierarchy O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` has a `Policy` with values: {allowed_values: "under:organizations/O1"} `projects/bar` has a `Policy` with: {allowed_values: "under:projects/P3"} {denied_values: "under:folders/F2"} The accepted values at `organizations/foo` are `organizations/O1`, `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`, `projects/P3`. The accepted values at `projects/bar` are `organizations/O1`, `folders/F1`, `projects/P1`. */
@@ -263,7 +278,10 @@ declare namespace gapi.client {
263
278
  /** 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. */
264
279
  displayName?: string;
265
280
  /** The organization's current lifecycle state. Assigned by the server. */
266
- lifecycleState?: string;
281
+ lifecycleState?:
282
+ | 'LIFECYCLE_STATE_UNSPECIFIED'
283
+ | 'ACTIVE'
284
+ | 'DELETE_REQUESTED';
267
285
  /** 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". */
268
286
  name?: string;
269
287
  /** The owner of this Organization. The owner should be specified on creation. Once set, it cannot be changed. This field is required. */
@@ -307,7 +325,11 @@ declare namespace gapi.client {
307
325
  /** 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. */
308
326
  labels?: {[P in string]: string};
309
327
  /** The Project lifecycle state. Read-only. */
310
- lifecycleState?: string;
328
+ lifecycleState?:
329
+ | 'LIFECYCLE_STATE_UNSPECIFIED'
330
+ | 'ACTIVE'
331
+ | 'DELETE_REQUESTED'
332
+ | 'DELETE_IN_PROGRESS';
311
333
  /** 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. */
312
334
  name?: string;
313
335
  /** 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. */
@@ -362,7 +384,7 @@ declare namespace gapi.client {
362
384
  /** The status code, which should be an enum value of google.rpc.Code. */
363
385
  code?: number;
364
386
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
365
- details?: Array<{[P in string]: any}>;
387
+ details?: {[P in string]: any}[];
366
388
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
367
389
  message?: string;
368
390
  }
@@ -387,11 +409,11 @@ declare namespace gapi.client {
387
409
  clearOrgPolicy(
388
410
  request: {
389
411
  /** V1 error format. */
390
- '$.xgafv'?: string;
412
+ '$.xgafv'?: '1' | '2';
391
413
  /** OAuth access token. */
392
414
  access_token?: string;
393
415
  /** Data format for response. */
394
- alt?: string;
416
+ alt?: 'json' | 'media' | 'proto';
395
417
  /** JSONP */
396
418
  callback?: string;
397
419
  /** Selector specifying which fields to include in a partial response. */
@@ -417,11 +439,11 @@ declare namespace gapi.client {
417
439
  getEffectiveOrgPolicy(
418
440
  request: {
419
441
  /** V1 error format. */
420
- '$.xgafv'?: string;
442
+ '$.xgafv'?: '1' | '2';
421
443
  /** OAuth access token. */
422
444
  access_token?: string;
423
445
  /** Data format for response. */
424
- alt?: string;
446
+ alt?: 'json' | 'media' | 'proto';
425
447
  /** JSONP */
426
448
  callback?: string;
427
449
  /** Selector specifying which fields to include in a partial response. */
@@ -447,11 +469,11 @@ declare namespace gapi.client {
447
469
  getOrgPolicy(
448
470
  request: {
449
471
  /** V1 error format. */
450
- '$.xgafv'?: string;
472
+ '$.xgafv'?: '1' | '2';
451
473
  /** OAuth access token. */
452
474
  access_token?: string;
453
475
  /** Data format for response. */
454
- alt?: string;
476
+ alt?: 'json' | 'media' | 'proto';
455
477
  /** JSONP */
456
478
  callback?: string;
457
479
  /** Selector specifying which fields to include in a partial response. */
@@ -477,11 +499,11 @@ declare namespace gapi.client {
477
499
  listAvailableOrgPolicyConstraints(
478
500
  request: {
479
501
  /** V1 error format. */
480
- '$.xgafv'?: string;
502
+ '$.xgafv'?: '1' | '2';
481
503
  /** OAuth access token. */
482
504
  access_token?: string;
483
505
  /** Data format for response. */
484
- alt?: string;
506
+ alt?: 'json' | 'media' | 'proto';
485
507
  /** JSONP */
486
508
  callback?: string;
487
509
  /** Selector specifying which fields to include in a partial response. */
@@ -507,11 +529,11 @@ declare namespace gapi.client {
507
529
  listOrgPolicies(
508
530
  request: {
509
531
  /** V1 error format. */
510
- '$.xgafv'?: string;
532
+ '$.xgafv'?: '1' | '2';
511
533
  /** OAuth access token. */
512
534
  access_token?: string;
513
535
  /** Data format for response. */
514
- alt?: string;
536
+ alt?: 'json' | 'media' | 'proto';
515
537
  /** JSONP */
516
538
  callback?: string;
517
539
  /** Selector specifying which fields to include in a partial response. */
@@ -537,11 +559,11 @@ declare namespace gapi.client {
537
559
  setOrgPolicy(
538
560
  request: {
539
561
  /** V1 error format. */
540
- '$.xgafv'?: string;
562
+ '$.xgafv'?: '1' | '2';
541
563
  /** OAuth access token. */
542
564
  access_token?: string;
543
565
  /** Data format for response. */
544
- alt?: string;
566
+ alt?: 'json' | 'media' | 'proto';
545
567
  /** JSONP */
546
568
  callback?: string;
547
569
  /** Selector specifying which fields to include in a partial response. */
@@ -568,11 +590,11 @@ declare namespace gapi.client {
568
590
  /** Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method will require permission on the `parent` resource. For example, applying to `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied. */
569
591
  create(request: {
570
592
  /** V1 error format. */
571
- '$.xgafv'?: string;
593
+ '$.xgafv'?: '1' | '2';
572
594
  /** OAuth access token. */
573
595
  access_token?: string;
574
596
  /** Data format for response. */
575
- alt?: string;
597
+ alt?: 'json' | 'media' | 'proto';
576
598
  /** JSONP */
577
599
  callback?: string;
578
600
  /** Selector specifying which fields to include in a partial response. */
@@ -595,11 +617,11 @@ declare namespace gapi.client {
595
617
  create(
596
618
  request: {
597
619
  /** V1 error format. */
598
- '$.xgafv'?: string;
620
+ '$.xgafv'?: '1' | '2';
599
621
  /** OAuth access token. */
600
622
  access_token?: string;
601
623
  /** Data format for response. */
602
- alt?: string;
624
+ alt?: 'json' | 'media' | 'proto';
603
625
  /** JSONP */
604
626
  callback?: string;
605
627
  /** Selector specifying which fields to include in a partial response. */
@@ -622,11 +644,11 @@ declare namespace gapi.client {
622
644
  /** Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.updateLiens`. */
623
645
  delete(request?: {
624
646
  /** V1 error format. */
625
- '$.xgafv'?: string;
647
+ '$.xgafv'?: '1' | '2';
626
648
  /** OAuth access token. */
627
649
  access_token?: string;
628
650
  /** Data format for response. */
629
- alt?: string;
651
+ alt?: 'json' | 'media' | 'proto';
630
652
  /** JSONP */
631
653
  callback?: string;
632
654
  /** Selector specifying which fields to include in a partial response. */
@@ -649,11 +671,11 @@ declare namespace gapi.client {
649
671
  /** Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get` */
650
672
  get(request?: {
651
673
  /** V1 error format. */
652
- '$.xgafv'?: string;
674
+ '$.xgafv'?: '1' | '2';
653
675
  /** OAuth access token. */
654
676
  access_token?: string;
655
677
  /** Data format for response. */
656
- alt?: string;
678
+ alt?: 'json' | 'media' | 'proto';
657
679
  /** JSONP */
658
680
  callback?: string;
659
681
  /** Selector specifying which fields to include in a partial response. */
@@ -676,11 +698,11 @@ declare namespace gapi.client {
676
698
  /** List all Liens applied to the `parent` resource. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission `resourcemanager.projects.get`. */
677
699
  list(request?: {
678
700
  /** V1 error format. */
679
- '$.xgafv'?: string;
701
+ '$.xgafv'?: '1' | '2';
680
702
  /** OAuth access token. */
681
703
  access_token?: string;
682
704
  /** Data format for response. */
683
- alt?: string;
705
+ alt?: 'json' | 'media' | 'proto';
684
706
  /** JSONP */
685
707
  callback?: string;
686
708
  /** Selector specifying which fields to include in a partial response. */
@@ -709,11 +731,11 @@ declare namespace gapi.client {
709
731
  /** 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. */
710
732
  get(request?: {
711
733
  /** V1 error format. */
712
- '$.xgafv'?: string;
734
+ '$.xgafv'?: '1' | '2';
713
735
  /** OAuth access token. */
714
736
  access_token?: string;
715
737
  /** Data format for response. */
716
- alt?: string;
738
+ alt?: 'json' | 'media' | 'proto';
717
739
  /** JSONP */
718
740
  callback?: string;
719
741
  /** Selector specifying which fields to include in a partial response. */
@@ -739,11 +761,11 @@ declare namespace gapi.client {
739
761
  clearOrgPolicy(
740
762
  request: {
741
763
  /** V1 error format. */
742
- '$.xgafv'?: string;
764
+ '$.xgafv'?: '1' | '2';
743
765
  /** OAuth access token. */
744
766
  access_token?: string;
745
767
  /** Data format for response. */
746
- alt?: string;
768
+ alt?: 'json' | 'media' | 'proto';
747
769
  /** JSONP */
748
770
  callback?: string;
749
771
  /** Selector specifying which fields to include in a partial response. */
@@ -768,11 +790,11 @@ declare namespace gapi.client {
768
790
  /** Fetches an Organization resource identified by the specified resource name. */
769
791
  get(request?: {
770
792
  /** V1 error format. */
771
- '$.xgafv'?: string;
793
+ '$.xgafv'?: '1' | '2';
772
794
  /** OAuth access token. */
773
795
  access_token?: string;
774
796
  /** Data format for response. */
775
- alt?: string;
797
+ alt?: 'json' | 'media' | 'proto';
776
798
  /** JSONP */
777
799
  callback?: string;
778
800
  /** Selector specifying which fields to include in a partial response. */
@@ -796,11 +818,11 @@ declare namespace gapi.client {
796
818
  getEffectiveOrgPolicy(
797
819
  request: {
798
820
  /** V1 error format. */
799
- '$.xgafv'?: string;
821
+ '$.xgafv'?: '1' | '2';
800
822
  /** OAuth access token. */
801
823
  access_token?: string;
802
824
  /** Data format for response. */
803
- alt?: string;
825
+ alt?: 'json' | 'media' | 'proto';
804
826
  /** JSONP */
805
827
  callback?: string;
806
828
  /** Selector specifying which fields to include in a partial response. */
@@ -826,11 +848,11 @@ declare namespace gapi.client {
826
848
  getIamPolicy(
827
849
  request: {
828
850
  /** V1 error format. */
829
- '$.xgafv'?: string;
851
+ '$.xgafv'?: '1' | '2';
830
852
  /** OAuth access token. */
831
853
  access_token?: string;
832
854
  /** Data format for response. */
833
- alt?: string;
855
+ alt?: 'json' | 'media' | 'proto';
834
856
  /** JSONP */
835
857
  callback?: string;
836
858
  /** Selector specifying which fields to include in a partial response. */
@@ -856,11 +878,11 @@ declare namespace gapi.client {
856
878
  getOrgPolicy(
857
879
  request: {
858
880
  /** V1 error format. */
859
- '$.xgafv'?: string;
881
+ '$.xgafv'?: '1' | '2';
860
882
  /** OAuth access token. */
861
883
  access_token?: string;
862
884
  /** Data format for response. */
863
- alt?: string;
885
+ alt?: 'json' | 'media' | 'proto';
864
886
  /** JSONP */
865
887
  callback?: string;
866
888
  /** Selector specifying which fields to include in a partial response. */
@@ -886,11 +908,11 @@ declare namespace gapi.client {
886
908
  listAvailableOrgPolicyConstraints(
887
909
  request: {
888
910
  /** V1 error format. */
889
- '$.xgafv'?: string;
911
+ '$.xgafv'?: '1' | '2';
890
912
  /** OAuth access token. */
891
913
  access_token?: string;
892
914
  /** Data format for response. */
893
- alt?: string;
915
+ alt?: 'json' | 'media' | 'proto';
894
916
  /** JSONP */
895
917
  callback?: string;
896
918
  /** Selector specifying which fields to include in a partial response. */
@@ -916,11 +938,11 @@ declare namespace gapi.client {
916
938
  listOrgPolicies(
917
939
  request: {
918
940
  /** V1 error format. */
919
- '$.xgafv'?: string;
941
+ '$.xgafv'?: '1' | '2';
920
942
  /** OAuth access token. */
921
943
  access_token?: string;
922
944
  /** Data format for response. */
923
- alt?: string;
945
+ alt?: 'json' | 'media' | 'proto';
924
946
  /** JSONP */
925
947
  callback?: string;
926
948
  /** Selector specifying which fields to include in a partial response. */
@@ -945,11 +967,11 @@ declare namespace gapi.client {
945
967
  /** Searches 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 results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin privileges. */
946
968
  search(request: {
947
969
  /** V1 error format. */
948
- '$.xgafv'?: string;
970
+ '$.xgafv'?: '1' | '2';
949
971
  /** OAuth access token. */
950
972
  access_token?: string;
951
973
  /** Data format for response. */
952
- alt?: string;
974
+ alt?: 'json' | 'media' | 'proto';
953
975
  /** JSONP */
954
976
  callback?: string;
955
977
  /** Selector specifying which fields to include in a partial response. */
@@ -972,11 +994,11 @@ declare namespace gapi.client {
972
994
  search(
973
995
  request: {
974
996
  /** V1 error format. */
975
- '$.xgafv'?: string;
997
+ '$.xgafv'?: '1' | '2';
976
998
  /** OAuth access token. */
977
999
  access_token?: string;
978
1000
  /** Data format for response. */
979
- alt?: string;
1001
+ alt?: 'json' | 'media' | 'proto';
980
1002
  /** JSONP */
981
1003
  callback?: string;
982
1004
  /** Selector specifying which fields to include in a partial response. */
@@ -1000,11 +1022,11 @@ declare namespace gapi.client {
1000
1022
  setIamPolicy(
1001
1023
  request: {
1002
1024
  /** V1 error format. */
1003
- '$.xgafv'?: string;
1025
+ '$.xgafv'?: '1' | '2';
1004
1026
  /** OAuth access token. */
1005
1027
  access_token?: string;
1006
1028
  /** Data format for response. */
1007
- alt?: string;
1029
+ alt?: 'json' | 'media' | 'proto';
1008
1030
  /** JSONP */
1009
1031
  callback?: string;
1010
1032
  /** Selector specifying which fields to include in a partial response. */
@@ -1030,11 +1052,11 @@ declare namespace gapi.client {
1030
1052
  setOrgPolicy(
1031
1053
  request: {
1032
1054
  /** V1 error format. */
1033
- '$.xgafv'?: string;
1055
+ '$.xgafv'?: '1' | '2';
1034
1056
  /** OAuth access token. */
1035
1057
  access_token?: string;
1036
1058
  /** Data format for response. */
1037
- alt?: string;
1059
+ alt?: 'json' | 'media' | 'proto';
1038
1060
  /** JSONP */
1039
1061
  callback?: string;
1040
1062
  /** Selector specifying which fields to include in a partial response. */
@@ -1060,11 +1082,11 @@ declare namespace gapi.client {
1060
1082
  testIamPermissions(
1061
1083
  request: {
1062
1084
  /** V1 error format. */
1063
- '$.xgafv'?: string;
1085
+ '$.xgafv'?: '1' | '2';
1064
1086
  /** OAuth access token. */
1065
1087
  access_token?: string;
1066
1088
  /** Data format for response. */
1067
- alt?: string;
1089
+ alt?: 'json' | 'media' | 'proto';
1068
1090
  /** JSONP */
1069
1091
  callback?: string;
1070
1092
  /** Selector specifying which fields to include in a partial response. */
@@ -1092,11 +1114,11 @@ declare namespace gapi.client {
1092
1114
  clearOrgPolicy(
1093
1115
  request: {
1094
1116
  /** V1 error format. */
1095
- '$.xgafv'?: string;
1117
+ '$.xgafv'?: '1' | '2';
1096
1118
  /** OAuth access token. */
1097
1119
  access_token?: string;
1098
1120
  /** Data format for response. */
1099
- alt?: string;
1121
+ alt?: 'json' | 'media' | 'proto';
1100
1122
  /** JSONP */
1101
1123
  callback?: string;
1102
1124
  /** Selector specifying which fields to include in a partial response. */
@@ -1121,11 +1143,11 @@ declare namespace gapi.client {
1121
1143
  /** Request that a new Project be created. The result is an Operation which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking Operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. Authorization requires the Google IAM permission `resourcemanager.projects.create` on the specified parent for the new project. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as 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. */
1122
1144
  create(request: {
1123
1145
  /** V1 error format. */
1124
- '$.xgafv'?: string;
1146
+ '$.xgafv'?: '1' | '2';
1125
1147
  /** OAuth access token. */
1126
1148
  access_token?: string;
1127
1149
  /** Data format for response. */
1128
- alt?: string;
1150
+ alt?: 'json' | 'media' | 'proto';
1129
1151
  /** JSONP */
1130
1152
  callback?: string;
1131
1153
  /** Selector specifying which fields to include in a partial response. */
@@ -1148,11 +1170,11 @@ declare namespace gapi.client {
1148
1170
  create(
1149
1171
  request: {
1150
1172
  /** V1 error format. */
1151
- '$.xgafv'?: string;
1173
+ '$.xgafv'?: '1' | '2';
1152
1174
  /** OAuth access token. */
1153
1175
  access_token?: string;
1154
1176
  /** Data format for response. */
1155
- alt?: string;
1177
+ alt?: 'json' | 'media' | 'proto';
1156
1178
  /** JSONP */
1157
1179
  callback?: string;
1158
1180
  /** Selector specifying which fields to include in a partial response. */
@@ -1175,11 +1197,11 @@ declare namespace gapi.client {
1175
1197
  /** 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. */
1176
1198
  delete(request?: {
1177
1199
  /** V1 error format. */
1178
- '$.xgafv'?: string;
1200
+ '$.xgafv'?: '1' | '2';
1179
1201
  /** OAuth access token. */
1180
1202
  access_token?: string;
1181
1203
  /** Data format for response. */
1182
- alt?: string;
1204
+ alt?: 'json' | 'media' | 'proto';
1183
1205
  /** JSONP */
1184
1206
  callback?: string;
1185
1207
  /** Selector specifying which fields to include in a partial response. */
@@ -1202,11 +1224,11 @@ declare namespace gapi.client {
1202
1224
  /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
1203
1225
  get(request?: {
1204
1226
  /** V1 error format. */
1205
- '$.xgafv'?: string;
1227
+ '$.xgafv'?: '1' | '2';
1206
1228
  /** OAuth access token. */
1207
1229
  access_token?: string;
1208
1230
  /** Data format for response. */
1209
- alt?: string;
1231
+ alt?: 'json' | 'media' | 'proto';
1210
1232
  /** JSONP */
1211
1233
  callback?: string;
1212
1234
  /** Selector specifying which fields to include in a partial response. */
@@ -1229,11 +1251,11 @@ declare namespace gapi.client {
1229
1251
  /** 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. */
1230
1252
  getAncestry(request: {
1231
1253
  /** V1 error format. */
1232
- '$.xgafv'?: string;
1254
+ '$.xgafv'?: '1' | '2';
1233
1255
  /** OAuth access token. */
1234
1256
  access_token?: string;
1235
1257
  /** Data format for response. */
1236
- alt?: string;
1258
+ alt?: 'json' | 'media' | 'proto';
1237
1259
  /** JSONP */
1238
1260
  callback?: string;
1239
1261
  /** Selector specifying which fields to include in a partial response. */
@@ -1258,11 +1280,11 @@ declare namespace gapi.client {
1258
1280
  getAncestry(
1259
1281
  request: {
1260
1282
  /** V1 error format. */
1261
- '$.xgafv'?: string;
1283
+ '$.xgafv'?: '1' | '2';
1262
1284
  /** OAuth access token. */
1263
1285
  access_token?: string;
1264
1286
  /** Data format for response. */
1265
- alt?: string;
1287
+ alt?: 'json' | 'media' | 'proto';
1266
1288
  /** JSONP */
1267
1289
  callback?: string;
1268
1290
  /** Selector specifying which fields to include in a partial response. */
@@ -1288,11 +1310,11 @@ declare namespace gapi.client {
1288
1310
  getEffectiveOrgPolicy(
1289
1311
  request: {
1290
1312
  /** V1 error format. */
1291
- '$.xgafv'?: string;
1313
+ '$.xgafv'?: '1' | '2';
1292
1314
  /** OAuth access token. */
1293
1315
  access_token?: string;
1294
1316
  /** Data format for response. */
1295
- alt?: string;
1317
+ alt?: 'json' | 'media' | 'proto';
1296
1318
  /** JSONP */
1297
1319
  callback?: string;
1298
1320
  /** Selector specifying which fields to include in a partial response. */
@@ -1318,11 +1340,11 @@ declare namespace gapi.client {
1318
1340
  getIamPolicy(
1319
1341
  request: {
1320
1342
  /** V1 error format. */
1321
- '$.xgafv'?: string;
1343
+ '$.xgafv'?: '1' | '2';
1322
1344
  /** OAuth access token. */
1323
1345
  access_token?: string;
1324
1346
  /** Data format for response. */
1325
- alt?: string;
1347
+ alt?: 'json' | 'media' | 'proto';
1326
1348
  /** JSONP */
1327
1349
  callback?: string;
1328
1350
  /** Selector specifying which fields to include in a partial response. */
@@ -1348,11 +1370,11 @@ declare namespace gapi.client {
1348
1370
  getOrgPolicy(
1349
1371
  request: {
1350
1372
  /** V1 error format. */
1351
- '$.xgafv'?: string;
1373
+ '$.xgafv'?: '1' | '2';
1352
1374
  /** OAuth access token. */
1353
1375
  access_token?: string;
1354
1376
  /** Data format for response. */
1355
- alt?: string;
1377
+ alt?: 'json' | 'media' | 'proto';
1356
1378
  /** JSONP */
1357
1379
  callback?: string;
1358
1380
  /** Selector specifying which fields to include in a partial response. */
@@ -1377,11 +1399,11 @@ declare namespace gapi.client {
1377
1399
  /** 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. */
1378
1400
  list(request?: {
1379
1401
  /** V1 error format. */
1380
- '$.xgafv'?: string;
1402
+ '$.xgafv'?: '1' | '2';
1381
1403
  /** OAuth access token. */
1382
1404
  access_token?: string;
1383
1405
  /** Data format for response. */
1384
- alt?: string;
1406
+ alt?: 'json' | 'media' | 'proto';
1385
1407
  /** JSONP */
1386
1408
  callback?: string;
1387
1409
  /** Selector specifying which fields to include in a partial response. */
@@ -1409,11 +1431,11 @@ declare namespace gapi.client {
1409
1431
  listAvailableOrgPolicyConstraints(
1410
1432
  request: {
1411
1433
  /** V1 error format. */
1412
- '$.xgafv'?: string;
1434
+ '$.xgafv'?: '1' | '2';
1413
1435
  /** OAuth access token. */
1414
1436
  access_token?: string;
1415
1437
  /** Data format for response. */
1416
- alt?: string;
1438
+ alt?: 'json' | 'media' | 'proto';
1417
1439
  /** JSONP */
1418
1440
  callback?: string;
1419
1441
  /** Selector specifying which fields to include in a partial response. */
@@ -1439,11 +1461,11 @@ declare namespace gapi.client {
1439
1461
  listOrgPolicies(
1440
1462
  request: {
1441
1463
  /** V1 error format. */
1442
- '$.xgafv'?: string;
1464
+ '$.xgafv'?: '1' | '2';
1443
1465
  /** OAuth access token. */
1444
1466
  access_token?: string;
1445
1467
  /** Data format for response. */
1446
- alt?: string;
1468
+ alt?: 'json' | 'media' | 'proto';
1447
1469
  /** JSONP */
1448
1470
  callback?: string;
1449
1471
  /** Selector specifying which fields to include in a partial response. */
@@ -1469,11 +1491,11 @@ declare namespace gapi.client {
1469
1491
  setIamPolicy(
1470
1492
  request: {
1471
1493
  /** V1 error format. */
1472
- '$.xgafv'?: string;
1494
+ '$.xgafv'?: '1' | '2';
1473
1495
  /** OAuth access token. */
1474
1496
  access_token?: string;
1475
1497
  /** Data format for response. */
1476
- alt?: string;
1498
+ alt?: 'json' | 'media' | 'proto';
1477
1499
  /** JSONP */
1478
1500
  callback?: string;
1479
1501
  /** Selector specifying which fields to include in a partial response. */
@@ -1499,11 +1521,11 @@ declare namespace gapi.client {
1499
1521
  setOrgPolicy(
1500
1522
  request: {
1501
1523
  /** V1 error format. */
1502
- '$.xgafv'?: string;
1524
+ '$.xgafv'?: '1' | '2';
1503
1525
  /** OAuth access token. */
1504
1526
  access_token?: string;
1505
1527
  /** Data format for response. */
1506
- alt?: string;
1528
+ alt?: 'json' | 'media' | 'proto';
1507
1529
  /** JSONP */
1508
1530
  callback?: string;
1509
1531
  /** Selector specifying which fields to include in a partial response. */
@@ -1529,11 +1551,11 @@ declare namespace gapi.client {
1529
1551
  testIamPermissions(
1530
1552
  request: {
1531
1553
  /** V1 error format. */
1532
- '$.xgafv'?: string;
1554
+ '$.xgafv'?: '1' | '2';
1533
1555
  /** OAuth access token. */
1534
1556
  access_token?: string;
1535
1557
  /** Data format for response. */
1536
- alt?: string;
1558
+ alt?: 'json' | 'media' | 'proto';
1537
1559
  /** JSONP */
1538
1560
  callback?: string;
1539
1561
  /** Selector specifying which fields to include in a partial response. */
@@ -1558,11 +1580,11 @@ declare namespace gapi.client {
1558
1580
  /** 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. */
1559
1581
  undelete(request: {
1560
1582
  /** V1 error format. */
1561
- '$.xgafv'?: string;
1583
+ '$.xgafv'?: '1' | '2';
1562
1584
  /** OAuth access token. */
1563
1585
  access_token?: string;
1564
1586
  /** Data format for response. */
1565
- alt?: string;
1587
+ alt?: 'json' | 'media' | 'proto';
1566
1588
  /** JSONP */
1567
1589
  callback?: string;
1568
1590
  /** Selector specifying which fields to include in a partial response. */
@@ -1587,11 +1609,11 @@ declare namespace gapi.client {
1587
1609
  undelete(
1588
1610
  request: {
1589
1611
  /** V1 error format. */
1590
- '$.xgafv'?: string;
1612
+ '$.xgafv'?: '1' | '2';
1591
1613
  /** OAuth access token. */
1592
1614
  access_token?: string;
1593
1615
  /** Data format for response. */
1594
- alt?: string;
1616
+ alt?: 'json' | 'media' | 'proto';
1595
1617
  /** JSONP */
1596
1618
  callback?: string;
1597
1619
  /** Selector specifying which fields to include in a partial response. */
@@ -1616,11 +1638,11 @@ declare namespace gapi.client {
1616
1638
  /** 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. */
1617
1639
  update(request: {
1618
1640
  /** V1 error format. */
1619
- '$.xgafv'?: string;
1641
+ '$.xgafv'?: '1' | '2';
1620
1642
  /** OAuth access token. */
1621
1643
  access_token?: string;
1622
1644
  /** Data format for response. */
1623
- alt?: string;
1645
+ alt?: 'json' | 'media' | 'proto';
1624
1646
  /** JSONP */
1625
1647
  callback?: string;
1626
1648
  /** Selector specifying which fields to include in a partial response. */
@@ -1645,11 +1667,11 @@ declare namespace gapi.client {
1645
1667
  update(
1646
1668
  request: {
1647
1669
  /** V1 error format. */
1648
- '$.xgafv'?: string;
1670
+ '$.xgafv'?: '1' | '2';
1649
1671
  /** OAuth access token. */
1650
1672
  access_token?: string;
1651
1673
  /** Data format for response. */
1652
- alt?: string;
1674
+ alt?: 'json' | 'media' | 'proto';
1653
1675
  /** JSONP */
1654
1676
  callback?: string;
1655
1677
  /** 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-v1",
3
- "version": "0.1.20260310",
3
+ "version": "0.2.20260521",
4
4
  "description": "TypeScript typings for Cloud Resource Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Cloud Resource Manager API:
11
11
  npm install @types/gapi.client.cloudresourcemanager-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.cloudresourcemanager-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: