@maxim_mazurok/gapi.client.cloudresourcemanager-v1 0.0.20230930 → 0.0.20231022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -7
- package/package.json +1 -1
- package/readme.md +2 -2
- package/tests.ts +9 -8
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:
|
|
12
|
+
// Revision: 20231022
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -450,8 +450,8 @@ declare namespace gapi.client {
|
|
|
450
450
|
creationTime?:
|
|
451
451
|
string;
|
|
452
452
|
/**
|
|
453
|
-
* A human-readable string that refers to the Organization in the
|
|
454
|
-
* (for example, "google.com") of the G Suite customer that owns the organization.
|
|
453
|
+
* 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
|
|
454
|
+
* domain (for example, "google.com") of the G Suite customer that owns the organization.
|
|
455
455
|
*/
|
|
456
456
|
displayName?:
|
|
457
457
|
string;
|
|
@@ -1500,7 +1500,8 @@ declare namespace gapi.client {
|
|
|
1500
1500
|
body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
|
|
1501
1501
|
/**
|
|
1502
1502
|
* 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
|
|
1503
|
-
* necessarily appear at the end of the results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get`
|
|
1503
|
+
* 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
|
|
1504
|
+
* privileges.
|
|
1504
1505
|
*/
|
|
1505
1506
|
search(request: {
|
|
1506
1507
|
/** V1 error format. */
|
|
@@ -2285,9 +2286,9 @@ declare namespace gapi.client {
|
|
|
2285
2286
|
* 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
|
|
2286
2287
|
* 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
|
|
2287
2288
|
* 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
|
|
2288
|
-
* invitation. + You can only grant ownership of a project to a member by using the
|
|
2289
|
-
* 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
|
|
2290
|
-
* 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
|
|
2289
|
+
* 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
|
|
2290
|
+
* 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
|
|
2291
|
+
* 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
|
|
2291
2292
|
* 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
|
|
2292
2293
|
* 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
|
|
2293
2294
|
* inaccessible. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -160,7 +160,7 @@ Lists all the `Policies` set for a particular resource.
|
|
|
160
160
|
await gapi.client.cloudresourcemanager.organizations.listOrgPolicies({ resource: "resource", });
|
|
161
161
|
|
|
162
162
|
/*
|
|
163
|
-
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`
|
|
163
|
+
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.
|
|
164
164
|
*/
|
|
165
165
|
await gapi.client.cloudresourcemanager.organizations.search({ });
|
|
166
166
|
|
|
@@ -235,7 +235,7 @@ Lists all the `Policies` set for a particular resource.
|
|
|
235
235
|
await gapi.client.cloudresourcemanager.projects.listOrgPolicies({ resource: "resource", });
|
|
236
236
|
|
|
237
237
|
/*
|
|
238
|
-
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
|
|
238
|
+
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
|
|
239
239
|
*/
|
|
240
240
|
await gapi.client.cloudresourcemanager.projects.setIamPolicy({ resource: "resource", });
|
|
241
241
|
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231022
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -198,7 +198,8 @@ gapi.load('client', async () => {
|
|
|
198
198
|
});
|
|
199
199
|
/**
|
|
200
200
|
* 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
|
|
201
|
-
* necessarily appear at the end of the results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get`
|
|
201
|
+
* 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
|
|
202
|
+
* privileges.
|
|
202
203
|
*/
|
|
203
204
|
await gapi.client.cloudresourcemanager.organizations.search({
|
|
204
205
|
}, {
|
|
@@ -402,12 +403,12 @@ gapi.load('client', async () => {
|
|
|
402
403
|
* 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
|
|
403
404
|
* 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
|
|
404
405
|
* 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
|
|
405
|
-
* invitation. + You can only grant ownership of a project to a member by using the
|
|
406
|
-
* 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
|
|
407
|
-
* 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
|
|
408
|
-
* 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
|
|
409
|
-
* 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.
|
|
410
|
-
* Google IAM permission `resourcemanager.projects.setIamPolicy` on the project
|
|
406
|
+
* 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
|
|
407
|
+
* 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
|
|
408
|
+
* 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
|
|
409
|
+
* 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
|
|
410
|
+
* 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.
|
|
411
|
+
* Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project
|
|
411
412
|
*/
|
|
412
413
|
await gapi.client.cloudresourcemanager.projects.setIamPolicy({
|
|
413
414
|
resource: "Test string",
|