Class AssetServiceConnection (2.22.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::asset::v1::ExportAssetsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::asset::v1::ExportAssetsResponse > >

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

Parameter
NameDescription
request google::cloud::asset::v1::ListAssetsRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::Asset >

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

Parameter
NameDescription
request google::cloud::asset::v1::BatchGetAssetsHistoryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::BatchGetAssetsHistoryResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::CreateFeedRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::Feed >

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

Parameter
NameDescription
request google::cloud::asset::v1::GetFeedRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::Feed >

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

Parameter
NameDescription
request google::cloud::asset::v1::ListFeedsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::ListFeedsResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::UpdateFeedRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::Feed >

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

Parameter
NameDescription
request google::cloud::asset::v1::DeleteFeedRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::asset::v1::SearchAllResourcesRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::ResourceSearchResult >

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

Parameter
NameDescription
request google::cloud::asset::v1::SearchAllIamPoliciesRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::IamPolicySearchResult >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::AnalyzeIamPolicyResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::asset::v1::AnalyzeIamPolicyLongrunningResponse > >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeMoveRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::AnalyzeMoveResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::QueryAssetsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::QueryAssetsResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::CreateSavedQueryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::SavedQuery >

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

Parameter
NameDescription
request google::cloud::asset::v1::GetSavedQueryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::SavedQuery >

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

Parameter
NameDescription
request google::cloud::asset::v1::ListSavedQueriesRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::SavedQuery >

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

Parameter
NameDescription
request google::cloud::asset::v1::UpdateSavedQueryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::SavedQuery >

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

Parameter
NameDescription
request google::cloud::asset::v1::DeleteSavedQueryRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::asset::v1::BatchGetEffectiveIamPoliciesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::asset::v1::BatchGetEffectiveIamPoliciesResponse >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeOrgPoliciesRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::AnalyzeOrgPoliciesResponse::OrgPolicyResult >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeOrgPolicyGovernedContainersRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer >

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

Parameter
NameDescription
request google::cloud::asset::v1::AnalyzeOrgPolicyGovernedAssetsRequest
Returns
TypeDescription
StreamRange< google::cloud::asset::v1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset >