From 3919a1df7f6a6ea3a1422afe9e2a15f7b511f621 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 16 Aug 2022 23:08:15 +0000 Subject: [PATCH] feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API (#1300) - [ ] Regenerate this pull request now. Committer: haochunzhang@ PiperOrigin-RevId: 468010360 Source-Link: https://github.com/googleapis/googleapis/commit/4bda29977c0ba0f71873967509b4b715875fe393 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8ed040614d04743f16cf4e4844b716fed998f94c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGVkMDQwNjE0ZDA0NzQzZjE2Y2Y0ZTQ4NDRiNzE2ZmVkOTk4Zjk0YyJ9 feat: Release of query system Committer: lvv@ PiperOrigin-RevId: 466748663 Source-Link: https://github.com/googleapis/googleapis/commit/80d630f734c00f627511254d696149d9e0d7b635 Source-Link: https://github.com/googleapis/googleapis-gen/commit/252f5ade18a31a72f12810bbfd1d83d56a8e72e1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjUyZjVhZGUxOGEzMWE3MmYxMjgxMGJiZmQxZDgzZDU2YThlNzJlMSJ9 feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API Committer: haochunzhang@ PiperOrigin-RevId: 466134014 Source-Link: https://github.com/googleapis/googleapis/commit/63c73fb06ed5920d9a69aa212cedf7481a4e5b4e Source-Link: https://github.com/googleapis/googleapis-gen/commit/2350945f7a70ecaaecf9a1fdd7d6e70ac50e862d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjM1MDk0NWY3YTcwZWNhYWVjZjlhMWZkZDdkNmU3MGFjNTBlODYyZCJ9 --- .../cloud/asset/v1/AssetServiceClient.java | 91 +- .../cloud/asset/v1/AssetServiceSettings.java | 11 + .../google/cloud/asset/v1/gapic_metadata.json | 3 + .../cloud/asset/v1/stub/AssetServiceStub.java | 6 + .../v1/stub/AssetServiceStubSettings.java | 58 +- .../asset/v1/stub/GrpcAssetServiceStub.java | 31 + .../v1/stub/HttpJsonAssetServiceStub.java | 53 + .../v1/AssetServiceClientHttpJsonTest.java | 59 + .../asset/v1/AssetServiceClientTest.java | 61 + .../cloud/asset/v1/MockAssetServiceImpl.java | 21 + .../cloud/asset/v1/AssetServiceGrpc.java | 169 +- .../java/com/google/cloud/asset/v1/Asset.java | 48 +- .../google/cloud/asset/v1/AssetOrBuilder.java | 12 +- .../cloud/asset/v1/AssetServiceProto.java | 754 ++-- .../asset/v1/QueryAssetsOutputConfig.java | 1944 +++++++++++ .../v1/QueryAssetsOutputConfigOrBuilder.java | 67 + .../cloud/asset/v1/QueryAssetsRequest.java | 3046 +++++++++++++++++ .../asset/v1/QueryAssetsRequestOrBuilder.java | 402 +++ .../cloud/asset/v1/QueryAssetsResponse.java | 1739 ++++++++++ .../v1/QueryAssetsResponseOrBuilder.java | 177 + .../google/cloud/asset/v1/QueryResult.java | 1487 ++++++++ .../cloud/asset/v1/QueryResultOrBuilder.java | 149 + .../cloud/asset/v1/ResourceSearchResult.java | 2 + .../asset/v1/SearchAllIamPoliciesRequest.java | 28 +- .../SearchAllIamPoliciesRequestOrBuilder.java | 8 +- .../asset/v1/SearchAllResourcesRequest.java | 56 + .../SearchAllResourcesRequestOrBuilder.java | 16 + .../cloud/asset/v1/TableFieldSchema.java | 1628 +++++++++ .../asset/v1/TableFieldSchemaOrBuilder.java | 191 ++ .../google/cloud/asset/v1/TableSchema.java | 947 +++++ .../cloud/asset/v1/TableSchemaOrBuilder.java | 77 + .../google/cloud/asset/v1/asset_service.proto | 265 +- .../proto/google/cloud/asset/v1/assets.proto | 5 +- .../queryassets/AsyncQueryAssets.java | 53 + .../queryassets/SyncQueryAssets.java | 49 + 35 files changed, 13325 insertions(+), 388 deletions(-) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java create mode 100644 java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java create mode 100644 java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 7e255599931..cae8cc562b8 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -1020,6 +1020,13 @@ public final UnaryCallable deleteFeedCallable() { *
  • `labels.env:*` to find Cloud resources that have a label "env". *
  • `kmsKey:key` to find Cloud resources encrypted with a customer-managed encryption key * whose name contains the word "key". + *
  • `relationships:instance-group-1` to find Cloud resources that have relationships with + * "instance-group-1" in the related resource name. + *
  • `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that have + * relationships of type "INSTANCE_TO_INSTANCEGROUP". + *
  • `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find compute instances + * that have relationships with "instance-group-1" in the compute instance group + * resource name, for relationship type "INSTANCE_TO_INSTANCEGROUP". *
  • `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a word. *
  • `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain "ACTIVE" as a * word. @@ -1219,8 +1226,8 @@ public final SearchAllResourcesPagedResponse searchAllResources( * the specified `scope`. Note that the query string is compared against each Cloud IAM policy * binding, including its principals, roles, and Cloud IAM conditions. The returned Cloud IAM * policies will only contain the bindings that match your query. To learn more about the IAM - * policy structure, see [IAM policy - * doc](https://cloud.google.com/iam/docs/policies#structure). + * policy structure, see the [IAM policy + * documentation](https://cloud.google.com/iam/help/allow-policies/structure). *

    Examples: *