public sealed class AssetServiceClientImpl : AssetServiceClient
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)
public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetServiceSettings settings)
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. |
Properties
AnalyzeIamPolicyLongrunningOperationsClient
public override OperationsClient AnalyzeIamPolicyLongrunningOperationsClient { get; }
The long-running operations client for AnalyzeIamPolicyLongrunning
.
Property Value | |
---|---|
Type | Description |
Google.LongRunning.OperationsClient |
ExportAssetsOperationsClient
public override OperationsClient ExportAssetsOperationsClient { get; }
The long-running operations client for ExportAssets
.
Property Value | |
---|---|
Type | Description |
Google.LongRunning.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, AnalyzeIamPolicyLongrunningRequest> 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 request to help callers to map responses to requests.
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 |
Google.LongRunning.Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningRequest> | The RPC response. |
AnalyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest, CallSettings)
public override Task<Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningRequest>> 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 request to help callers to map responses to requests.
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<Google.LongRunning.Operation<AnalyzeIamPolicyLongrunningResponse, AnalyzeIamPolicyLongrunningRequest>> | 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. |
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. |
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. |
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 proto 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 |
Google.LongRunning.Operation<ExportAssetsResponse, ExportAssetsRequest> | The RPC response. |
ExportAssetsAsync(ExportAssetsRequest, CallSettings)
public override 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 proto 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<Google.LongRunning.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. |
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. |
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. |