public sealed class AssetServiceClientImpl : AssetServiceClient
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class AssetServiceClientImpl.
AssetService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Asset.V1Assembly
Google.Cloud.Asset.V1.dll
Remarks
Asset service definition.
Constructors
AssetServiceClientImpl(AssetService.AssetServiceClient, AssetServiceSettings, ILogger)
public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetServiceSettings settings, ILogger logger)
Constructs a client wrapper for the AssetService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | AssetService.AssetServiceClient The underlying gRPC client. |
settings | AssetServiceSettings The base AssetServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
AnalyzeIamPolicyLongrunningOperationsClient
public override OperationsClient AnalyzeIamPolicyLongrunningOperationsClient { get; }
The long-running operations client for AnalyzeIamPolicyLongrunning
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ExportAssetsOperationsClient
public override OperationsClient ExportAssetsOperationsClient { get; }
The long-running operations client for ExportAssets
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override AssetService.AssetServiceClient GrpcClient { get; }
The underlying gRPC AssetService client
Property Value | |
---|---|
Type | Description |
AssetService.AssetServiceClient |
Methods
AnalyzeIamPolicy(AnalyzeIamPolicyRequest, CallSettings)
public override AnalyzeIamPolicyResponse AnalyzeIamPolicy(AnalyzeIamPolicyRequest request, CallSettings callSettings = null)
Analyzes IAM policies to answer which identities have what accesses on which resources.
Parameters | |
---|---|
Name | Description |
request | AnalyzeIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeIamPolicyResponse | The RPC response. |
AnalyzeIamPolicyAsync(AnalyzeIamPolicyRequest, CallSettings)
public override Task<AnalyzeIamPolicyResponse> AnalyzeIamPolicyAsync(AnalyzeIamPolicyRequest request, CallSettings callSettings = null)
Analyzes IAM policies to answer which identities have what accesses on which resources.
Parameters | |
---|---|
Name | Description |
request | AnalyzeIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeIamPolicyResponse> | A Task containing the RPC response. |
AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest, CallSettings)
public override Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata> AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | AnalyzeIamPolicyLongrunningRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata> | The RPC response. |
AnalyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest, CallSettings)
public override async Task<Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata>> AnalyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | AnalyzeIamPolicyLongrunningRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata>> | A Task containing the RPC response. |
AnalyzeMove(AnalyzeMoveRequest, CallSettings)
public override AnalyzeMoveResponse AnalyzeMove(AnalyzeMoveRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | AnalyzeMoveRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AnalyzeMoveResponse | The RPC response. |
AnalyzeMoveAsync(AnalyzeMoveRequest, CallSettings)
public override Task<AnalyzeMoveResponse> AnalyzeMoveAsync(AnalyzeMoveRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | AnalyzeMoveRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<AnalyzeMoveResponse> | A Task containing the RPC response. |
BatchGetAssetsHistory(BatchGetAssetsHistoryRequest, CallSettings)
public override BatchGetAssetsHistoryResponse BatchGetAssetsHistory(BatchGetAssetsHistoryRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | BatchGetAssetsHistoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryResponse | The RPC response. |
BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest, CallSettings)
public override Task<BatchGetAssetsHistoryResponse> BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | BatchGetAssetsHistoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<BatchGetAssetsHistoryResponse> | A Task containing the RPC response. |
BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest, CallSettings)
public override BatchGetEffectiveIamPoliciesResponse BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest request, CallSettings callSettings = null)
Gets effective IAM policies for a batch of resources.
Parameters | |
---|---|
Name | Description |
request | BatchGetEffectiveIamPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BatchGetEffectiveIamPoliciesResponse | The RPC response. |
BatchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest, CallSettings)
public override Task<BatchGetEffectiveIamPoliciesResponse> BatchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest request, CallSettings callSettings = null)
Gets effective IAM policies for a batch of resources.
Parameters | |
---|---|
Name | Description |
request | BatchGetEffectiveIamPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<BatchGetEffectiveIamPoliciesResponse> | A Task containing the RPC response. |
CreateFeed(CreateFeedRequest, CallSettings)
public override Feed CreateFeed(CreateFeedRequest request, CallSettings callSettings = null)
Creates a feed in a parent project/folder/organization to listen to its asset updates.
Parameters | |
---|---|
Name | Description |
request | CreateFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Feed | The RPC response. |
CreateFeedAsync(CreateFeedRequest, CallSettings)
public override Task<Feed> CreateFeedAsync(CreateFeedRequest request, CallSettings callSettings = null)
Creates a feed in a parent project/folder/organization to listen to its asset updates.
Parameters | |
---|---|
Name | Description |
request | CreateFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Feed> | A Task containing the RPC response. |
CreateSavedQuery(CreateSavedQueryRequest, CallSettings)
public override SavedQuery CreateSavedQuery(CreateSavedQueryRequest request, CallSettings callSettings = null)
Creates a saved query in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | CreateSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SavedQuery | The RPC response. |
CreateSavedQueryAsync(CreateSavedQueryRequest, CallSettings)
public override Task<SavedQuery> CreateSavedQueryAsync(CreateSavedQueryRequest request, CallSettings callSettings = null)
Creates a saved query in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | CreateSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SavedQuery> | A Task containing the RPC response. |
DeleteFeed(DeleteFeedRequest, CallSettings)
public override void DeleteFeed(DeleteFeedRequest request, CallSettings callSettings = null)
Deletes an asset feed.
Parameters | |
---|---|
Name | Description |
request | DeleteFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteFeedAsync(DeleteFeedRequest, CallSettings)
public override Task DeleteFeedAsync(DeleteFeedRequest request, CallSettings callSettings = null)
Deletes an asset feed.
Parameters | |
---|---|
Name | Description |
request | DeleteFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
DeleteSavedQuery(DeleteSavedQueryRequest, CallSettings)
public override void DeleteSavedQuery(DeleteSavedQueryRequest request, CallSettings callSettings = null)
Deletes a saved query.
Parameters | |
---|---|
Name | Description |
request | DeleteSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteSavedQueryAsync(DeleteSavedQueryRequest, CallSettings)
public override Task DeleteSavedQueryAsync(DeleteSavedQueryRequest request, CallSettings callSettings = null)
Deletes a saved query.
Parameters | |
---|---|
Name | Description |
request | DeleteSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
ExportAssets(ExportAssetsRequest, CallSettings)
public override Operation<ExportAssetsResponse, ExportAssetsRequest> ExportAssets(ExportAssetsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | ExportAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ExportAssetsResponse, ExportAssetsRequest> | The RPC response. |
ExportAssetsAsync(ExportAssetsRequest, CallSettings)
public override async Task<Operation<ExportAssetsResponse, ExportAssetsRequest>> ExportAssetsAsync(ExportAssetsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | ExportAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ExportAssetsResponse, ExportAssetsRequest>> | A Task containing the RPC response. |
GetFeed(GetFeedRequest, CallSettings)
public override Feed GetFeed(GetFeedRequest request, CallSettings callSettings = null)
Gets details about an asset feed.
Parameters | |
---|---|
Name | Description |
request | GetFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Feed | The RPC response. |
GetFeedAsync(GetFeedRequest, CallSettings)
public override Task<Feed> GetFeedAsync(GetFeedRequest request, CallSettings callSettings = null)
Gets details about an asset feed.
Parameters | |
---|---|
Name | Description |
request | GetFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Feed> | A Task containing the RPC response. |
GetSavedQuery(GetSavedQueryRequest, CallSettings)
public override SavedQuery GetSavedQuery(GetSavedQueryRequest request, CallSettings callSettings = null)
Gets details about a saved query.
Parameters | |
---|---|
Name | Description |
request | GetSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SavedQuery | The RPC response. |
GetSavedQueryAsync(GetSavedQueryRequest, CallSettings)
public override Task<SavedQuery> GetSavedQueryAsync(GetSavedQueryRequest request, CallSettings callSettings = null)
Gets details about a saved query.
Parameters | |
---|---|
Name | Description |
request | GetSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SavedQuery> | A Task containing the RPC response. |
ListAssets(ListAssetsRequest, CallSettings)
public override PagedEnumerable<ListAssetsResponse, Asset> ListAssets(ListAssetsRequest request, CallSettings callSettings = null)
Lists assets with time and resource types and returns paged results in response.
Parameters | |
---|---|
Name | Description |
request | ListAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListAssetsResponse, Asset> | A pageable sequence of Asset resources. |
ListAssetsAsync(ListAssetsRequest, CallSettings)
public override PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(ListAssetsRequest request, CallSettings callSettings = null)
Lists assets with time and resource types and returns paged results in response.
Parameters | |
---|---|
Name | Description |
request | ListAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListAssetsResponse, Asset> | A pageable asynchronous sequence of Asset resources. |
ListFeeds(ListFeedsRequest, CallSettings)
public override ListFeedsResponse ListFeeds(ListFeedsRequest request, CallSettings callSettings = null)
Lists all asset feeds in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | ListFeedsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListFeedsResponse | The RPC response. |
ListFeedsAsync(ListFeedsRequest, CallSettings)
public override Task<ListFeedsResponse> ListFeedsAsync(ListFeedsRequest request, CallSettings callSettings = null)
Lists all asset feeds in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | ListFeedsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ListFeedsResponse> | A Task containing the RPC response. |
ListSavedQueries(ListSavedQueriesRequest, CallSettings)
public override PagedEnumerable<ListSavedQueriesResponse, SavedQuery> ListSavedQueries(ListSavedQueriesRequest request, CallSettings callSettings = null)
Lists all saved queries in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | ListSavedQueriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListSavedQueriesResponse, SavedQuery> | A pageable sequence of SavedQuery resources. |
ListSavedQueriesAsync(ListSavedQueriesRequest, CallSettings)
public override PagedAsyncEnumerable<ListSavedQueriesResponse, SavedQuery> ListSavedQueriesAsync(ListSavedQueriesRequest request, CallSettings callSettings = null)
Lists all saved queries in a parent project/folder/organization.
Parameters | |
---|---|
Name | Description |
request | ListSavedQueriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListSavedQueriesResponse, SavedQuery> | A pageable asynchronous sequence of SavedQuery resources. |
QueryAssets(QueryAssetsRequest, CallSettings)
public override QueryAssetsResponse QueryAssets(QueryAssetsRequest request, CallSettings callSettings = null)
Issue a job that queries assets using a SQL statement compatible with BigQuery 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.
Parameters | |
---|---|
Name | Description |
request | QueryAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
QueryAssetsResponse | The RPC response. |
QueryAssetsAsync(QueryAssetsRequest, CallSettings)
public override Task<QueryAssetsResponse> QueryAssetsAsync(QueryAssetsRequest request, CallSettings callSettings = null)
Issue a job that queries assets using a SQL statement compatible with BigQuery 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.
Parameters | |
---|---|
Name | Description |
request | QueryAssetsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<QueryAssetsResponse> | A Task containing the RPC response. |
SearchAllIamPolicies(SearchAllIamPoliciesRequest, CallSettings)
public override PagedEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult> SearchAllIamPolicies(SearchAllIamPoliciesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | SearchAllIamPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult> | A pageable sequence of IamPolicySearchResult resources. |
SearchAllIamPoliciesAsync(SearchAllIamPoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult> SearchAllIamPoliciesAsync(SearchAllIamPoliciesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | SearchAllIamPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult> | A pageable asynchronous sequence of IamPolicySearchResult resources. |
SearchAllResources(SearchAllResourcesRequest, CallSettings)
public override PagedEnumerable<SearchAllResourcesResponse, ResourceSearchResult> SearchAllResources(SearchAllResourcesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | SearchAllResourcesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<SearchAllResourcesResponse, ResourceSearchResult> | A pageable sequence of ResourceSearchResult resources. |
SearchAllResourcesAsync(SearchAllResourcesRequest, CallSettings)
public override PagedAsyncEnumerable<SearchAllResourcesResponse, ResourceSearchResult> SearchAllResourcesAsync(SearchAllResourcesRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | SearchAllResourcesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<SearchAllResourcesResponse, ResourceSearchResult> | A pageable asynchronous sequence of ResourceSearchResult resources. |
UpdateFeed(UpdateFeedRequest, CallSettings)
public override Feed UpdateFeed(UpdateFeedRequest request, CallSettings callSettings = null)
Updates an asset feed configuration.
Parameters | |
---|---|
Name | Description |
request | UpdateFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Feed | The RPC response. |
UpdateFeedAsync(UpdateFeedRequest, CallSettings)
public override Task<Feed> UpdateFeedAsync(UpdateFeedRequest request, CallSettings callSettings = null)
Updates an asset feed configuration.
Parameters | |
---|---|
Name | Description |
request | UpdateFeedRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Feed> | A Task containing the RPC response. |
UpdateSavedQuery(UpdateSavedQueryRequest, CallSettings)
public override SavedQuery UpdateSavedQuery(UpdateSavedQueryRequest request, CallSettings callSettings = null)
Updates a saved query.
Parameters | |
---|---|
Name | Description |
request | UpdateSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SavedQuery | The RPC response. |
UpdateSavedQueryAsync(UpdateSavedQueryRequest, CallSettings)
public override Task<SavedQuery> UpdateSavedQueryAsync(UpdateSavedQueryRequest request, CallSettings callSettings = null)
Updates a saved query.
Parameters | |
---|---|
Name | Description |
request | UpdateSavedQueryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SavedQuery> | A Task containing the RPC response. |