@maxim_mazurok/gapi.client.cloudresourcemanager-v3 0.0.20250121 → 0.0.20250206

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 +34 -34
  2. package/package.json +1 -1
  3. package/readme.md +3 -3
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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=v3
12
- // Revision: 20250121
12
+ // Revision: 20250206
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Resource Manager API v3 */
18
18
  function load(
19
- urlOrObject: 'https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v3'
19
+ urlOrObject: 'https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v3',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'cloudresourcemanager', version: 'v3'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'cloudresourcemanager',
26
26
  version: 'v3',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace cloudresourcemanager {
@@ -506,7 +506,7 @@ declare namespace gapi.client {
506
506
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
507
507
  uploadType?: string;
508
508
  },
509
- body: Folder
509
+ body: Folder,
510
510
  ): Request<Operation>;
511
511
  /** 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, where a folder is empty if it doesn't contain any folders or projects in the ACTIVE state. If called on a folder in DELETE_REQUESTED state the operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` permission on the identified folder. */
512
512
  delete(request?: {
@@ -590,7 +590,7 @@ declare namespace gapi.client {
590
590
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
591
591
  uploadType?: string;
592
592
  },
593
- body: GetIamPolicyRequest
593
+ body: GetIamPolicyRequest,
594
594
  ): Request<Policy>;
595
595
  /** 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. */
596
596
  list(request?: {
@@ -681,7 +681,7 @@ declare namespace gapi.client {
681
681
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
682
682
  uploadType?: string;
683
683
  },
684
- body: MoveFolderRequest
684
+ body: MoveFolderRequest,
685
685
  ): Request<Operation>;
686
686
  /** 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 the 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. */
687
687
  patch(request: {
@@ -743,7 +743,7 @@ declare namespace gapi.client {
743
743
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
744
744
  uploadType?: string;
745
745
  },
746
- body: Folder
746
+ body: Folder,
747
747
  ): Request<Operation>;
748
748
  /** 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`. */
749
749
  search(request?: {
@@ -804,7 +804,7 @@ declare namespace gapi.client {
804
804
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
805
805
  uploadType?: string;
806
806
  },
807
- body: SetIamPolicyRequest
807
+ body: SetIamPolicyRequest,
808
808
  ): Request<Policy>;
809
809
  /** Returns permissions that a caller has on the specified folder. The `resource` field should be the folder's resource name, for example: "folders/1234". There are no permissions required for making this API call. */
810
810
  testIamPermissions(
@@ -834,7 +834,7 @@ declare namespace gapi.client {
834
834
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
835
835
  uploadType?: string;
836
836
  },
837
- body: TestIamPermissionsRequest
837
+ body: TestIamPermissionsRequest,
838
838
  ): Request<TestIamPermissionsResponse>;
839
839
  /** Cancels the deletion request for a folder. This method may be called on a folder in any state. If the folder is in the ACTIVE state the result will be a no-op success. 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. */
840
840
  undelete(request: {
@@ -892,7 +892,7 @@ declare namespace gapi.client {
892
892
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
893
893
  uploadType?: string;
894
894
  },
895
- body: UndeleteFolderRequest
895
+ body: UndeleteFolderRequest,
896
896
  ): Request<Operation>;
897
897
  }
898
898
  interface LiensResource {
@@ -948,7 +948,7 @@ declare namespace gapi.client {
948
948
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
949
949
  uploadType?: string;
950
950
  },
951
- body: Lien
951
+ body: Lien,
952
952
  ): Request<Lien>;
953
953
  /** 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`. */
954
954
  delete(request?: {
@@ -1121,7 +1121,7 @@ declare namespace gapi.client {
1121
1121
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1122
1122
  uploadType?: string;
1123
1123
  },
1124
- body: GetIamPolicyRequest
1124
+ body: GetIamPolicyRequest,
1125
1125
  ): Request<Policy>;
1126
1126
  /** 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, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin privileges. */
1127
1127
  search(request?: {
@@ -1182,7 +1182,7 @@ declare namespace gapi.client {
1182
1182
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1183
1183
  uploadType?: string;
1184
1184
  },
1185
- body: SetIamPolicyRequest
1185
+ body: SetIamPolicyRequest,
1186
1186
  ): Request<Policy>;
1187
1187
  /** Returns the permissions that a caller has on the specified organization. The `resource` field should be the organization's resource name, for example: "organizations/123". There are no permissions required for making this API call. */
1188
1188
  testIamPermissions(
@@ -1212,7 +1212,7 @@ declare namespace gapi.client {
1212
1212
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1213
1213
  uploadType?: string;
1214
1214
  },
1215
- body: TestIamPermissionsRequest
1215
+ body: TestIamPermissionsRequest,
1216
1216
  ): Request<TestIamPermissionsResponse>;
1217
1217
  }
1218
1218
  interface ProjectsResource {
@@ -1268,9 +1268,9 @@ declare namespace gapi.client {
1268
1268
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1269
1269
  uploadType?: string;
1270
1270
  },
1271
- body: Project
1271
+ body: Project,
1272
1272
  ): Request<Operation>;
1273
- /** Marks the project identified by the specified `name` (for example, `projects/415104041262`) 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, ListProjects, and SearchProjects methods. This method behaves idempotently, such that deleting a `DELETE_REQUESTED` project will not cause an error, but also won't do anything. The caller must have `resourcemanager.projects.delete` permissions for this project. */
1273
+ /** Marks the project identified by the specified `name` (for example, `projects/415104041262`) 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, ListProjects, and SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for this project. */
1274
1274
  delete(request?: {
1275
1275
  /** V1 error format. */
1276
1276
  '$.xgafv'?: string;
@@ -1352,7 +1352,7 @@ declare namespace gapi.client {
1352
1352
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1353
1353
  uploadType?: string;
1354
1354
  },
1355
- body: GetIamPolicyRequest
1355
+ body: GetIamPolicyRequest,
1356
1356
  ): Request<Policy>;
1357
1357
  /** Lists projects that are direct children of the specified folder or organization resource. `list()` provides a strongly consistent view of the projects underneath the specified parent resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their `display_name`. The caller must have `resourcemanager.projects.list` permission on the identified parent. */
1358
1358
  list(request?: {
@@ -1443,7 +1443,7 @@ declare namespace gapi.client {
1443
1443
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1444
1444
  uploadType?: string;
1445
1445
  },
1446
- body: MoveProjectRequest
1446
+ body: MoveProjectRequest,
1447
1447
  ): Request<Operation>;
1448
1448
  /** Updates the `display_name` and labels of the project identified by the specified `name` (for example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. The caller must have `resourcemanager.projects.update` permission for this project. */
1449
1449
  patch(request: {
@@ -1505,7 +1505,7 @@ declare namespace gapi.client {
1505
1505
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1506
1506
  uploadType?: string;
1507
1507
  },
1508
- body: Project
1508
+ body: Project,
1509
1509
  ): Request<Operation>;
1510
1510
  /** Search for projects that the caller has the `resourcemanager.projects.get` permission on, and also satisfy the specified query. 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. */
1511
1511
  search(request?: {
@@ -1566,7 +1566,7 @@ declare namespace gapi.client {
1566
1566
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1567
1567
  uploadType?: string;
1568
1568
  },
1569
- body: SetIamPolicyRequest
1569
+ body: SetIamPolicyRequest,
1570
1570
  ): Request<Policy>;
1571
1571
  /** Returns permissions that a caller has on the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123.. */
1572
1572
  testIamPermissions(
@@ -1596,7 +1596,7 @@ declare namespace gapi.client {
1596
1596
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1597
1597
  uploadType?: string;
1598
1598
  },
1599
- body: TestIamPermissionsRequest
1599
+ body: TestIamPermissionsRequest,
1600
1600
  ): Request<TestIamPermissionsResponse>;
1601
1601
  /** Restores the project identified by the specified `name` (for example, `projects/415104041262`). 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 `resourcemanager.projects.undelete` permission for this project. */
1602
1602
  undelete(request: {
@@ -1654,7 +1654,7 @@ declare namespace gapi.client {
1654
1654
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1655
1655
  uploadType?: string;
1656
1656
  },
1657
- body: UndeleteProjectRequest
1657
+ body: UndeleteProjectRequest,
1658
1658
  ): Request<Operation>;
1659
1659
  }
1660
1660
  interface TagBindingsResource {
@@ -1714,7 +1714,7 @@ declare namespace gapi.client {
1714
1714
  /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
1715
1715
  validateOnly?: boolean;
1716
1716
  },
1717
- body: TagBinding
1717
+ body: TagBinding,
1718
1718
  ): Request<Operation>;
1719
1719
  /** Deletes a TagBinding. */
1720
1720
  delete(request?: {
@@ -1832,7 +1832,7 @@ declare namespace gapi.client {
1832
1832
  /** Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action. */
1833
1833
  validateOnly?: boolean;
1834
1834
  },
1835
- body: TagKey
1835
+ body: TagKey,
1836
1836
  ): Request<Operation>;
1837
1837
  /** Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues. */
1838
1838
  delete(request?: {
@@ -1920,7 +1920,7 @@ declare namespace gapi.client {
1920
1920
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1921
1921
  uploadType?: string;
1922
1922
  },
1923
- body: GetIamPolicyRequest
1923
+ body: GetIamPolicyRequest,
1924
1924
  ): Request<Policy>;
1925
1925
  /** Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it. */
1926
1926
  getNamespaced(request?: {
@@ -2044,7 +2044,7 @@ declare namespace gapi.client {
2044
2044
  /** Set as true to perform validations necessary for updating the resource, but not actually perform the action. */
2045
2045
  validateOnly?: boolean;
2046
2046
  },
2047
- body: TagKey
2047
+ body: TagKey,
2048
2048
  ): Request<Operation>;
2049
2049
  /** Sets the access control policy on a TagKey, replacing any existing policy. The `resource` field should be the TagKey's resource name. For example, "tagKeys/1234". The caller must have `resourcemanager.tagKeys.setIamPolicy` permission on the identified tagValue. */
2050
2050
  setIamPolicy(
@@ -2074,7 +2074,7 @@ declare namespace gapi.client {
2074
2074
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2075
2075
  uploadType?: string;
2076
2076
  },
2077
- body: SetIamPolicyRequest
2077
+ body: SetIamPolicyRequest,
2078
2078
  ): Request<Policy>;
2079
2079
  /** Returns permissions that a caller has on the specified TagKey. The `resource` field should be the TagKey's resource name. For example, "tagKeys/1234". There are no permissions required for making this API call. */
2080
2080
  testIamPermissions(
@@ -2104,7 +2104,7 @@ declare namespace gapi.client {
2104
2104
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2105
2105
  uploadType?: string;
2106
2106
  },
2107
- body: TestIamPermissionsRequest
2107
+ body: TestIamPermissionsRequest,
2108
2108
  ): Request<TestIamPermissionsResponse>;
2109
2109
  }
2110
2110
  interface TagHoldsResource {
@@ -2168,7 +2168,7 @@ declare namespace gapi.client {
2168
2168
  /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
2169
2169
  validateOnly?: boolean;
2170
2170
  },
2171
- body: TagHold
2171
+ body: TagHold,
2172
2172
  ): Request<Operation>;
2173
2173
  /** Deletes a TagHold. */
2174
2174
  delete(request?: {
@@ -2290,7 +2290,7 @@ declare namespace gapi.client {
2290
2290
  /** Optional. Set as true to perform the validations necessary for creating the resource, but not actually perform the action. */
2291
2291
  validateOnly?: boolean;
2292
2292
  },
2293
- body: TagValue
2293
+ body: TagValue,
2294
2294
  ): Request<Operation>;
2295
2295
  /** Deletes a TagValue. The TagValue cannot have any bindings when it is deleted. */
2296
2296
  delete(request?: {
@@ -2378,7 +2378,7 @@ declare namespace gapi.client {
2378
2378
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2379
2379
  uploadType?: string;
2380
2380
  },
2381
- body: GetIamPolicyRequest
2381
+ body: GetIamPolicyRequest,
2382
2382
  ): Request<Policy>;
2383
2383
  /** Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it. */
2384
2384
  getNamespaced(request?: {
@@ -2502,7 +2502,7 @@ declare namespace gapi.client {
2502
2502
  /** Optional. True to perform validations necessary for updating the resource, but not actually perform the action. */
2503
2503
  validateOnly?: boolean;
2504
2504
  },
2505
- body: TagValue
2505
+ body: TagValue,
2506
2506
  ): Request<Operation>;
2507
2507
  /** Sets the access control policy on a TagValue, replacing any existing policy. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller must have `resourcemanager.tagValues.setIamPolicy` permission on the identified tagValue. */
2508
2508
  setIamPolicy(
@@ -2532,7 +2532,7 @@ declare namespace gapi.client {
2532
2532
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2533
2533
  uploadType?: string;
2534
2534
  },
2535
- body: SetIamPolicyRequest
2535
+ body: SetIamPolicyRequest,
2536
2536
  ): Request<Policy>;
2537
2537
  /** Returns permissions that a caller has on the specified TagValue. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. There are no permissions required for making this API call. */
2538
2538
  testIamPermissions(
@@ -2562,7 +2562,7 @@ declare namespace gapi.client {
2562
2562
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2563
2563
  uploadType?: string;
2564
2564
  },
2565
- body: TestIamPermissionsRequest
2565
+ body: TestIamPermissionsRequest,
2566
2566
  ): Request<TestIamPermissionsResponse>;
2567
2567
  tagHolds: TagHoldsResource;
2568
2568
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudresourcemanager-v3",
3
- "version": "0.0.20250121",
3
+ "version": "0.0.20250206",
4
4
  "description": "TypeScript typings for Cloud Resource Manager API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.cloudresourcemanager
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -65,7 +65,7 @@ gapi.auth.authorize(
65
65
  } else {
66
66
  /* handle authorization error */
67
67
  }
68
- }
68
+ },
69
69
  );
70
70
  ```
71
71
 
@@ -200,7 +200,7 @@ Request that a new project be created. The result is an `Operation` which can be
200
200
  await gapi.client.cloudresourcemanager.projects.create({});
201
201
 
202
202
  /*
203
- Marks the project identified by the specified `name` (for example, `projects/415104041262`) 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, ListProjects, and SearchProjects methods. This method behaves idempotently, such that deleting a `DELETE_REQUESTED` project will not cause an error, but also won't do anything. The caller must have `resourcemanager.projects.delete` permissions for this project.
203
+ Marks the project identified by the specified `name` (for example, `projects/415104041262`) 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, ListProjects, and SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for this project.
204
204
  */
205
205
  await gapi.client.cloudresourcemanager.projects.delete({name: 'name'});
206
206