pub struct StoragesService { /* private fields */ }Expand description
Operations on the Storages resource.
Implementations§
Source§impl StoragesService
impl StoragesService
pub async fn create( &self, req: &CreateStorageRequest, ) -> Result<CreateStorageResponse, Error>
pub async fn list( &self, opts: &StorageListOptions, ) -> Result<PaginatedResponse<Storage>, Error>
pub async fn get(&self, storage_id: i64) -> Result<Storage, Error>
pub async fn list_block_volumes( &self, storage_id: i64, ) -> Result<Vec<BlockVolume>, Error>
pub async fn edit( &self, storage_id: i64, req: &EditStorageRequest, ) -> Result<IdResponse, Error>
pub async fn deactivate(&self, storage_id: i64) -> Result<IdResponse, Error>
pub async fn test_new_bucket( &self, req: &TestStorageNewBucketRequest, ) -> Result<TestNewBucketStorageResponse, Error>
pub async fn test_storage_bucket( &self, storage_id: i64, ) -> Result<TestStorageBucketStorageResponse, Error>
pub async fn list_compatible( &self, storage_id: i64, ) -> Result<ListCompatibleStorageResponse, Error>
pub async fn move_volumes( &self, storage_id: i64, req: &MoveStorageVolumesRequest, ) -> Result<MoveVolumesStorageResponse, Error>
pub async fn update_config( &self, storage_id: i64, req: &UpdateStorageConfigRequest, ) -> Result<UpdateConfigResult, Error>
pub async fn get_config( &self, storage_id: i64, ) -> Result<GetConfigStorageResponse, Error>
pub async fn list_pairs( &self, storage_id: i64, state: Option<&str>, include_retired: Option<bool>, ) -> Result<Vec<Pair>, Error>
pub async fn get_pair_status( &self, storage_id: i64, pair_id: &str, ) -> Result<Pair, Error>
pub async fn drain_pair( &self, storage_id: i64, pair_id: &str, ) -> Result<DrainPairStorageResponse, Error>
pub async fn cancel_drain( &self, storage_id: i64, pair_id: &str, ) -> Result<CancelDrainStorageResponse, Error>
pub async fn register_member( &self, storage_id: i64, req: &RegisterStorageMemberRequest, ) -> Result<PoolMember, Error>
pub async fn reactivate_member( &self, storage_id: i64, block_volume_id: &str, ) -> Result<PoolMember, Error>
pub async fn backfill_fingerprints( &self, ) -> Result<BackfillFingerprintsStorageResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for StoragesService
impl !UnwindSafe for StoragesService
impl Freeze for StoragesService
impl Send for StoragesService
impl Sync for StoragesService
impl Unpin for StoragesService
impl UnsafeUnpin for StoragesService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more