Skip to content

Commit 1982935

Browse files
feat: [asset ]Trusted Private Cloud support, use the universeDomain parameter (#5019)
* chore: update copyright year PiperOrigin-RevId: 604681916 Source-Link: googleapis/googleapis@ba2d3a2 Source-Link: googleapis/googleapis-gen@cfe3fb7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiJjZmUzZmI3ZjcyNzY4ZDAwMTRhMzRjMjdjZjMyN2U2NzNlMzZjNjJiIn0= * 🦉 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 * docs: updated comments chore: update copyright year PiperOrigin-RevId: 604682846 Source-Link: googleapis/googleapis@e3b2f14 Source-Link: googleapis/googleapis-gen@fc7aaf1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiJmYzdhYWYxZGI3MDE5M2Y5ZjM4NjA5N2Y4NzIwZGQ2OTk5MGJhNzBiIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update copyright year PiperOrigin-RevId: 604683607 Source-Link: googleapis/googleapis@ee2acb8 Source-Link: googleapis/googleapis-gen@9826b2a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiI5ODI2YjJhN2U3Y2FjMTkwMjIwNjQxOTk0MDA2YjJmNWUwN2IxMThmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update copyright year PiperOrigin-RevId: 604684389 Source-Link: googleapis/googleapis@29c256b Source-Link: googleapis/googleapis-gen@ce394d3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiJjZTM5NGQzNDk4OTdjNzAzYWQ3YjEzNjY4MGRkNjIxY2FkOTBkMTFlIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: update gapic-generator-typescript to v4.4.1 PiperOrigin-RevId: 604765466 Source-Link: googleapis/googleapis@40203ca Source-Link: googleapis/googleapis-gen@07b7f3d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiIwN2I3ZjNkYWQ4YWExOTEyZDRhY2RjZmQ2MzY1YmI0MjM2ZTRiNTRiIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: [asset ]Trusted Private Cloud support, use the universeDomain parameter --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3180809 commit 1982935

29 files changed

Lines changed: 582 additions & 122 deletions

packages/google-cloud-asset/protos/google/cloud/asset/v1/asset_service.proto

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,8 @@ service AssetService {
304304
// * compute.requireOsLogin
305305
// * compute.disableNestedVirtualization
306306
//
307-
// This RPC only returns either resources of types supported by [searchable
308-
// asset
309-
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
307+
// This RPC only returns either resources of types [supported by search
308+
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
310309
// or IAM policies.
311310
rpc AnalyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsRequest)
312311
returns (AnalyzeOrgPolicyGovernedAssetsResponse) {
@@ -984,8 +983,8 @@ message SearchAllResourcesRequest {
984983
string query = 2 [(google.api.field_behavior) = OPTIONAL];
985984

986985
// Optional. A list of asset types that this request searches for. If empty,
987-
// it will search all the [searchable asset
988-
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
986+
// it will search all the asset types [supported by search
987+
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
989988
//
990989
// Regular expressions are also supported. For example:
991990
//
@@ -1152,9 +1151,9 @@ message SearchAllIamPoliciesRequest {
11521151
string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
11531152

11541153
// Optional. A list of asset types that the IAM policies are attached to. If
1155-
// empty, it will search the IAM policies that are attached to all the
1156-
// [searchable asset
1157-
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
1154+
// empty, it will search the IAM policies that are attached to all the asset
1155+
// types [supported by search
1156+
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
11581157
//
11591158
// Regular expressions are also supported. For example:
11601159
//
@@ -2064,8 +2063,8 @@ message BatchGetEffectiveIamPoliciesRequest {
20642063

20652064
// Required. The names refer to the [full_resource_names]
20662065
// (https://cloud.google.com/asset-inventory/docs/resource-name-format)
2067-
// of [searchable asset
2068-
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
2066+
// of the asset types [supported by search
2067+
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
20692068
// A maximum of 20 resources' effective policies can be retrieved in a batch.
20702069
repeated string names = 3 [
20712070
(google.api.field_behavior) = REQUIRED,

packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/assets.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/asset_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/assets.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/asset_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/assets.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-asset/samples/generated/v1/asset_service.analyze_org_policies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function main(scope, constraint) {
7878
};
7979

8080
// Run request
81-
const iterable = await assetClient.analyzeOrgPoliciesAsync(request);
81+
const iterable = assetClient.analyzeOrgPoliciesAsync(request);
8282
for await (const response of iterable) {
8383
console.log(response);
8484
}

packages/google-cloud-asset/samples/generated/v1/asset_service.analyze_org_policy_governed_assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function main(scope, constraint) {
9595
};
9696

9797
// Run request
98-
const iterable = await assetClient.analyzeOrgPolicyGovernedAssetsAsync(request);
98+
const iterable = assetClient.analyzeOrgPolicyGovernedAssetsAsync(request);
9999
for await (const response of iterable) {
100100
console.log(response);
101101
}

packages/google-cloud-asset/samples/generated/v1/asset_service.analyze_org_policy_governed_containers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function main(scope, constraint) {
8080
};
8181

8282
// Run request
83-
const iterable = await assetClient.analyzeOrgPolicyGovernedContainersAsync(request);
83+
const iterable = assetClient.analyzeOrgPolicyGovernedContainersAsync(request);
8484
for await (const response of iterable) {
8585
console.log(response);
8686
}

0 commit comments

Comments
 (0)