Skip to content
Permalink
Browse files
feat(v1): add SearchAllResources and SearchAllIamPolicies RPCs (#180)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/7a562538-f49e-491d-91f9-0726c779942e/targets

PiperOrigin-RevId: 311601348
Source-Link: googleapis/googleapis@2433bd5
  • Loading branch information
yoshi-automation committed May 26, 2020
1 parent c87691e commit 6127fa0a61bb9182458293eb9b453861952126b4
Showing with 15,176 additions and 176 deletions.
  1. +476 −0 google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java
  2. +36 −0 google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java
  3. +27 −0 google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java
  4. +219 −2 google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java
  5. +103 −0 google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java
  6. +111 −0 google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java
  7. +32 −0 google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java
  8. +278 −8 grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java
  9. +135 −20 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java
  10. +107 −36 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java
  11. +24 −36 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java
  12. +6 −9 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
  13. +8 −4 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java
  14. +3,435 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java
  15. +207 −0 ...google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
  16. +184 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java
  17. +27 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java
  18. +2,780 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java
  19. +443 −0 ...-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java
  20. +1,275 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java
  21. +169 −0 ...-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java
  22. +1,162 −0 ...o-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java
  23. +111 −0 ...cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java
  24. +1,869 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java
  25. +285 −0 ...le-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java
  26. +1,161 −0 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java
  27. +111 −0 ...e-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java
  28. +24 −24 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
  29. +6 −6 proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java
  30. +193 −19 proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
  31. +162 −2 proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
  32. +10 −10 synth.metadata

Large diffs are not rendered by default.

@@ -15,6 +15,9 @@
*/
package com.google.cloud.asset.v1;

import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -24,6 +27,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.asset.v1.stub.AssetServiceStubSettings;
@@ -111,6 +115,22 @@ public UnaryCallSettings<UpdateFeedRequest, Feed> updateFeedSettings() {
return ((AssetServiceStubSettings) getStubSettings()).updateFeedSettings();
}

/** Returns the object with the settings used for calls to searchAllResources. */
public PagedCallSettings<
SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse>
searchAllResourcesSettings() {
return ((AssetServiceStubSettings) getStubSettings()).searchAllResourcesSettings();
}

/** Returns the object with the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings<
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return ((AssetServiceStubSettings) getStubSettings()).searchAllIamPoliciesSettings();
}

public static final AssetServiceSettings create(AssetServiceStubSettings stub)
throws IOException {
return new AssetServiceSettings.Builder(stub.toBuilder()).build();
@@ -253,6 +273,22 @@ public UnaryCallSettings.Builder<UpdateFeedRequest, Feed> updateFeedSettings() {
return getStubSettingsBuilder().updateFeedSettings();
}

/** Returns the builder for the settings used for calls to searchAllResources. */
public PagedCallSettings.Builder<
SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse>
searchAllResourcesSettings() {
return getStubSettingsBuilder().searchAllResourcesSettings();
}

/** Returns the builder for the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings.Builder<
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return getStubSettingsBuilder().searchAllIamPoliciesSettings();
}

@Override
public AssetServiceSettings build() throws IOException {
return new AssetServiceSettings(this);
@@ -15,6 +15,9 @@
*/
package com.google.cloud.asset.v1.stub;

import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
@@ -29,6 +32,10 @@
import com.google.cloud.asset.v1.GetFeedRequest;
import com.google.cloud.asset.v1.ListFeedsRequest;
import com.google.cloud.asset.v1.ListFeedsResponse;
import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
import com.google.cloud.asset.v1.SearchAllIamPoliciesResponse;
import com.google.cloud.asset.v1.SearchAllResourcesRequest;
import com.google.cloud.asset.v1.SearchAllResourcesResponse;
import com.google.cloud.asset.v1.UpdateFeedRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
@@ -85,6 +92,26 @@ public UnaryCallable<UpdateFeedRequest, Feed> updateFeedCallable() {
throw new UnsupportedOperationException("Not implemented: updateFeedCallable()");
}

public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesPagedResponse>
searchAllResourcesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllResourcesPagedCallable()");
}

public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesResponse>
searchAllResourcesCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllResourcesCallable()");
}

public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesPagedCallable()");
}

public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse>
searchAllIamPoliciesCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesCallable()");
}

@Override
public abstract void close();
}

0 comments on commit 6127fa0

Please sign in to comment.