pub trait StorageControl:
Debug
+ Send
+ Sync {
Show 41 methods
// Provided methods
fn delete_bucket(
&self,
_req: DeleteBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_bucket(
&self,
_req: GetBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send { ... }
fn create_bucket(
&self,
_req: CreateBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send { ... }
fn list_buckets(
&self,
_req: ListBucketsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListBucketsResponse>>> + Send { ... }
fn lock_bucket_retention_policy(
&self,
_req: LockBucketRetentionPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send { ... }
fn update_bucket(
&self,
_req: UpdateBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send { ... }
fn compose_object(
&self,
_req: ComposeObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send { ... }
fn delete_object(
&self,
_req: DeleteObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn restore_object(
&self,
_req: RestoreObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send { ... }
fn get_object(
&self,
_req: GetObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send { ... }
fn update_object(
&self,
_req: UpdateObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send { ... }
fn list_objects(
&self,
_req: ListObjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListObjectsResponse>>> + Send { ... }
fn rewrite_object(
&self,
_req: RewriteObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RewriteResponse>>> + Send { ... }
fn move_object(
&self,
_req: MoveObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send { ... }
fn create_folder(
&self,
_req: CreateFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Folder>>> + Send { ... }
fn delete_folder(
&self,
_req: DeleteFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_folder(
&self,
_req: GetFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Folder>>> + Send { ... }
fn list_folders(
&self,
_req: ListFoldersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListFoldersResponse>>> + Send { ... }
fn rename_folder(
&self,
_req: RenameFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_storage_layout(
&self,
_req: GetStorageLayoutRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<StorageLayout>>> + Send { ... }
fn create_managed_folder(
&self,
_req: CreateManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send { ... }
fn delete_managed_folder(
&self,
_req: DeleteManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_managed_folder(
&self,
_req: GetManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send { ... }
fn list_managed_folders(
&self,
_req: ListManagedFoldersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListManagedFoldersResponse>>> + Send { ... }
fn create_anywhere_cache(
&self,
_req: CreateAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn update_anywhere_cache(
&self,
_req: UpdateAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn disable_anywhere_cache(
&self,
_req: DisableAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send { ... }
fn pause_anywhere_cache(
&self,
_req: PauseAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send { ... }
fn resume_anywhere_cache(
&self,
_req: ResumeAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send { ... }
fn get_anywhere_cache(
&self,
_req: GetAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send { ... }
fn list_anywhere_caches(
&self,
_req: ListAnywhereCachesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListAnywhereCachesResponse>>> + Send { ... }
fn get_project_intelligence_config(
&self,
_req: GetProjectIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn update_project_intelligence_config(
&self,
_req: UpdateProjectIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn get_folder_intelligence_config(
&self,
_req: GetFolderIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn update_folder_intelligence_config(
&self,
_req: UpdateFolderIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn get_organization_intelligence_config(
&self,
_req: GetOrganizationIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn update_organization_intelligence_config(
&self,
_req: UpdateOrganizationIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send { ... }
fn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
fn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
fn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
}Expand description
Defines the trait used to implement crate::client::StorageControl.
Application developers may need to implement this trait to mock
client::StorageControl. In other use-cases, application developers only
use client::StorageControl 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§
Sourcefn delete_bucket(
&self,
_req: DeleteBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_bucket( &self, _req: DeleteBucketRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements crate::client::StorageControl::delete_bucket.
Sourcefn get_bucket(
&self,
_req: GetBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send
fn get_bucket( &self, _req: GetBucketRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Bucket>>> + Send
Implements crate::client::StorageControl::get_bucket.
Sourcefn create_bucket(
&self,
_req: CreateBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send
fn create_bucket( &self, _req: CreateBucketRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Bucket>>> + Send
Implements crate::client::StorageControl::create_bucket.
Sourcefn list_buckets(
&self,
_req: ListBucketsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListBucketsResponse>>> + Send
fn list_buckets( &self, _req: ListBucketsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListBucketsResponse>>> + Send
Implements crate::client::StorageControl::list_buckets.
Sourcefn lock_bucket_retention_policy(
&self,
_req: LockBucketRetentionPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send
fn lock_bucket_retention_policy( &self, _req: LockBucketRetentionPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Bucket>>> + Send
Sourcefn update_bucket(
&self,
_req: UpdateBucketRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Bucket>>> + Send
fn update_bucket( &self, _req: UpdateBucketRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Bucket>>> + Send
Implements crate::client::StorageControl::update_bucket.
Sourcefn compose_object(
&self,
_req: ComposeObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send
fn compose_object( &self, _req: ComposeObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Object>>> + Send
Implements crate::client::StorageControl::compose_object.
Sourcefn delete_object(
&self,
_req: DeleteObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_object( &self, _req: DeleteObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements crate::client::StorageControl::delete_object.
Sourcefn restore_object(
&self,
_req: RestoreObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send
fn restore_object( &self, _req: RestoreObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Object>>> + Send
Implements crate::client::StorageControl::restore_object.
Sourcefn get_object(
&self,
_req: GetObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send
fn get_object( &self, _req: GetObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Object>>> + Send
Implements crate::client::StorageControl::get_object.
Sourcefn update_object(
&self,
_req: UpdateObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send
fn update_object( &self, _req: UpdateObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Object>>> + Send
Implements crate::client::StorageControl::update_object.
Sourcefn list_objects(
&self,
_req: ListObjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListObjectsResponse>>> + Send
fn list_objects( &self, _req: ListObjectsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListObjectsResponse>>> + Send
Implements crate::client::StorageControl::list_objects.
Sourcefn rewrite_object(
&self,
_req: RewriteObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RewriteResponse>>> + Send
fn rewrite_object( &self, _req: RewriteObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RewriteResponse>>> + Send
Implements crate::client::StorageControl::rewrite_object.
Sourcefn move_object(
&self,
_req: MoveObjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Object>>> + Send
fn move_object( &self, _req: MoveObjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Object>>> + Send
Implements crate::client::StorageControl::move_object.
Sourcefn create_folder(
&self,
_req: CreateFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Folder>>> + Send
fn create_folder( &self, _req: CreateFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Folder>>> + Send
Implements crate::client::StorageControl::create_folder.
Sourcefn delete_folder(
&self,
_req: DeleteFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_folder( &self, _req: DeleteFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements crate::client::StorageControl::delete_folder.
Sourcefn get_folder(
&self,
_req: GetFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Folder>>> + Send
fn get_folder( &self, _req: GetFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Folder>>> + Send
Implements crate::client::StorageControl::get_folder.
Sourcefn list_folders(
&self,
_req: ListFoldersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListFoldersResponse>>> + Send
fn list_folders( &self, _req: ListFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListFoldersResponse>>> + Send
Implements crate::client::StorageControl::list_folders.
Sourcefn rename_folder(
&self,
_req: RenameFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn rename_folder( &self, _req: RenameFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements crate::client::StorageControl::rename_folder.
Sourcefn get_storage_layout(
&self,
_req: GetStorageLayoutRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<StorageLayout>>> + Send
fn get_storage_layout( &self, _req: GetStorageLayoutRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<StorageLayout>>> + Send
Sourcefn create_managed_folder(
&self,
_req: CreateManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send
fn create_managed_folder( &self, _req: CreateManagedFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send
Sourcefn delete_managed_folder(
&self,
_req: DeleteManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_managed_folder( &self, _req: DeleteManagedFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn get_managed_folder(
&self,
_req: GetManagedFolderRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send
fn get_managed_folder( &self, _req: GetManagedFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ManagedFolder>>> + Send
Sourcefn list_managed_folders(
&self,
_req: ListManagedFoldersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListManagedFoldersResponse>>> + Send
fn list_managed_folders( &self, _req: ListManagedFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListManagedFoldersResponse>>> + Send
Sourcefn create_anywhere_cache(
&self,
_req: CreateAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_anywhere_cache( &self, _req: CreateAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn update_anywhere_cache(
&self,
_req: UpdateAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn update_anywhere_cache( &self, _req: UpdateAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn disable_anywhere_cache(
&self,
_req: DisableAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
fn disable_anywhere_cache( &self, _req: DisableAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
Sourcefn pause_anywhere_cache(
&self,
_req: PauseAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
fn pause_anywhere_cache( &self, _req: PauseAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
Sourcefn resume_anywhere_cache(
&self,
_req: ResumeAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
fn resume_anywhere_cache( &self, _req: ResumeAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
Sourcefn get_anywhere_cache(
&self,
_req: GetAnywhereCacheRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
fn get_anywhere_cache( &self, _req: GetAnywhereCacheRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnywhereCache>>> + Send
Sourcefn list_anywhere_caches(
&self,
_req: ListAnywhereCachesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListAnywhereCachesResponse>>> + Send
fn list_anywhere_caches( &self, _req: ListAnywhereCachesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAnywhereCachesResponse>>> + Send
Sourcefn get_project_intelligence_config(
&self,
_req: GetProjectIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn get_project_intelligence_config( &self, _req: GetProjectIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn update_project_intelligence_config(
&self,
_req: UpdateProjectIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn update_project_intelligence_config( &self, _req: UpdateProjectIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn get_folder_intelligence_config(
&self,
_req: GetFolderIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn get_folder_intelligence_config( &self, _req: GetFolderIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn update_folder_intelligence_config(
&self,
_req: UpdateFolderIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn update_folder_intelligence_config( &self, _req: UpdateFolderIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn get_organization_intelligence_config(
&self,
_req: GetOrganizationIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn get_organization_intelligence_config( &self, _req: GetOrganizationIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn update_organization_intelligence_config(
&self,
_req: UpdateOrganizationIntelligenceConfigRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
fn update_organization_intelligence_config( &self, _req: UpdateOrganizationIntelligenceConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<IntelligenceConfig>>> + Send
Sourcefn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send
fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send
Implements crate::client::StorageControl::get_iam_policy.
Sourcefn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send
fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send
Implements crate::client::StorageControl::set_iam_policy.
Sourcefn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements crate::client::StorageControl::get_operation.
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.