From 3c12c76a97ec919a098492fa280a33781a8f03f9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:43:02 -0700 Subject: [PATCH] docs: [asset] fix required permissions for resources.searchAll and iamPolicies.searchAll (#5280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: fix required permissions for resources.searchAll and iamPolicies.searchAll PiperOrigin-RevId: 627432346 Source-Link: https://github.com/googleapis/googleapis/commit/a5526a09082c5ac94e285c47919f481c1f999dc6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/209a48a60ce31e180824c4fe2fce5dd4bba19784 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiIyMDlhNDhhNjBjZTMxZTE4MDgyNGM0ZmUyZmNlNWRkNGJiYTE5Nzg0In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/asset/v1p1beta1/asset_service.proto | 8 ++++---- .../snippet_metadata_google.cloud.asset.v1p1beta1.json | 4 ++-- .../src/v1p1beta1/asset_service_client.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto index a7bdbbb8896..7c2997d25ae 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto @@ -38,8 +38,8 @@ service AssetService { // (project/folder/organization). This RPC gives callers especially // administrators the ability to search all the resources within a scope, even // if they don't have `.get` permission of all the resources. Callers should - // have `cloud.assets.SearchAllResources` permission on the requested scope, - // otherwise the request will be rejected. + // have `cloudasset.assets.searchAllResources` permission on the requested + // scope, otherwise the request will be rejected. rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) { option (google.api.http) = { @@ -52,8 +52,8 @@ service AssetService { // scope (project/folder/organization). This RPC gives callers especially // administrators the ability to search all the IAM policies within a scope, // even if they don't have `.getIamPolicy` permission of all the IAM policies. - // Callers should have `cloud.assets.SearchAllIamPolicies` permission on the - // requested scope, otherwise the request will be rejected. + // Callers should have `cloudasset.assets.searchAllIamPolicies` permission on + // the requested scope, otherwise the request will be rejected. rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) { option (google.api.http) = { diff --git a/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json b/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json index c092b3fb9eb..6d6a38ee445 100644 --- a/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json +++ b/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json @@ -15,7 +15,7 @@ "regionTag": "cloudasset_v1p1beta1_generated_AssetService_SearchAllResources_async", "title": "AssetService searchAllResources Sample", "origin": "API_DEFINITION", - "description": " Searches all the resources within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the resources within a scope, even if they don't have `.get` permission of all the resources. Callers should have `cloud.assets.SearchAllResources` permission on the requested scope, otherwise the request will be rejected.", + "description": " Searches all the resources within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the resources within a scope, even if they don't have `.get` permission of all the resources. Callers should have `cloudasset.assets.searchAllResources` permission on the requested scope, otherwise the request will be rejected.", "canonical": true, "file": "asset_service.search_all_resources.js", "language": "JAVASCRIPT", @@ -75,7 +75,7 @@ "regionTag": "cloudasset_v1p1beta1_generated_AssetService_SearchAllIamPolicies_async", "title": "AssetService searchAllIamPolicies Sample", "origin": "API_DEFINITION", - "description": " Searches all the IAM policies within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the IAM policies within a scope, even if they don't have `.getIamPolicy` permission of all the IAM policies. Callers should have `cloud.assets.SearchAllIamPolicies` permission on the requested scope, otherwise the request will be rejected.", + "description": " Searches all the IAM policies within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the IAM policies within a scope, even if they don't have `.getIamPolicy` permission of all the IAM policies. Callers should have `cloudasset.assets.searchAllIamPolicies` permission on the requested scope, otherwise the request will be rejected.", "canonical": true, "file": "asset_service.search_all_iam_policies.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts b/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts index c961fe3ef94..6978ea93e57 100644 --- a/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts +++ b/packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts @@ -382,8 +382,8 @@ export class AssetServiceClient { * (project/folder/organization). This RPC gives callers especially * administrators the ability to search all the resources within a scope, even * if they don't have `.get` permission of all the resources. Callers should - * have `cloud.assets.SearchAllResources` permission on the requested scope, - * otherwise the request will be rejected. + * have `cloudasset.assets.searchAllResources` permission on the requested + * scope, otherwise the request will be rejected. * * @param {Object} request * The request object that will be sent. @@ -642,8 +642,8 @@ export class AssetServiceClient { * scope (project/folder/organization). This RPC gives callers especially * administrators the ability to search all the IAM policies within a scope, * even if they don't have `.getIamPolicy` permission of all the IAM policies. - * Callers should have `cloud.assets.SearchAllIamPolicies` permission on the - * requested scope, otherwise the request will be rejected. + * Callers should have `cloudasset.assets.searchAllIamPolicies` permission on + * the requested scope, otherwise the request will be rejected. * * @param {Object} request * The request object that will be sent.