Skip to main content

StorageService

Struct StorageService 

Source
pub struct StorageService { /* private fields */ }

Implementations§

Source§

impl StorageService

Source

pub fn abort_multipart_upload( &self, bucket: &str, upload_id: &str, ) -> EmptyRequest

Abort a multipart upload

Source

pub fn complete_multipart_upload( &self, bucket: &str, upload_id: &str, body: &CompleteMultipartUploadBody, ) -> Request<CompleteMultipartUploadResponse>

Complete a multipart upload

Source

pub fn create_bucket( &self, body: &CreateBucketBody, ) -> Request<CreateBucketResponse>

Create bucket

Source

pub fn create_snapshot( &self, body: &CreateSnapshotBody, ) -> Request<CreateSnapshotResponse>

Create snapshot

Source

pub fn create_snapshot_policy( &self, volume_id: &str, body: &CreateSnapshotPolicyBody, ) -> Request<CreateSnapshotPolicyResponse>

Create snapshot policy

Source

pub fn create_volume( &self, body: &CreateVolumeBody, ) -> Request<CreateVolumeResponse>

Create volume

Source

pub fn delete_bucket(&self, bucket: &str) -> Request<DeleteBucketResponse>

Delete bucket

Source

pub fn delete_bucket_cors(&self, bucket: &str) -> EmptyRequest

Delete bucket CORS configuration

Source

pub fn delete_bucket_encryption(&self, bucket: &str) -> EmptyRequest

Delete bucket encryption configuration

Source

pub fn delete_bucket_lifecycle(&self, bucket: &str) -> EmptyRequest

Delete bucket lifecycle configuration

Source

pub fn delete_bucket_object_lock(&self, bucket: &str) -> EmptyRequest

Delete bucket object-lock configuration

Source

pub fn delete_bucket_policy(&self, bucket: &str) -> EmptyRequest

Delete bucket policy

Source

pub fn delete_bucket_tagging(&self, bucket: &str) -> EmptyRequest

Delete bucket tag set

Source

pub fn delete_object(&self, bucket: &str, key: &str) -> EmptyRequest

Delete object

Source

pub fn delete_snapshot(&self, snapshot_id: &str) -> EmptyRequest

Delete snapshot

Source

pub fn delete_snapshot_policy( &self, volume_id: &str, policy_id: &str, ) -> EmptyRequest

Delete snapshot policy

Source

pub fn delete_volume(&self, volume_id: &str) -> EmptyRequest

Delete volume

Source

pub fn extend_volume( &self, volume_id: &str, body: &ExtendVolumeBody, ) -> Request<ExtendVolumeResponse>

Extend volume

Source

pub fn get_bucket_cors(&self, bucket: &str) -> Request<GetBucketCORSResponse>

Get bucket CORS configuration

Source

pub fn get_bucket_encryption( &self, bucket: &str, ) -> Request<GetBucketEncryptionResponse>

Get bucket encryption configuration

Source

pub fn get_bucket_lifecycle( &self, bucket: &str, ) -> Request<GetBucketLifecycleResponse>

Get bucket lifecycle configuration

Source

pub fn get_bucket_object_lock( &self, bucket: &str, ) -> Request<GetBucketObjectLockResponse>

Get bucket object-lock configuration

Source

pub fn get_bucket_policy( &self, bucket: &str, ) -> Request<GetBucketPolicyResponse>

Get bucket policy

Source

pub fn get_bucket_tagging( &self, bucket: &str, ) -> Request<GetBucketTaggingResponse>

Get bucket tag set

Source

pub fn get_bucket_versioning( &self, bucket: &str, ) -> Request<GetBucketVersioningResponse>

Get bucket versioning state

Source

pub fn get_object(&self, bucket: &str, key: &str) -> BinaryRequest

Download object

Source

pub fn get_snapshot(&self, snapshot_id: &str) -> Request<GetSnapshotResponse>

Get snapshot

Source

pub fn get_snapshot_by_reference( &self, reference: &str, scope: &GetSnapshotScope, ) -> Request<GetSnapshotResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_snapshot_policy( &self, volume_id: &str, policy_id: &str, ) -> Request<GetSnapshotPolicyResponse>

Get snapshot policy

Source

pub fn get_snapshot_policy_by_reference( &self, volume_id: &str, reference: &str, scope: &GetSnapshotPolicyScope, ) -> Request<GetSnapshotPolicyResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_volume(&self, volume_id: &str) -> Request<GetVolumeResponse>

Get volume

Source

pub fn get_volume_by_reference( &self, reference: &str, scope: &GetVolumeScope, ) -> Request<GetVolumeResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn head_bucket(&self, bucket: &str) -> BinaryRequest

Head bucket

Source

pub fn head_object(&self, bucket: &str, key: &str) -> BinaryRequest

Head object

Source

pub fn initiate_multipart_upload( &self, bucket: &str, body: &InitiateMultipartUploadBody, ) -> Request<InitiateMultipartUploadResponse>

Initiate a multipart upload

Source

pub fn list_buckets( &self, query: &ListBucketsQuery, ) -> PagedRequest<ListBucketsResponse, ListBucketsItem>

List buckets

Source

pub fn list_multipart_uploads( &self, bucket: &str, query: &ListMultipartUploadsQuery, ) -> PagedRequest<ListMultipartUploadsResponse, ListMultipartUploadsItem>

List in-flight multipart uploads

Source

pub fn list_object_versions( &self, bucket: &str, query: &ListObjectVersionsQuery, ) -> PagedRequest<ListObjectVersionsResponse, ListObjectVersionsItem>

List object versions

Source

pub fn list_objects( &self, bucket: &str, query: &ListObjectsQuery, ) -> Request<ListObjectsResponse>

List objects

Source

pub fn list_parts( &self, bucket: &str, upload_id: &str, ) -> PagedRequest<ListPartsResponse, ListPartsItem>

List uploaded parts

Source

pub fn list_snapshot_policies( &self, volume_id: &str, query: &ListSnapshotPoliciesQuery, ) -> PagedRequest<ListSnapshotPoliciesResponse, ListSnapshotPoliciesItem>

List snapshot policies

Source

pub fn list_snapshots( &self, query: &ListSnapshotsQuery, ) -> PagedRequest<ListSnapshotsResponse, ListSnapshotsItem>

List snapshots

Source

pub fn list_volume_types( &self, query: &ListVolumeTypesQuery, ) -> PagedRequest<ListVolumeTypesResponse, ListVolumeTypesItem>

List volume types

Source

pub fn list_volumes( &self, query: &ListVolumesQuery, ) -> PagedRequest<ListVolumesResponse, ListVolumesItem>

List volumes

Source

pub fn put_bucket_cors( &self, bucket: &str, body: &PutBucketCORSBody, ) -> EmptyRequest

Put bucket CORS configuration

Source

pub fn put_bucket_deletion_protection( &self, bucket: &str, body: &PutBucketDeletionProtectionBody, ) -> EmptyRequest

Set bucket deletion protection

Source

pub fn put_bucket_encryption( &self, bucket: &str, body: &PutBucketEncryptionBody, ) -> EmptyRequest

Put bucket encryption configuration

Source

pub fn put_bucket_lifecycle( &self, bucket: &str, body: &PutBucketLifecycleBody, ) -> EmptyRequest

Put bucket lifecycle configuration

Source

pub fn put_bucket_object_lock( &self, bucket: &str, body: &PutBucketObjectLockBody, ) -> EmptyRequest

Put bucket object-lock configuration

Source

pub fn put_bucket_policy( &self, bucket: &str, body: &PutBucketPolicyBody, ) -> EmptyRequest

Put bucket policy

Source

pub fn put_bucket_tagging( &self, bucket: &str, body: &PutBucketTaggingBody, ) -> EmptyRequest

Put bucket tag set

Source

pub fn put_bucket_versioning( &self, bucket: &str, body: &PutBucketVersioningBody, ) -> EmptyRequest

Set bucket versioning state

Source

pub fn put_object( &self, bucket: &str, key: &str, body: Body, ) -> Request<PutObjectResponse>

Upload object

Source

pub fn restore_bucket(&self, bucket: &str) -> EmptyRequest

Restore a bucket pending deletion

Source

pub fn update_snapshot( &self, snapshot_id: &str, body: &UpdateSnapshotBody, ) -> Request<UpdateSnapshotResponse>

Update snapshot metadata

Source

pub fn update_snapshot_policy( &self, volume_id: &str, policy_id: &str, body: &UpdateSnapshotPolicyBody, ) -> Request<UpdateSnapshotPolicyResponse>

Update snapshot policy

Source

pub fn update_volume( &self, volume_id: &str, body: &UpdateVolumeBody, ) -> Request<UpdateVolumeResponse>

Update volume metadata

Source

pub fn update_volume_performance( &self, volume_id: &str, body: &UpdateVolumePerformanceBody, ) -> Request<UpdateVolumePerformanceResponse>

Update provisioned performance

Source

pub fn upload_part( &self, bucket: &str, upload_id: &str, part_number: &str, body: Body, ) -> Request<UploadPartResponse>

Upload a part

Trait Implementations§

Source§

impl Clone for StorageService

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StorageService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more