public static final class AssetServiceGrpc.AssetServiceFutureStub extends AbstractFutureStub<AssetServiceGrpc.AssetServiceFutureStub>
Asset service definition.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<AnalyzeIamPolicyResponse> |
analyzeIamPolicy(AnalyzeIamPolicyRequest request)
Analyzes IAM policies to answer which identities have what accesses on
which resources.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest request)
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.
|
com.google.common.util.concurrent.ListenableFuture<AnalyzeMoveResponse> |
analyzeMove(AnalyzeMoveRequest request)
Analyze moving a resource to a specified destination without kicking off
the actual move.
|
com.google.common.util.concurrent.ListenableFuture<BatchGetAssetsHistoryResponse> |
batchGetAssetsHistory(BatchGetAssetsHistoryRequest request)
Batch gets the update history of assets that overlap a time window.
|
com.google.common.util.concurrent.ListenableFuture<BatchGetEffectiveIamPoliciesResponse> |
batchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest request)
Gets effective IAM policies for a batch of resources.
|
protected AssetServiceGrpc.AssetServiceFutureStub |
build(Channel channel,
CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Feed> |
createFeed(CreateFeedRequest request)
Creates a feed in a parent project/folder/organization to listen to its
asset updates.
|
com.google.common.util.concurrent.ListenableFuture<SavedQuery> |
createSavedQuery(CreateSavedQueryRequest request)
Creates a saved query in a parent project/folder/organization.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteFeed(DeleteFeedRequest request)
Deletes an asset feed.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteSavedQuery(DeleteSavedQueryRequest request)
Deletes a saved query.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
exportAssets(ExportAssetsRequest request)
Exports assets with time and resource types to a given Cloud Storage
location/BigQuery table.
|
com.google.common.util.concurrent.ListenableFuture<Feed> |
getFeed(GetFeedRequest request)
Gets details about an asset feed.
|
com.google.common.util.concurrent.ListenableFuture<SavedQuery> |
getSavedQuery(GetSavedQueryRequest request)
Gets details about a saved query.
|
com.google.common.util.concurrent.ListenableFuture<ListAssetsResponse> |
listAssets(ListAssetsRequest request)
Lists assets with time and resource types and returns paged results in
response.
|
com.google.common.util.concurrent.ListenableFuture<ListFeedsResponse> |
listFeeds(ListFeedsRequest request)
Lists all asset feeds in a parent project/folder/organization.
|
com.google.common.util.concurrent.ListenableFuture<ListSavedQueriesResponse> |
listSavedQueries(ListSavedQueriesRequest request)
Lists all saved queries in a parent project/folder/organization.
|
com.google.common.util.concurrent.ListenableFuture<QueryAssetsResponse> |
queryAssets(QueryAssetsRequest request)
Issue a job that queries assets using a SQL statement compatible with
[BigQuery Standard
SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
|
com.google.common.util.concurrent.ListenableFuture<SearchAllIamPoliciesResponse> |
searchAllIamPolicies(SearchAllIamPoliciesRequest request)
Searches all IAM policies within the specified scope, such as a project,
folder, or organization.
|
com.google.common.util.concurrent.ListenableFuture<SearchAllResourcesResponse> |
searchAllResources(SearchAllResourcesRequest request)
Searches all Cloud resources within the specified scope, such as a project,
folder, or organization.
|
com.google.common.util.concurrent.ListenableFuture<Feed> |
updateFeed(UpdateFeedRequest request)
Updates an asset feed configuration.
|
com.google.common.util.concurrent.ListenableFuture<SavedQuery> |
updateSavedQuery(UpdateSavedQueryRequest request)
Updates a saved query.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected AssetServiceGrpc.AssetServiceFutureStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<AssetServiceGrpc.AssetServiceFutureStub>
public com.google.common.util.concurrent.ListenableFuture<Operation> exportAssets(ExportAssetsRequest request)
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][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table destinations, the output table stores the fields in asset Protobuf as columns. This API implements the [google.longrunning.Operation][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.
public com.google.common.util.concurrent.ListenableFuture<ListAssetsResponse> listAssets(ListAssetsRequest request)
Lists assets with time and resource types and returns paged results in response.
public com.google.common.util.concurrent.ListenableFuture<BatchGetAssetsHistoryResponse> batchGetAssetsHistory(BatchGetAssetsHistoryRequest request)
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.
public com.google.common.util.concurrent.ListenableFuture<Feed> createFeed(CreateFeedRequest request)
Creates a feed in a parent project/folder/organization to listen to its asset updates.
public com.google.common.util.concurrent.ListenableFuture<Feed> getFeed(GetFeedRequest request)
Gets details about an asset feed.
public com.google.common.util.concurrent.ListenableFuture<ListFeedsResponse> listFeeds(ListFeedsRequest request)
Lists all asset feeds in a parent project/folder/organization.
public com.google.common.util.concurrent.ListenableFuture<Feed> updateFeed(UpdateFeedRequest request)
Updates an asset feed configuration.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteFeed(DeleteFeedRequest request)
Deletes an asset feed.
public com.google.common.util.concurrent.ListenableFuture<SearchAllResourcesResponse> searchAllResources(SearchAllResourcesRequest request)
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.
public com.google.common.util.concurrent.ListenableFuture<SearchAllIamPoliciesResponse> searchAllIamPolicies(SearchAllIamPoliciesRequest request)
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.
public com.google.common.util.concurrent.ListenableFuture<AnalyzeIamPolicyResponse> analyzeIamPolicy(AnalyzeIamPolicyRequest request)
Analyzes IAM policies to answer which identities have what accesses on which resources.
public com.google.common.util.concurrent.ListenableFuture<Operation> analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest request)
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][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the [google.longrunning.Operation][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.
public com.google.common.util.concurrent.ListenableFuture<AnalyzeMoveResponse> analyzeMove(AnalyzeMoveRequest request)
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.
public com.google.common.util.concurrent.ListenableFuture<QueryAssetsResponse> queryAssets(QueryAssetsRequest request)
Issue a job that queries assets using a SQL statement compatible with [BigQuery Standard SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql). If the query execution finishes within timeout and there's no pagination, the full query results will be returned in the `QueryAssetsResponse`. Otherwise, full query results can be obtained by issuing extra requests with the `job_reference` from the a previous `QueryAssets` call. Note, the query result has approximately 10 GB limitation enforced by BigQuery https://cloud.google.com/bigquery/docs/best-practices-performance-output, queries return larger results will result in errors.
public com.google.common.util.concurrent.ListenableFuture<SavedQuery> createSavedQuery(CreateSavedQueryRequest request)
Creates a saved query in a parent project/folder/organization.
public com.google.common.util.concurrent.ListenableFuture<SavedQuery> getSavedQuery(GetSavedQueryRequest request)
Gets details about a saved query.
public com.google.common.util.concurrent.ListenableFuture<ListSavedQueriesResponse> listSavedQueries(ListSavedQueriesRequest request)
Lists all saved queries in a parent project/folder/organization.
public com.google.common.util.concurrent.ListenableFuture<SavedQuery> updateSavedQuery(UpdateSavedQueryRequest request)
Updates a saved query.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteSavedQuery(DeleteSavedQueryRequest request)
Deletes a saved query.
public com.google.common.util.concurrent.ListenableFuture<BatchGetEffectiveIamPoliciesResponse> batchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest request)
Gets effective IAM policies for a batch of resources.
Copyright © 2022 Google LLC. All rights reserved.