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

feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API #1300

Merged
merged 6 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed Aug 8, 2022
commit e08911b6b27b16c5cddf1c51cb5b4cfd7e6d5a79

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
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.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.asset.v1.stub.AssetServiceStubSettings;
Expand All @@ -49,9 +48,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (cloudasset.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>The default service address (cloudasset.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -135,7 +134,8 @@ public UnaryCallSettings<DeleteFeedRequest, Empty> deleteFeedSettings() {

/** Returns the object with the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return ((AssetServiceStubSettings) getStubSettings()).searchAllIamPoliciesSettings();
Expand All @@ -155,7 +155,8 @@ public UnaryCallSettings<DeleteFeedRequest, Empty> deleteFeedSettings() {

/** Returns the object with the settings used for calls to analyzeIamPolicyLongrunning. */
public OperationCallSettings<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings() {
return ((AssetServiceStubSettings) getStubSettings())
Expand Down Expand Up @@ -374,7 +375,8 @@ public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings()

/** Returns the builder for the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings.Builder<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return getStubSettingsBuilder().searchAllIamPoliciesSettings();
Expand All @@ -394,7 +396,8 @@ public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings()

/** Returns the builder for the settings used for calls to analyzeIamPolicyLongrunning. */
public OperationCallSettings.Builder<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings() {
return getStubSettingsBuilder().analyzeIamPolicyLongrunningOperationSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public UnaryCallable<DeleteFeedRequest, Empty> deleteFeedCallable() {
}

public OperationCallable<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable() {
throw new UnsupportedOperationException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (cloudasset.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>The default service address (cloudasset.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -154,15 +154,17 @@ public class AssetServiceStubSettings extends StubSettings<AssetServiceStubSetti
SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse>
searchAllResourcesSettings;
private final PagedCallSettings<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings;
private final UnaryCallSettings<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse>
analyzeIamPolicySettings;
private final UnaryCallSettings<AnalyzeIamPolicyLongrunningRequest, Operation>
analyzeIamPolicyLongrunningSettings;
private final OperationCallSettings<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings;
private final UnaryCallSettings<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveSettings;
Expand Down Expand Up @@ -355,7 +357,8 @@ public ApiFuture<ListAssetsPagedResponse> getFuturePagedResponse(
SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse>
SEARCH_ALL_RESOURCES_PAGE_STR_FACT =
new PagedListResponseFactory<
SearchAllResourcesRequest, SearchAllResourcesResponse,
SearchAllResourcesRequest,
SearchAllResourcesResponse,
SearchAllResourcesPagedResponse>() {
@Override
public ApiFuture<SearchAllResourcesPagedResponse> getFuturePagedResponse(
Expand All @@ -373,11 +376,13 @@ public ApiFuture<SearchAllResourcesPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
SEARCH_ALL_IAM_POLICIES_PAGE_STR_FACT =
new PagedListResponseFactory<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>() {
@Override
public ApiFuture<SearchAllIamPoliciesPagedResponse> getFuturePagedResponse(
Expand All @@ -386,7 +391,8 @@ public ApiFuture<SearchAllIamPoliciesPagedResponse> getFuturePagedResponse(
ApiCallContext context,
ApiFuture<SearchAllIamPoliciesResponse> futureResponse) {
PageContext<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
IamPolicySearchResult>
pageContext =
PageContext.create(
Expand Down Expand Up @@ -471,7 +477,8 @@ public UnaryCallSettings<DeleteFeedRequest, Empty> deleteFeedSettings() {

/** Returns the object with the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return searchAllIamPoliciesSettings;
Expand All @@ -491,7 +498,8 @@ public UnaryCallSettings<DeleteFeedRequest, Empty> deleteFeedSettings() {

/** Returns the object with the settings used for calls to analyzeIamPolicyLongrunning. */
public OperationCallSettings<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings() {
return analyzeIamPolicyLongrunningOperationSettings;
Expand Down Expand Up @@ -690,15 +698,17 @@ public static class Builder extends StubSettings.Builder<AssetServiceStubSetting
SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse>
searchAllResourcesSettings;
private final PagedCallSettings.Builder<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings;
private final UnaryCallSettings.Builder<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse>
analyzeIamPolicySettings;
private final UnaryCallSettings.Builder<AnalyzeIamPolicyLongrunningRequest, Operation>
analyzeIamPolicyLongrunningSettings;
private final OperationCallSettings.Builder<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings;
private final UnaryCallSettings.Builder<AnalyzeMoveRequest, AnalyzeMoveResponse>
Expand Down Expand Up @@ -1160,7 +1170,8 @@ public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings()

/** Returns the builder for the settings used for calls to searchAllIamPolicies. */
public PagedCallSettings.Builder<
SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse,
SearchAllIamPoliciesRequest,
SearchAllIamPoliciesResponse,
SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings() {
return searchAllIamPoliciesSettings;
Expand All @@ -1182,7 +1193,8 @@ public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings()
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings() {
return analyzeIamPolicyLongrunningOperationSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -293,7 +292,8 @@ public class GrpcAssetServiceStub extends AssetServiceStub {
private final UnaryCallable<AnalyzeIamPolicyLongrunningRequest, Operation>
analyzeIamPolicyLongrunningCallable;
private final OperationCallable<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable;
private final UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveCallable;
Expand Down Expand Up @@ -750,7 +750,8 @@ public UnaryCallable<DeleteFeedRequest, Empty> deleteFeedCallable() {

@Override
public OperationCallable<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable() {
return analyzeIamPolicyLongrunningOperationCallable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
Expand Down Expand Up @@ -828,7 +827,8 @@ public class HttpJsonAssetServiceStub extends AssetServiceStub {
private final UnaryCallable<AnalyzeIamPolicyLongrunningRequest, Operation>
analyzeIamPolicyLongrunningCallable;
private final OperationCallable<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable;
private final UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveCallable;
Expand Down Expand Up @@ -1215,7 +1215,8 @@ public UnaryCallable<DeleteFeedRequest, Empty> deleteFeedCallable() {

@Override
public OperationCallable<
AnalyzeIamPolicyLongrunningRequest, AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable() {
return analyzeIamPolicyLongrunningOperationCallable;
Expand Down
Loading