@maxim_mazurok/gapi.client.cloudresourcemanager-v1 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 +33 -33
  2. package/package.json +1 -1
  3. package/readme.md +5 -5
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=v1
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 v1 */
18
18
  function load(
19
- urlOrObject: 'https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'cloudresourcemanager', version: 'v1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'cloudresourcemanager',
26
26
  version: 'v1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace cloudresourcemanager {
@@ -409,7 +409,7 @@ declare namespace gapi.client {
409
409
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
410
410
  uploadType?: string;
411
411
  },
412
- body: ClearOrgPolicyRequest
412
+ body: ClearOrgPolicyRequest,
413
413
  ): Request<{}>;
414
414
  /** Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
415
415
  getEffectiveOrgPolicy(
@@ -439,7 +439,7 @@ declare namespace gapi.client {
439
439
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
440
440
  uploadType?: string;
441
441
  },
442
- body: GetEffectiveOrgPolicyRequest
442
+ body: GetEffectiveOrgPolicyRequest,
443
443
  ): Request<OrgPolicy>;
444
444
  /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
445
445
  getOrgPolicy(
@@ -469,7 +469,7 @@ declare namespace gapi.client {
469
469
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
470
470
  uploadType?: string;
471
471
  },
472
- body: GetOrgPolicyRequest
472
+ body: GetOrgPolicyRequest,
473
473
  ): Request<OrgPolicy>;
474
474
  /** Lists `Constraints` that could be applied on the specified resource. */
475
475
  listAvailableOrgPolicyConstraints(
@@ -499,7 +499,7 @@ declare namespace gapi.client {
499
499
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
500
500
  uploadType?: string;
501
501
  },
502
- body: ListAvailableOrgPolicyConstraintsRequest
502
+ body: ListAvailableOrgPolicyConstraintsRequest,
503
503
  ): Request<ListAvailableOrgPolicyConstraintsResponse>;
504
504
  /** Lists all the `Policies` set for a particular resource. */
505
505
  listOrgPolicies(
@@ -529,7 +529,7 @@ declare namespace gapi.client {
529
529
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
530
530
  uploadType?: string;
531
531
  },
532
- body: ListOrgPoliciesRequest
532
+ body: ListOrgPoliciesRequest,
533
533
  ): Request<ListOrgPoliciesResponse>;
534
534
  /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
535
535
  setOrgPolicy(
@@ -559,7 +559,7 @@ declare namespace gapi.client {
559
559
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
560
560
  uploadType?: string;
561
561
  },
562
- body: SetOrgPolicyRequest
562
+ body: SetOrgPolicyRequest,
563
563
  ): Request<OrgPolicy>;
564
564
  }
565
565
  interface LiensResource {
@@ -615,7 +615,7 @@ declare namespace gapi.client {
615
615
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
616
616
  uploadType?: string;
617
617
  },
618
- body: Lien
618
+ body: Lien,
619
619
  ): Request<Lien>;
620
620
  /** 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`. */
621
621
  delete(request?: {
@@ -761,7 +761,7 @@ declare namespace gapi.client {
761
761
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
762
762
  uploadType?: string;
763
763
  },
764
- body: ClearOrgPolicyRequest
764
+ body: ClearOrgPolicyRequest,
765
765
  ): Request<{}>;
766
766
  /** Fetches an Organization resource identified by the specified resource name. */
767
767
  get(request?: {
@@ -818,7 +818,7 @@ declare namespace gapi.client {
818
818
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
819
819
  uploadType?: string;
820
820
  },
821
- body: GetEffectiveOrgPolicyRequest
821
+ body: GetEffectiveOrgPolicyRequest,
822
822
  ): Request<OrgPolicy>;
823
823
  /** Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g. "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization */
824
824
  getIamPolicy(
@@ -848,7 +848,7 @@ declare namespace gapi.client {
848
848
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
849
849
  uploadType?: string;
850
850
  },
851
- body: GetIamPolicyRequest
851
+ body: GetIamPolicyRequest,
852
852
  ): Request<Policy>;
853
853
  /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
854
854
  getOrgPolicy(
@@ -878,7 +878,7 @@ declare namespace gapi.client {
878
878
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
879
879
  uploadType?: string;
880
880
  },
881
- body: GetOrgPolicyRequest
881
+ body: GetOrgPolicyRequest,
882
882
  ): Request<OrgPolicy>;
883
883
  /** Lists `Constraints` that could be applied on the specified resource. */
884
884
  listAvailableOrgPolicyConstraints(
@@ -908,7 +908,7 @@ declare namespace gapi.client {
908
908
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
909
909
  uploadType?: string;
910
910
  },
911
- body: ListAvailableOrgPolicyConstraintsRequest
911
+ body: ListAvailableOrgPolicyConstraintsRequest,
912
912
  ): Request<ListAvailableOrgPolicyConstraintsResponse>;
913
913
  /** Lists all the `Policies` set for a particular resource. */
914
914
  listOrgPolicies(
@@ -938,7 +938,7 @@ declare namespace gapi.client {
938
938
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
939
939
  uploadType?: string;
940
940
  },
941
- body: ListOrgPoliciesRequest
941
+ body: ListOrgPoliciesRequest,
942
942
  ): Request<ListOrgPoliciesResponse>;
943
943
  /** 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. */
944
944
  search(request: {
@@ -992,7 +992,7 @@ declare namespace gapi.client {
992
992
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
993
993
  uploadType?: string;
994
994
  },
995
- body: SearchOrganizationsRequest
995
+ body: SearchOrganizationsRequest,
996
996
  ): Request<SearchOrganizationsResponse>;
997
997
  /** Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization */
998
998
  setIamPolicy(
@@ -1022,7 +1022,7 @@ declare namespace gapi.client {
1022
1022
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1023
1023
  uploadType?: string;
1024
1024
  },
1025
- body: SetIamPolicyRequest
1025
+ body: SetIamPolicyRequest,
1026
1026
  ): Request<Policy>;
1027
1027
  /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
1028
1028
  setOrgPolicy(
@@ -1052,7 +1052,7 @@ declare namespace gapi.client {
1052
1052
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1053
1053
  uploadType?: string;
1054
1054
  },
1055
- body: SetOrgPolicyRequest
1055
+ body: SetOrgPolicyRequest,
1056
1056
  ): Request<OrgPolicy>;
1057
1057
  /** Returns permissions that a caller has on the specified Organization. The `resource` field should be the organization's resource name, e.g. "organizations/123". There are no permissions required for making this API call. */
1058
1058
  testIamPermissions(
@@ -1082,7 +1082,7 @@ declare namespace gapi.client {
1082
1082
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1083
1083
  uploadType?: string;
1084
1084
  },
1085
- body: TestIamPermissionsRequest
1085
+ body: TestIamPermissionsRequest,
1086
1086
  ): Request<TestIamPermissionsResponse>;
1087
1087
  }
1088
1088
  interface ProjectsResource {
@@ -1114,7 +1114,7 @@ declare namespace gapi.client {
1114
1114
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1115
1115
  uploadType?: string;
1116
1116
  },
1117
- body: ClearOrgPolicyRequest
1117
+ body: ClearOrgPolicyRequest,
1118
1118
  ): Request<{}>;
1119
1119
  /** 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. */
1120
1120
  create(request: {
@@ -1168,7 +1168,7 @@ declare namespace gapi.client {
1168
1168
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1169
1169
  uploadType?: string;
1170
1170
  },
1171
- body: Project
1171
+ body: Project,
1172
1172
  ): Request<Operation>;
1173
1173
  /** 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. */
1174
1174
  delete(request?: {
@@ -1280,7 +1280,7 @@ declare namespace gapi.client {
1280
1280
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1281
1281
  uploadType?: string;
1282
1282
  },
1283
- body: GetAncestryRequest
1283
+ body: GetAncestryRequest,
1284
1284
  ): Request<GetAncestryResponse>;
1285
1285
  /** Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
1286
1286
  getEffectiveOrgPolicy(
@@ -1310,7 +1310,7 @@ declare namespace gapi.client {
1310
1310
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1311
1311
  uploadType?: string;
1312
1312
  },
1313
- body: GetEffectiveOrgPolicyRequest
1313
+ body: GetEffectiveOrgPolicyRequest,
1314
1314
  ): Request<OrgPolicy>;
1315
1315
  /** Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. Authorization requires the Google IAM permission `resourcemanager.projects.getIamPolicy` on the project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). */
1316
1316
  getIamPolicy(
@@ -1340,7 +1340,7 @@ declare namespace gapi.client {
1340
1340
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1341
1341
  uploadType?: string;
1342
1342
  },
1343
- body: GetIamPolicyRequest
1343
+ body: GetIamPolicyRequest,
1344
1344
  ): Request<Policy>;
1345
1345
  /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
1346
1346
  getOrgPolicy(
@@ -1370,7 +1370,7 @@ declare namespace gapi.client {
1370
1370
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1371
1371
  uploadType?: string;
1372
1372
  },
1373
- body: GetOrgPolicyRequest
1373
+ body: GetOrgPolicyRequest,
1374
1374
  ): Request<OrgPolicy>;
1375
1375
  /** 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. */
1376
1376
  list(request?: {
@@ -1431,7 +1431,7 @@ declare namespace gapi.client {
1431
1431
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1432
1432
  uploadType?: string;
1433
1433
  },
1434
- body: ListAvailableOrgPolicyConstraintsRequest
1434
+ body: ListAvailableOrgPolicyConstraintsRequest,
1435
1435
  ): Request<ListAvailableOrgPolicyConstraintsResponse>;
1436
1436
  /** Lists all the `Policies` set for a particular resource. */
1437
1437
  listOrgPolicies(
@@ -1461,7 +1461,7 @@ declare namespace gapi.client {
1461
1461
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1462
1462
  uploadType?: string;
1463
1463
  },
1464
- body: ListOrgPoliciesRequest
1464
+ body: ListOrgPoliciesRequest,
1465
1465
  ): Request<ListOrgPoliciesResponse>;
1466
1466
  /** Sets the IAM access control policy for the specified Project. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. NOTE: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited via Cloud Platform console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + You can only grant ownership of a project to a member by using the Google Cloud console. Inviting a member will deliver an invitation email that they must accept. An invitation email is not generated if you are granting a role other than owner, or if both the member you are inviting and the project are part of your organization. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. If the project is part of an organization, you can remove all owners, potentially making the organization inaccessible. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project */
1467
1467
  setIamPolicy(
@@ -1491,7 +1491,7 @@ declare namespace gapi.client {
1491
1491
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1492
1492
  uploadType?: string;
1493
1493
  },
1494
- body: SetIamPolicyRequest
1494
+ body: SetIamPolicyRequest,
1495
1495
  ): Request<Policy>;
1496
1496
  /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
1497
1497
  setOrgPolicy(
@@ -1521,7 +1521,7 @@ declare namespace gapi.client {
1521
1521
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1522
1522
  uploadType?: string;
1523
1523
  },
1524
- body: SetOrgPolicyRequest
1524
+ body: SetOrgPolicyRequest,
1525
1525
  ): Request<OrgPolicy>;
1526
1526
  /** Returns permissions that a caller has on the specified Project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). There are no permissions required for making this API call. */
1527
1527
  testIamPermissions(
@@ -1551,7 +1551,7 @@ declare namespace gapi.client {
1551
1551
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1552
1552
  uploadType?: string;
1553
1553
  },
1554
- body: TestIamPermissionsRequest
1554
+ body: TestIamPermissionsRequest,
1555
1555
  ): Request<TestIamPermissionsResponse>;
1556
1556
  /** 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. */
1557
1557
  undelete(request: {
@@ -1609,7 +1609,7 @@ declare namespace gapi.client {
1609
1609
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1610
1610
  uploadType?: string;
1611
1611
  },
1612
- body: UndeleteProjectRequest
1612
+ body: UndeleteProjectRequest,
1613
1613
  ): Request<{}>;
1614
1614
  /** 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. */
1615
1615
  update(request: {
@@ -1667,7 +1667,7 @@ declare namespace gapi.client {
1667
1667
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1668
1668
  uploadType?: string;
1669
1669
  },
1670
- body: Project
1670
+ body: Project,
1671
1671
  ): Request<Project>;
1672
1672
  }
1673
1673
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudresourcemanager-v1",
3
- "version": "0.0.20250121",
3
+ "version": "0.0.20250206",
4
4
  "description": "TypeScript typings for Cloud Resource Manager API v1",
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
 
@@ -97,7 +97,7 @@ await gapi.client.cloudresourcemanager.folders.getOrgPolicy({
97
97
  Lists `Constraints` that could be applied on the specified resource.
98
98
  */
99
99
  await gapi.client.cloudresourcemanager.folders.listAvailableOrgPolicyConstraints(
100
- {resource: 'resource'}
100
+ {resource: 'resource'},
101
101
  );
102
102
 
103
103
  /*
@@ -176,7 +176,7 @@ await gapi.client.cloudresourcemanager.organizations.getOrgPolicy({
176
176
  Lists `Constraints` that could be applied on the specified resource.
177
177
  */
178
178
  await gapi.client.cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints(
179
- {resource: 'resource'}
179
+ {resource: 'resource'},
180
180
  );
181
181
 
182
182
  /*
@@ -273,7 +273,7 @@ await gapi.client.cloudresourcemanager.projects.list({});
273
273
  Lists `Constraints` that could be applied on the specified resource.
274
274
  */
275
275
  await gapi.client.cloudresourcemanager.projects.listAvailableOrgPolicyConstraints(
276
- {resource: 'resource'}
276
+ {resource: 'resource'},
277
277
  );
278
278
 
279
279
  /*