Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat(v1): add SearchAllResources and SearchAllIamPolicies RPCs (#180)
Browse files Browse the repository at this point in the history
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 authored May 26, 2020
1 parent c87691e commit 6127fa0
Show file tree
Hide file tree
Showing 32 changed files with 15,176 additions and 176 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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();
}
Loading

0 comments on commit 6127fa0

Please sign in to comment.