Class AssetServiceGrpc.AssetServiceStub (3.2.17)

public static final class AssetServiceGrpc.AssetServiceStub extends AbstractAsyncStub<AssetServiceGrpc.AssetServiceStub>

Asset service definition.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AssetServiceGrpc.AssetServiceStub

Methods

analyzeIamPolicy(AnalyzeIamPolicyRequest request, StreamObserver<AnalyzeIamPolicyResponse> responseObserver)

public void analyzeIamPolicy(AnalyzeIamPolicyRequest request, StreamObserver<AnalyzeIamPolicyResponse> responseObserver)

Analyzes IAM policies to answer which identities have what accesses on which resources.

Parameters
NameDescription
requestAnalyzeIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AnalyzeIamPolicyResponse>

analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest request, StreamObserver<Operation> responseObserver)

public void analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest request, StreamObserver<Operation> responseObserver)

Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a AnalyzeIamPolicyResponse. This method implements the google.longrunning.Operation, which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the metadata for the long-running operation.

Parameters
NameDescription
requestAnalyzeIamPolicyLongrunningRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

analyzeMove(AnalyzeMoveRequest request, StreamObserver<AnalyzeMoveResponse> responseObserver)

public void analyzeMove(AnalyzeMoveRequest request, StreamObserver<AnalyzeMoveResponse> responseObserver)

Analyze moving a resource to a specified destination without kicking off the actual move. The analysis is best effort depending on the user's permissions of viewing different hierarchical policies and configurations. The policies and configuration are subject to change before the actual resource migration takes place.

Parameters
NameDescription
requestAnalyzeMoveRequest
responseObserverio.grpc.stub.StreamObserver<AnalyzeMoveResponse>

batchGetAssetsHistory(BatchGetAssetsHistoryRequest request, StreamObserver<BatchGetAssetsHistoryResponse> responseObserver)

public void batchGetAssetsHistory(BatchGetAssetsHistoryRequest request, StreamObserver<BatchGetAssetsHistoryResponse> responseObserver)

Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.

Parameters
NameDescription
requestBatchGetAssetsHistoryRequest
responseObserverio.grpc.stub.StreamObserver<BatchGetAssetsHistoryResponse>

build(Channel channel, CallOptions callOptions)

protected AssetServiceGrpc.AssetServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
AssetServiceGrpc.AssetServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createFeed(CreateFeedRequest request, StreamObserver<Feed> responseObserver)

public void createFeed(CreateFeedRequest request, StreamObserver<Feed> responseObserver)

Creates a feed in a parent project/folder/organization to listen to its asset updates.

Parameters
NameDescription
requestCreateFeedRequest
responseObserverio.grpc.stub.StreamObserver<Feed>

deleteFeed(DeleteFeedRequest request, StreamObserver<Empty> responseObserver)

public void deleteFeed(DeleteFeedRequest request, StreamObserver<Empty> responseObserver)

Deletes an asset feed.

Parameters
NameDescription
requestDeleteFeedRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

exportAssets(ExportAssetsRequest request, StreamObserver<Operation> responseObserver)

public void exportAssets(ExportAssetsRequest request, StreamObserver<Operation> responseObserver)

Exports assets with time and resource types to a given Cloud Storage location/BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a google.cloud.asset.v1.Asset in the JSON format; for BigQuery table destinations, the output table stores the fields in asset proto as columns. This API implements the google.longrunning.Operation API , which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.

Parameters
NameDescription
requestExportAssetsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getFeed(GetFeedRequest request, StreamObserver<Feed> responseObserver)

public void getFeed(GetFeedRequest request, StreamObserver<Feed> responseObserver)

Gets details about an asset feed.

Parameters
NameDescription
requestGetFeedRequest
responseObserverio.grpc.stub.StreamObserver<Feed>

listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

public void listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

Lists assets with time and resource types and returns paged results in response.

Parameters
NameDescription
requestListAssetsRequest
responseObserverio.grpc.stub.StreamObserver<ListAssetsResponse>

listFeeds(ListFeedsRequest request, StreamObserver<ListFeedsResponse> responseObserver)

public void listFeeds(ListFeedsRequest request, StreamObserver<ListFeedsResponse> responseObserver)

Lists all asset feeds in a parent project/folder/organization.

Parameters
NameDescription
requestListFeedsRequest
responseObserverio.grpc.stub.StreamObserver<ListFeedsResponse>

searchAllIamPolicies(SearchAllIamPoliciesRequest request, StreamObserver<SearchAllIamPoliciesResponse> responseObserver)

public void searchAllIamPolicies(SearchAllIamPoliciesRequest request, StreamObserver<SearchAllIamPoliciesResponse> responseObserver)

Searches all IAM policies within the specified scope, such as a project, folder, or organization. The caller must be granted the cloudasset.assets.searchAllIamPolicies permission on the desired scope, otherwise the request will be rejected.

Parameters
NameDescription
requestSearchAllIamPoliciesRequest
responseObserverio.grpc.stub.StreamObserver<SearchAllIamPoliciesResponse>

searchAllResources(SearchAllResourcesRequest request, StreamObserver<SearchAllResourcesResponse> responseObserver)

public void searchAllResources(SearchAllResourcesRequest request, StreamObserver<SearchAllResourcesResponse> responseObserver)

Searches all Cloud resources within the specified scope, such as a project, folder, or organization. The caller must be granted the cloudasset.assets.searchAllResources permission on the desired scope, otherwise the request will be rejected.

Parameters
NameDescription
requestSearchAllResourcesRequest
responseObserverio.grpc.stub.StreamObserver<SearchAllResourcesResponse>

updateFeed(UpdateFeedRequest request, StreamObserver<Feed> responseObserver)

public void updateFeed(UpdateFeedRequest request, StreamObserver<Feed> responseObserver)

Updates an asset feed configuration.

Parameters
NameDescription
requestUpdateFeedRequest
responseObserverio.grpc.stub.StreamObserver<Feed>