Class AssetServiceConnection (2.18.0)

This interface defines virtual methods for each of the user-facing overload sets in AssetServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AssetServiceClient.

To create a concrete instance, see MakeAssetServiceConnection().

For mocking, see asset_v1_mocks::MockAssetServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ExportAssets(google::cloud::asset::v1::ExportAssetsRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::ExportAssetsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::asset::v1::ExportAssetsResponse > >

virtual ListAssets(google::cloud::asset::v1::ListAssetsRequest)

Parameter
Name Description
request google::cloud::asset::v1::ListAssetsRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::Asset >

virtual BatchGetAssetsHistory(google::cloud::asset::v1::BatchGetAssetsHistoryRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::BatchGetAssetsHistoryRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::BatchGetAssetsHistoryResponse >

virtual CreateFeed(google::cloud::asset::v1::CreateFeedRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::CreateFeedRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::Feed >

virtual GetFeed(google::cloud::asset::v1::GetFeedRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::GetFeedRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::Feed >

virtual ListFeeds(google::cloud::asset::v1::ListFeedsRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::ListFeedsRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::ListFeedsResponse >

virtual UpdateFeed(google::cloud::asset::v1::UpdateFeedRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::UpdateFeedRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::Feed >

virtual DeleteFeed(google::cloud::asset::v1::DeleteFeedRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::DeleteFeedRequest const &
Returns
Type Description
Status

virtual SearchAllResources(google::cloud::asset::v1::SearchAllResourcesRequest)

Parameter
Name Description
request google::cloud::asset::v1::SearchAllResourcesRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::ResourceSearchResult >

virtual SearchAllIamPolicies(google::cloud::asset::v1::SearchAllIamPoliciesRequest)

Parameter
Name Description
request google::cloud::asset::v1::SearchAllIamPoliciesRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::IamPolicySearchResult >

virtual AnalyzeIamPolicy(google::cloud::asset::v1::AnalyzeIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::AnalyzeIamPolicyResponse >

virtual AnalyzeIamPolicyLongrunning(google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const &
Returns
Type Description
future< StatusOr< google::cloud::asset::v1::AnalyzeIamPolicyLongrunningResponse > >

virtual AnalyzeMove(google::cloud::asset::v1::AnalyzeMoveRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeMoveRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::AnalyzeMoveResponse >

virtual QueryAssets(google::cloud::asset::v1::QueryAssetsRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::QueryAssetsRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::QueryAssetsResponse >

virtual CreateSavedQuery(google::cloud::asset::v1::CreateSavedQueryRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::CreateSavedQueryRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::SavedQuery >

virtual GetSavedQuery(google::cloud::asset::v1::GetSavedQueryRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::GetSavedQueryRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::SavedQuery >

virtual ListSavedQueries(google::cloud::asset::v1::ListSavedQueriesRequest)

Parameter
Name Description
request google::cloud::asset::v1::ListSavedQueriesRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::SavedQuery >

virtual UpdateSavedQuery(google::cloud::asset::v1::UpdateSavedQueryRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::UpdateSavedQueryRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::SavedQuery >

virtual DeleteSavedQuery(google::cloud::asset::v1::DeleteSavedQueryRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::DeleteSavedQueryRequest const &
Returns
Type Description
Status

virtual BatchGetEffectiveIamPolicies(google::cloud::asset::v1::BatchGetEffectiveIamPoliciesRequest const &)

Parameter
Name Description
request google::cloud::asset::v1::BatchGetEffectiveIamPoliciesRequest const &
Returns
Type Description
StatusOr< google::cloud::asset::v1::BatchGetEffectiveIamPoliciesResponse >

virtual AnalyzeOrgPolicies(google::cloud::asset::v1::AnalyzeOrgPoliciesRequest)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeOrgPoliciesRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::AnalyzeOrgPoliciesResponse::OrgPolicyResult >

virtual AnalyzeOrgPolicyGovernedContainers(google::cloud::asset::v1::AnalyzeOrgPolicyGovernedContainersRequest)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeOrgPolicyGovernedContainersRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer >

virtual AnalyzeOrgPolicyGovernedAssets(google::cloud::asset::v1::AnalyzeOrgPolicyGovernedAssetsRequest)

Parameter
Name Description
request google::cloud::asset::v1::AnalyzeOrgPolicyGovernedAssetsRequest
Returns
Type Description
StreamRange< google::cloud::asset::v1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset >