Google Cloud Asset Inventory v1 API - Class AssetServiceClientImpl (3.12.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(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 AssetServiceAssetServiceClient

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
Overrides

ExportAssetsOperationsClient

public override OperationsClient ExportAssetsOperationsClient { get; }

The long-running operations client for ExportAssets.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override AssetService.AssetServiceClient GrpcClient { get; }

The underlying gRPC AssetService client

Property Value
Type Description
AssetServiceAssetServiceClient
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
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.

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
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
TaskAnalyzeIamPolicyResponse

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
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
OperationAnalyzeIamPolicyLongrunningResponseAnalyzeIamPolicyLongrunningMetadata

The RPC response.

Overrides

AnalyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest, CallSettings)

public override 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
TaskOperationAnalyzeIamPolicyLongrunningResponseAnalyzeIamPolicyLongrunningMetadata

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
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.

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
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
TaskAnalyzeMoveResponse

A Task containing the RPC response.

Overrides

AnalyzeOrgPolicies(AnalyzeOrgPoliciesRequest, CallSettings)

public override PagedEnumerable<AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesResponse.Types.OrgPolicyResult> AnalyzeOrgPolicies(AnalyzeOrgPoliciesRequest request, CallSettings callSettings = null)

Analyzes organization policies under a scope.

Parameters
Name Description
request AnalyzeOrgPoliciesRequest

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
PagedEnumerableAnalyzeOrgPoliciesResponseAnalyzeOrgPoliciesResponseTypesOrgPolicyResult

A pageable sequence of AnalyzeOrgPoliciesResponse.Types.OrgPolicyResult resources.

Overrides

AnalyzeOrgPoliciesAsync(AnalyzeOrgPoliciesRequest, CallSettings)

public override PagedAsyncEnumerable<AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesResponse.Types.OrgPolicyResult> AnalyzeOrgPoliciesAsync(AnalyzeOrgPoliciesRequest request, CallSettings callSettings = null)

Analyzes organization policies under a scope.

Parameters
Name Description
request AnalyzeOrgPoliciesRequest

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
PagedAsyncEnumerableAnalyzeOrgPoliciesResponseAnalyzeOrgPoliciesResponseTypesOrgPolicyResult

A pageable asynchronous sequence of AnalyzeOrgPoliciesResponse.Types.OrgPolicyResult resources.

Overrides

AnalyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsRequest, CallSettings)

public override PagedEnumerable<AnalyzeOrgPolicyGovernedAssetsResponse, AnalyzeOrgPolicyGovernedAssetsResponse.Types.GovernedAsset> AnalyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsRequest request, CallSettings callSettings = null)

Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the following canned constraints:

  • constraints/ainotebooks.accessMode
  • constraints/ainotebooks.disableFileDownloads
  • constraints/ainotebooks.disableRootAccess
  • constraints/ainotebooks.disableTerminal
  • constraints/ainotebooks.environmentOptions
  • constraints/ainotebooks.requireAutoUpgradeSchedule
  • constraints/ainotebooks.restrictVpcNetworks
  • constraints/compute.disableGuestAttributesAccess
  • constraints/compute.disableInstanceDataAccessApis
  • constraints/compute.disableNestedVirtualization
  • constraints/compute.disableSerialPortAccess
  • constraints/compute.disableSerialPortLogging
  • constraints/compute.disableVpcExternalIpv6
  • constraints/compute.requireOsLogin
  • constraints/compute.requireShieldedVm
  • constraints/compute.restrictLoadBalancerCreationForTypes
  • constraints/compute.restrictProtocolForwardingCreationForTypes
  • constraints/compute.restrictXpnProjectLienRemoval
  • constraints/compute.setNewProjectDefaultToZonalDNSOnly
  • constraints/compute.skipDefaultNetworkCreation
  • constraints/compute.trustedImageProjects
  • constraints/compute.vmCanIpForward
  • constraints/compute.vmExternalIpAccess
  • constraints/gcp.detailedAuditLoggingMode
  • constraints/gcp.resourceLocations
  • constraints/iam.allowedPolicyMemberDomains
  • constraints/iam.automaticIamGrantsForDefaultServiceAccounts
  • constraints/iam.disableServiceAccountCreation
  • constraints/iam.disableServiceAccountKeyCreation
  • constraints/iam.disableServiceAccountKeyUpload
  • constraints/iam.restrictCrossProjectServiceAccountLienRemoval
  • constraints/iam.serviceAccountKeyExpiryHours
  • constraints/resourcemanager.accessBoundaries
  • constraints/resourcemanager.allowedExportDestinations
  • constraints/sql.restrictAuthorizedNetworks
  • constraints/sql.restrictNoncompliantDiagnosticDataAccess
  • constraints/sql.restrictNoncompliantResourceCreation
  • constraints/sql.restrictPublicIp
  • constraints/storage.publicAccessPrevention
  • constraints/storage.restrictAuthTypes
  • constraints/storage.uniformBucketLevelAccess

This RPC only returns either resources of types supported by search APIs or IAM policies.

Parameters
Name Description
request AnalyzeOrgPolicyGovernedAssetsRequest

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
PagedEnumerableAnalyzeOrgPolicyGovernedAssetsResponseAnalyzeOrgPolicyGovernedAssetsResponseTypesGovernedAsset

A pageable sequence of AnalyzeOrgPolicyGovernedAssetsResponse.Types.GovernedAsset resources.

Overrides

AnalyzeOrgPolicyGovernedAssetsAsync(AnalyzeOrgPolicyGovernedAssetsRequest, CallSettings)

public override PagedAsyncEnumerable<AnalyzeOrgPolicyGovernedAssetsResponse, AnalyzeOrgPolicyGovernedAssetsResponse.Types.GovernedAsset> AnalyzeOrgPolicyGovernedAssetsAsync(AnalyzeOrgPolicyGovernedAssetsRequest request, CallSettings callSettings = null)

Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the following canned constraints:

  • constraints/ainotebooks.accessMode
  • constraints/ainotebooks.disableFileDownloads
  • constraints/ainotebooks.disableRootAccess
  • constraints/ainotebooks.disableTerminal
  • constraints/ainotebooks.environmentOptions
  • constraints/ainotebooks.requireAutoUpgradeSchedule
  • constraints/ainotebooks.restrictVpcNetworks
  • constraints/compute.disableGuestAttributesAccess
  • constraints/compute.disableInstanceDataAccessApis
  • constraints/compute.disableNestedVirtualization
  • constraints/compute.disableSerialPortAccess
  • constraints/compute.disableSerialPortLogging
  • constraints/compute.disableVpcExternalIpv6
  • constraints/compute.requireOsLogin
  • constraints/compute.requireShieldedVm
  • constraints/compute.restrictLoadBalancerCreationForTypes
  • constraints/compute.restrictProtocolForwardingCreationForTypes
  • constraints/compute.restrictXpnProjectLienRemoval
  • constraints/compute.setNewProjectDefaultToZonalDNSOnly
  • constraints/compute.skipDefaultNetworkCreation
  • constraints/compute.trustedImageProjects
  • constraints/compute.vmCanIpForward
  • constraints/compute.vmExternalIpAccess
  • constraints/gcp.detailedAuditLoggingMode
  • constraints/gcp.resourceLocations
  • constraints/iam.allowedPolicyMemberDomains
  • constraints/iam.automaticIamGrantsForDefaultServiceAccounts
  • constraints/iam.disableServiceAccountCreation
  • constraints/iam.disableServiceAccountKeyCreation
  • constraints/iam.disableServiceAccountKeyUpload
  • constraints/iam.restrictCrossProjectServiceAccountLienRemoval
  • constraints/iam.serviceAccountKeyExpiryHours
  • constraints/resourcemanager.accessBoundaries
  • constraints/resourcemanager.allowedExportDestinations
  • constraints/sql.restrictAuthorizedNetworks
  • constraints/sql.restrictNoncompliantDiagnosticDataAccess
  • constraints/sql.restrictNoncompliantResourceCreation
  • constraints/sql.restrictPublicIp
  • constraints/storage.publicAccessPrevention
  • constraints/storage.restrictAuthTypes
  • constraints/storage.uniformBucketLevelAccess

This RPC only returns either resources of types supported by search APIs or IAM policies.

Parameters
Name Description
request AnalyzeOrgPolicyGovernedAssetsRequest

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
PagedAsyncEnumerableAnalyzeOrgPolicyGovernedAssetsResponseAnalyzeOrgPolicyGovernedAssetsResponseTypesGovernedAsset

A pageable asynchronous sequence of AnalyzeOrgPolicyGovernedAssetsResponse.Types.GovernedAsset resources.

Overrides

AnalyzeOrgPolicyGovernedContainers(AnalyzeOrgPolicyGovernedContainersRequest, CallSettings)

public override PagedEnumerable<AnalyzeOrgPolicyGovernedContainersResponse, AnalyzeOrgPolicyGovernedContainersResponse.Types.GovernedContainer> AnalyzeOrgPolicyGovernedContainers(AnalyzeOrgPolicyGovernedContainersRequest request, CallSettings callSettings = null)

Analyzes organization policies governed containers (projects, folders or organization) under a scope.

Parameters
Name Description
request AnalyzeOrgPolicyGovernedContainersRequest

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
PagedEnumerableAnalyzeOrgPolicyGovernedContainersResponseAnalyzeOrgPolicyGovernedContainersResponseTypesGovernedContainer

A pageable sequence of AnalyzeOrgPolicyGovernedContainersResponse.Types.GovernedContainer resources.

Overrides

AnalyzeOrgPolicyGovernedContainersAsync(AnalyzeOrgPolicyGovernedContainersRequest, CallSettings)

public override PagedAsyncEnumerable<AnalyzeOrgPolicyGovernedContainersResponse, AnalyzeOrgPolicyGovernedContainersResponse.Types.GovernedContainer> AnalyzeOrgPolicyGovernedContainersAsync(AnalyzeOrgPolicyGovernedContainersRequest request, CallSettings callSettings = null)

Analyzes organization policies governed containers (projects, folders or organization) under a scope.

Parameters
Name Description
request AnalyzeOrgPolicyGovernedContainersRequest

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
PagedAsyncEnumerableAnalyzeOrgPolicyGovernedContainersResponseAnalyzeOrgPolicyGovernedContainersResponseTypesGovernedContainer

A pageable asynchronous sequence of AnalyzeOrgPolicyGovernedContainersResponse.Types.GovernedContainer resources.

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
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.

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
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
TaskBatchGetAssetsHistoryResponse

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
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.

Overrides

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
TaskBatchGetEffectiveIamPoliciesResponse

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
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.

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
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
TaskFeed

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
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.

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
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
TaskSavedQuery

A Task containing the RPC response.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

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
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
OperationExportAssetsResponseExportAssetsRequest

The RPC response.

Overrides

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 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
TaskOperationExportAssetsResponseExportAssetsRequest

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
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.

Overrides

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
TaskFeed

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
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.

Overrides

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
TaskSavedQuery

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
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
PagedEnumerableListAssetsResponseAsset

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
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
PagedAsyncEnumerableListAssetsResponseAsset

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
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.

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
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
TaskListFeedsResponse

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
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
PagedEnumerableListSavedQueriesResponseSavedQuery

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
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
PagedAsyncEnumerableListSavedQueriesResponseSavedQuery

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 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. 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.

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 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. 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
TaskQueryAssetsResponse

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
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
PagedEnumerableSearchAllIamPoliciesResponseIamPolicySearchResult

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
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
PagedAsyncEnumerableSearchAllIamPoliciesResponseIamPolicySearchResult

A pageable asynchronous sequence of IamPolicySearchResult resources.

Overrides

SearchAllResources(SearchAllResourcesRequest, CallSettings)

public override PagedEnumerable<SearchAllResourcesResponse, ResourceSearchResult> SearchAllResources(SearchAllResourcesRequest request, CallSettings callSettings = null)

Searches all Google 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
PagedEnumerableSearchAllResourcesResponseResourceSearchResult

A pageable sequence of ResourceSearchResult resources.

Overrides

SearchAllResourcesAsync(SearchAllResourcesRequest, CallSettings)

public override PagedAsyncEnumerable<SearchAllResourcesResponse, ResourceSearchResult> SearchAllResourcesAsync(SearchAllResourcesRequest request, CallSettings callSettings = null)

Searches all Google 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
PagedAsyncEnumerableSearchAllResourcesResponseResourceSearchResult

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
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.

Overrides

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
TaskFeed

A Task containing the RPC response.

Overrides

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.

Overrides

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
TaskSavedQuery

A Task containing the RPC response.

Overrides