Google Cloud Asset Inventory v1 API - Class AssetServiceClientImpl (3.2.0)

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.

Inheritance

Object > AssetServiceClient > AssetServiceClientImpl

Namespace

Google.Cloud.Asset.V1

Assembly

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
NameDescription
grpcClientAssetService.AssetServiceClient

The underlying gRPC client.

settingsAssetServiceSettings

The base AssetServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

AnalyzeIamPolicyLongrunningOperationsClient

public override OperationsClient AnalyzeIamPolicyLongrunningOperationsClient { get; }

The long-running operations client for AnalyzeIamPolicyLongrunning.

Property Value
TypeDescription
OperationsClient
Overrides

ExportAssetsOperationsClient

public override OperationsClient ExportAssetsOperationsClient { get; }

The long-running operations client for ExportAssets.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override AssetService.AssetServiceClient GrpcClient { get; }

The underlying gRPC AssetService client

Property Value
TypeDescription
AssetService.AssetServiceClient
Overrides

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
NameDescription
requestAnalyzeIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AnalyzeIamPolicyResponse

The RPC response.

Overrides

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
NameDescription
requestAnalyzeIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AnalyzeIamPolicyResponse>

A Task containing the RPC response.

Overrides

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
NameDescription
requestAnalyzeIamPolicyLongrunningRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata>

The RPC response.

Overrides

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
NameDescription
requestAnalyzeIamPolicyLongrunningRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningMetadata>>

A Task containing the RPC response.

Overrides

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
NameDescription
requestAnalyzeMoveRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AnalyzeMoveResponse

The RPC response.

Overrides

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
NameDescription
requestAnalyzeMoveRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AnalyzeMoveResponse>

A Task containing the RPC response.

Overrides

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
NameDescription
requestBatchGetAssetsHistoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchGetAssetsHistoryResponse

The RPC response.

Overrides

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
NameDescription
requestBatchGetAssetsHistoryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<BatchGetAssetsHistoryResponse>

A Task containing the RPC response.

Overrides

BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest, CallSettings)

public override BatchGetEffectiveIamPoliciesResponse BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest request, CallSettings callSettings = null)

Gets effective IAM policies for a batch of resources.

Parameters
NameDescription
requestBatchGetEffectiveIamPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchGetEffectiveIamPoliciesResponse

The RPC response.

Overrides

BatchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest, CallSettings)

public override Task<BatchGetEffectiveIamPoliciesResponse> BatchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest request, CallSettings callSettings = null)

Gets effective IAM policies for a batch of resources.

Parameters
NameDescription
requestBatchGetEffectiveIamPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<BatchGetEffectiveIamPoliciesResponse>

A Task containing the RPC response.

Overrides

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
NameDescription
requestCreateFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Feed

The RPC response.

Overrides

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
NameDescription
requestCreateFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Feed>

A Task containing the RPC response.

Overrides

CreateSavedQuery(CreateSavedQueryRequest, CallSettings)

public override SavedQuery CreateSavedQuery(CreateSavedQueryRequest request, CallSettings callSettings = null)

Creates a saved query in a parent project/folder/organization.

Parameters
NameDescription
requestCreateSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SavedQuery

The RPC response.

Overrides

CreateSavedQueryAsync(CreateSavedQueryRequest, CallSettings)

public override Task<SavedQuery> CreateSavedQueryAsync(CreateSavedQueryRequest request, CallSettings callSettings = null)

Creates a saved query in a parent project/folder/organization.

Parameters
NameDescription
requestCreateSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SavedQuery>

A Task containing the RPC response.

Overrides

DeleteFeed(DeleteFeedRequest, CallSettings)

public override void DeleteFeed(DeleteFeedRequest request, CallSettings callSettings = null)

Deletes an asset feed.

Parameters
NameDescription
requestDeleteFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteFeedAsync(DeleteFeedRequest, CallSettings)

public override Task DeleteFeedAsync(DeleteFeedRequest request, CallSettings callSettings = null)

Deletes an asset feed.

Parameters
NameDescription
requestDeleteFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

DeleteSavedQuery(DeleteSavedQueryRequest, CallSettings)

public override void DeleteSavedQuery(DeleteSavedQueryRequest request, CallSettings callSettings = null)

Deletes a saved query.

Parameters
NameDescription
requestDeleteSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteSavedQueryAsync(DeleteSavedQueryRequest, CallSettings)

public override Task DeleteSavedQueryAsync(DeleteSavedQueryRequest request, CallSettings callSettings = null)

Deletes a saved query.

Parameters
NameDescription
requestDeleteSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

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
NameDescription
requestExportAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ExportAssetsResponse, ExportAssetsRequest>

The RPC response.

Overrides

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
NameDescription
requestExportAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ExportAssetsResponse, ExportAssetsRequest>>

A Task containing the RPC response.

Overrides

GetFeed(GetFeedRequest, CallSettings)

public override Feed GetFeed(GetFeedRequest request, CallSettings callSettings = null)

Gets details about an asset feed.

Parameters
NameDescription
requestGetFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Feed

The RPC response.

Overrides

GetFeedAsync(GetFeedRequest, CallSettings)

public override Task<Feed> GetFeedAsync(GetFeedRequest request, CallSettings callSettings = null)

Gets details about an asset feed.

Parameters
NameDescription
requestGetFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Feed>

A Task containing the RPC response.

Overrides

GetSavedQuery(GetSavedQueryRequest, CallSettings)

public override SavedQuery GetSavedQuery(GetSavedQueryRequest request, CallSettings callSettings = null)

Gets details about a saved query.

Parameters
NameDescription
requestGetSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SavedQuery

The RPC response.

Overrides

GetSavedQueryAsync(GetSavedQueryRequest, CallSettings)

public override Task<SavedQuery> GetSavedQueryAsync(GetSavedQueryRequest request, CallSettings callSettings = null)

Gets details about a saved query.

Parameters
NameDescription
requestGetSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SavedQuery>

A Task containing the RPC response.

Overrides

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
NameDescription
requestListAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAssetsResponse, Asset>

A pageable sequence of Asset resources.

Overrides

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
NameDescription
requestListAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAssetsResponse, Asset>

A pageable asynchronous sequence of Asset resources.

Overrides

ListFeeds(ListFeedsRequest, CallSettings)

public override ListFeedsResponse ListFeeds(ListFeedsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListFeedsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListFeedsResponse

The RPC response.

Overrides

ListFeedsAsync(ListFeedsRequest, CallSettings)

public override Task<ListFeedsResponse> ListFeedsAsync(ListFeedsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListFeedsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListFeedsResponse>

A Task containing the RPC response.

Overrides

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
NameDescription
requestListSavedQueriesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListSavedQueriesResponse, SavedQuery>

A pageable sequence of SavedQuery resources.

Overrides

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
NameDescription
requestListSavedQueriesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListSavedQueriesResponse, SavedQuery>

A pageable asynchronous sequence of SavedQuery resources.

Overrides

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
NameDescription
requestQueryAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
QueryAssetsResponse

The RPC response.

Overrides

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
NameDescription
requestQueryAssetsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<QueryAssetsResponse>

A Task containing the RPC response.

Overrides

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
NameDescription
requestSearchAllIamPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult>

A pageable sequence of IamPolicySearchResult resources.

Overrides

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
NameDescription
requestSearchAllIamPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<SearchAllIamPoliciesResponse, IamPolicySearchResult>

A pageable asynchronous sequence of IamPolicySearchResult resources.

Overrides

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
NameDescription
requestSearchAllResourcesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<SearchAllResourcesResponse, ResourceSearchResult>

A pageable sequence of ResourceSearchResult resources.

Overrides

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
NameDescription
requestSearchAllResourcesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<SearchAllResourcesResponse, ResourceSearchResult>

A pageable asynchronous sequence of ResourceSearchResult resources.

Overrides

UpdateFeed(UpdateFeedRequest, CallSettings)

public override Feed UpdateFeed(UpdateFeedRequest request, CallSettings callSettings = null)

Updates an asset feed configuration.

Parameters
NameDescription
requestUpdateFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Feed

The RPC response.

Overrides

UpdateFeedAsync(UpdateFeedRequest, CallSettings)

public override Task<Feed> UpdateFeedAsync(UpdateFeedRequest request, CallSettings callSettings = null)

Updates an asset feed configuration.

Parameters
NameDescription
requestUpdateFeedRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Feed>

A Task containing the RPC response.

Overrides

UpdateSavedQuery(UpdateSavedQueryRequest, CallSettings)

public override SavedQuery UpdateSavedQuery(UpdateSavedQueryRequest request, CallSettings callSettings = null)

Updates a saved query.

Parameters
NameDescription
requestUpdateSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SavedQuery

The RPC response.

Overrides

UpdateSavedQueryAsync(UpdateSavedQueryRequest, CallSettings)

public override Task<SavedQuery> UpdateSavedQueryAsync(UpdateSavedQueryRequest request, CallSettings callSettings = null)

Updates a saved query.

Parameters
NameDescription
requestUpdateSavedQueryRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SavedQuery>

A Task containing the RPC response.

Overrides