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

feat(v1): add SearchAllResources and SearchAllIamPolicies RPCs #180

Merged
merged 1 commit into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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