AssetService

Trait AssetService 

Source
pub trait AssetService:
    Debug
    + Send
    + Sync {
Show 26 methods // Provided methods fn export_assets( &self, _req: ExportAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn list_assets( &self, _req: ListAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAssetsResponse>>> + Send { ... } fn batch_get_assets_history( &self, _req: BatchGetAssetsHistoryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchGetAssetsHistoryResponse>>> + Send { ... } fn create_feed( &self, _req: CreateFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send { ... } fn get_feed( &self, _req: GetFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send { ... } fn list_feeds( &self, _req: ListFeedsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListFeedsResponse>>> + Send { ... } fn update_feed( &self, _req: UpdateFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send { ... } fn delete_feed( &self, _req: DeleteFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn search_all_resources( &self, _req: SearchAllResourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchAllResourcesResponse>>> + Send { ... } fn search_all_iam_policies( &self, _req: SearchAllIamPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchAllIamPoliciesResponse>>> + Send { ... } fn analyze_iam_policy( &self, _req: AnalyzeIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeIamPolicyResponse>>> + Send { ... } fn analyze_iam_policy_longrunning( &self, _req: AnalyzeIamPolicyLongrunningRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn analyze_move( &self, _req: AnalyzeMoveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeMoveResponse>>> + Send { ... } fn query_assets( &self, _req: QueryAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<QueryAssetsResponse>>> + Send { ... } fn create_saved_query( &self, _req: CreateSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send { ... } fn get_saved_query( &self, _req: GetSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send { ... } fn list_saved_queries( &self, _req: ListSavedQueriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSavedQueriesResponse>>> + Send { ... } fn update_saved_query( &self, _req: UpdateSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send { ... } fn delete_saved_query( &self, _req: DeleteSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn batch_get_effective_iam_policies( &self, _req: BatchGetEffectiveIamPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchGetEffectiveIamPoliciesResponse>>> + Send { ... } fn analyze_org_policies( &self, _req: AnalyzeOrgPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPoliciesResponse>>> + Send { ... } fn analyze_org_policy_governed_containers( &self, _req: AnalyzeOrgPolicyGovernedContainersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPolicyGovernedContainersResponse>>> + Send { ... } fn analyze_org_policy_governed_assets( &self, _req: AnalyzeOrgPolicyGovernedAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPolicyGovernedAssetsResponse>>> + Send { ... } fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy> { ... } fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Expand description

Defines the trait used to implement super::client::AssetService.

Application developers may need to implement this trait to mock client::AssetService. In other use-cases, application developers only use client::AssetService and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Source

fn export_assets( &self, _req: ExportAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn list_assets( &self, _req: ListAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAssetsResponse>>> + Send

Source

fn batch_get_assets_history( &self, _req: BatchGetAssetsHistoryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchGetAssetsHistoryResponse>>> + Send

Source

fn create_feed( &self, _req: CreateFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send

Source

fn get_feed( &self, _req: GetFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send

Source

fn list_feeds( &self, _req: ListFeedsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListFeedsResponse>>> + Send

Source

fn update_feed( &self, _req: UpdateFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Feed>>> + Send

Source

fn delete_feed( &self, _req: DeleteFeedRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn search_all_resources( &self, _req: SearchAllResourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchAllResourcesResponse>>> + Send

Source

fn search_all_iam_policies( &self, _req: SearchAllIamPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchAllIamPoliciesResponse>>> + Send

Source

fn analyze_iam_policy( &self, _req: AnalyzeIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeIamPolicyResponse>>> + Send

Source

fn analyze_iam_policy_longrunning( &self, _req: AnalyzeIamPolicyLongrunningRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn analyze_move( &self, _req: AnalyzeMoveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeMoveResponse>>> + Send

Source

fn query_assets( &self, _req: QueryAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<QueryAssetsResponse>>> + Send

Source

fn create_saved_query( &self, _req: CreateSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send

Source

fn get_saved_query( &self, _req: GetSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send

Source

fn list_saved_queries( &self, _req: ListSavedQueriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSavedQueriesResponse>>> + Send

Source

fn update_saved_query( &self, _req: UpdateSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SavedQuery>>> + Send

Source

fn delete_saved_query( &self, _req: DeleteSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn batch_get_effective_iam_policies( &self, _req: BatchGetEffectiveIamPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchGetEffectiveIamPoliciesResponse>>> + Send

Source

fn analyze_org_policies( &self, _req: AnalyzeOrgPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPoliciesResponse>>> + Send

Source

fn analyze_org_policy_governed_containers( &self, _req: AnalyzeOrgPolicyGovernedContainersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPolicyGovernedContainersResponse>>> + Send

Source

fn analyze_org_policy_governed_assets( &self, _req: AnalyzeOrgPolicyGovernedAssetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnalyzeOrgPolicyGovernedAssetsResponse>>> + Send

Source

fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>

Returns the polling error policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Source

fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>

Returns the polling backoff policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§