pub struct StorageService { /* private fields */ }Implementations§
Source§impl StorageService
impl StorageService
Sourcepub fn abort_multipart_upload(
&self,
bucket: &str,
upload_id: &str,
) -> EmptyRequest
pub fn abort_multipart_upload( &self, bucket: &str, upload_id: &str, ) -> EmptyRequest
Abort a multipart upload
Sourcepub fn complete_multipart_upload(
&self,
bucket: &str,
upload_id: &str,
body: &CompleteMultipartUploadBody,
) -> Request<CompleteMultipartUploadResponse>
pub fn complete_multipart_upload( &self, bucket: &str, upload_id: &str, body: &CompleteMultipartUploadBody, ) -> Request<CompleteMultipartUploadResponse>
Complete a multipart upload
Sourcepub fn create_bucket(
&self,
body: &CreateBucketBody,
) -> Request<CreateBucketResponse>
pub fn create_bucket( &self, body: &CreateBucketBody, ) -> Request<CreateBucketResponse>
Create bucket
Sourcepub fn create_snapshot(
&self,
body: &CreateSnapshotBody,
) -> Request<CreateSnapshotResponse>
pub fn create_snapshot( &self, body: &CreateSnapshotBody, ) -> Request<CreateSnapshotResponse>
Create snapshot
Sourcepub fn create_snapshot_policy(
&self,
volume_id: &str,
body: &CreateSnapshotPolicyBody,
) -> Request<CreateSnapshotPolicyResponse>
pub fn create_snapshot_policy( &self, volume_id: &str, body: &CreateSnapshotPolicyBody, ) -> Request<CreateSnapshotPolicyResponse>
Create snapshot policy
Sourcepub fn create_volume(
&self,
body: &CreateVolumeBody,
) -> Request<CreateVolumeResponse>
pub fn create_volume( &self, body: &CreateVolumeBody, ) -> Request<CreateVolumeResponse>
Create volume
Sourcepub fn delete_bucket(&self, bucket: &str) -> Request<DeleteBucketResponse>
pub fn delete_bucket(&self, bucket: &str) -> Request<DeleteBucketResponse>
Delete bucket
Sourcepub fn delete_bucket_cors(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_cors(&self, bucket: &str) -> EmptyRequest
Delete bucket CORS configuration
Sourcepub fn delete_bucket_encryption(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_encryption(&self, bucket: &str) -> EmptyRequest
Delete bucket encryption configuration
Sourcepub fn delete_bucket_lifecycle(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_lifecycle(&self, bucket: &str) -> EmptyRequest
Delete bucket lifecycle configuration
Sourcepub fn delete_bucket_object_lock(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_object_lock(&self, bucket: &str) -> EmptyRequest
Delete bucket object-lock configuration
Sourcepub fn delete_bucket_policy(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_policy(&self, bucket: &str) -> EmptyRequest
Delete bucket policy
Sourcepub fn delete_bucket_tagging(&self, bucket: &str) -> EmptyRequest
pub fn delete_bucket_tagging(&self, bucket: &str) -> EmptyRequest
Delete bucket tag set
Sourcepub fn delete_object(&self, bucket: &str, key: &str) -> EmptyRequest
pub fn delete_object(&self, bucket: &str, key: &str) -> EmptyRequest
Delete object
Sourcepub fn delete_snapshot(&self, snapshot_id: &str) -> EmptyRequest
pub fn delete_snapshot(&self, snapshot_id: &str) -> EmptyRequest
Delete snapshot
Sourcepub fn delete_snapshot_policy(
&self,
volume_id: &str,
policy_id: &str,
) -> EmptyRequest
pub fn delete_snapshot_policy( &self, volume_id: &str, policy_id: &str, ) -> EmptyRequest
Delete snapshot policy
Sourcepub fn delete_volume(&self, volume_id: &str) -> EmptyRequest
pub fn delete_volume(&self, volume_id: &str) -> EmptyRequest
Delete volume
Sourcepub fn extend_volume(
&self,
volume_id: &str,
body: &ExtendVolumeBody,
) -> Request<ExtendVolumeResponse>
pub fn extend_volume( &self, volume_id: &str, body: &ExtendVolumeBody, ) -> Request<ExtendVolumeResponse>
Extend volume
Sourcepub fn get_bucket_cors(&self, bucket: &str) -> Request<GetBucketCORSResponse>
pub fn get_bucket_cors(&self, bucket: &str) -> Request<GetBucketCORSResponse>
Get bucket CORS configuration
Sourcepub fn get_bucket_encryption(
&self,
bucket: &str,
) -> Request<GetBucketEncryptionResponse>
pub fn get_bucket_encryption( &self, bucket: &str, ) -> Request<GetBucketEncryptionResponse>
Get bucket encryption configuration
Sourcepub fn get_bucket_lifecycle(
&self,
bucket: &str,
) -> Request<GetBucketLifecycleResponse>
pub fn get_bucket_lifecycle( &self, bucket: &str, ) -> Request<GetBucketLifecycleResponse>
Get bucket lifecycle configuration
Sourcepub fn get_bucket_object_lock(
&self,
bucket: &str,
) -> Request<GetBucketObjectLockResponse>
pub fn get_bucket_object_lock( &self, bucket: &str, ) -> Request<GetBucketObjectLockResponse>
Get bucket object-lock configuration
Sourcepub fn get_bucket_policy(
&self,
bucket: &str,
) -> Request<GetBucketPolicyResponse>
pub fn get_bucket_policy( &self, bucket: &str, ) -> Request<GetBucketPolicyResponse>
Get bucket policy
Sourcepub fn get_bucket_tagging(
&self,
bucket: &str,
) -> Request<GetBucketTaggingResponse>
pub fn get_bucket_tagging( &self, bucket: &str, ) -> Request<GetBucketTaggingResponse>
Get bucket tag set
Sourcepub fn get_bucket_versioning(
&self,
bucket: &str,
) -> Request<GetBucketVersioningResponse>
pub fn get_bucket_versioning( &self, bucket: &str, ) -> Request<GetBucketVersioningResponse>
Get bucket versioning state
Sourcepub fn get_object(&self, bucket: &str, key: &str) -> BinaryRequest
pub fn get_object(&self, bucket: &str, key: &str) -> BinaryRequest
Download object
Sourcepub fn get_snapshot(&self, snapshot_id: &str) -> Request<GetSnapshotResponse>
pub fn get_snapshot(&self, snapshot_id: &str) -> Request<GetSnapshotResponse>
Get snapshot
Sourcepub fn get_snapshot_by_reference(
&self,
reference: &str,
scope: &GetSnapshotScope,
) -> Request<GetSnapshotResource>
pub fn get_snapshot_by_reference( &self, reference: &str, scope: &GetSnapshotScope, ) -> Request<GetSnapshotResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn get_snapshot_policy(
&self,
volume_id: &str,
policy_id: &str,
) -> Request<GetSnapshotPolicyResponse>
pub fn get_snapshot_policy( &self, volume_id: &str, policy_id: &str, ) -> Request<GetSnapshotPolicyResponse>
Get snapshot policy
Sourcepub fn get_snapshot_policy_by_reference(
&self,
volume_id: &str,
reference: &str,
scope: &GetSnapshotPolicyScope,
) -> Request<GetSnapshotPolicyResource>
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.
Sourcepub fn get_volume(&self, volume_id: &str) -> Request<GetVolumeResponse>
pub fn get_volume(&self, volume_id: &str) -> Request<GetVolumeResponse>
Get volume
Sourcepub fn get_volume_by_reference(
&self,
reference: &str,
scope: &GetVolumeScope,
) -> Request<GetVolumeResource>
pub fn get_volume_by_reference( &self, reference: &str, scope: &GetVolumeScope, ) -> Request<GetVolumeResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn head_bucket(&self, bucket: &str) -> BinaryRequest
pub fn head_bucket(&self, bucket: &str) -> BinaryRequest
Head bucket
Sourcepub fn head_object(&self, bucket: &str, key: &str) -> BinaryRequest
pub fn head_object(&self, bucket: &str, key: &str) -> BinaryRequest
Head object
Sourcepub fn initiate_multipart_upload(
&self,
bucket: &str,
body: &InitiateMultipartUploadBody,
) -> Request<InitiateMultipartUploadResponse>
pub fn initiate_multipart_upload( &self, bucket: &str, body: &InitiateMultipartUploadBody, ) -> Request<InitiateMultipartUploadResponse>
Initiate a multipart upload
Sourcepub fn list_buckets(
&self,
query: &ListBucketsQuery,
) -> PagedRequest<ListBucketsResponse, ListBucketsItem>
pub fn list_buckets( &self, query: &ListBucketsQuery, ) -> PagedRequest<ListBucketsResponse, ListBucketsItem>
List buckets
Sourcepub fn list_multipart_uploads(
&self,
bucket: &str,
query: &ListMultipartUploadsQuery,
) -> PagedRequest<ListMultipartUploadsResponse, ListMultipartUploadsItem>
pub fn list_multipart_uploads( &self, bucket: &str, query: &ListMultipartUploadsQuery, ) -> PagedRequest<ListMultipartUploadsResponse, ListMultipartUploadsItem>
List in-flight multipart uploads
Sourcepub fn list_object_versions(
&self,
bucket: &str,
query: &ListObjectVersionsQuery,
) -> PagedRequest<ListObjectVersionsResponse, ListObjectVersionsItem>
pub fn list_object_versions( &self, bucket: &str, query: &ListObjectVersionsQuery, ) -> PagedRequest<ListObjectVersionsResponse, ListObjectVersionsItem>
List object versions
Sourcepub fn list_objects(
&self,
bucket: &str,
query: &ListObjectsQuery,
) -> Request<ListObjectsResponse>
pub fn list_objects( &self, bucket: &str, query: &ListObjectsQuery, ) -> Request<ListObjectsResponse>
List objects
Sourcepub fn list_parts(
&self,
bucket: &str,
upload_id: &str,
) -> PagedRequest<ListPartsResponse, ListPartsItem>
pub fn list_parts( &self, bucket: &str, upload_id: &str, ) -> PagedRequest<ListPartsResponse, ListPartsItem>
List uploaded parts
Sourcepub fn list_snapshot_policies(
&self,
volume_id: &str,
query: &ListSnapshotPoliciesQuery,
) -> PagedRequest<ListSnapshotPoliciesResponse, ListSnapshotPoliciesItem>
pub fn list_snapshot_policies( &self, volume_id: &str, query: &ListSnapshotPoliciesQuery, ) -> PagedRequest<ListSnapshotPoliciesResponse, ListSnapshotPoliciesItem>
List snapshot policies
Sourcepub fn list_snapshots(
&self,
query: &ListSnapshotsQuery,
) -> PagedRequest<ListSnapshotsResponse, ListSnapshotsItem>
pub fn list_snapshots( &self, query: &ListSnapshotsQuery, ) -> PagedRequest<ListSnapshotsResponse, ListSnapshotsItem>
List snapshots
Sourcepub fn list_volume_types(
&self,
query: &ListVolumeTypesQuery,
) -> PagedRequest<ListVolumeTypesResponse, ListVolumeTypesItem>
pub fn list_volume_types( &self, query: &ListVolumeTypesQuery, ) -> PagedRequest<ListVolumeTypesResponse, ListVolumeTypesItem>
List volume types
Sourcepub fn list_volumes(
&self,
query: &ListVolumesQuery,
) -> PagedRequest<ListVolumesResponse, ListVolumesItem>
pub fn list_volumes( &self, query: &ListVolumesQuery, ) -> PagedRequest<ListVolumesResponse, ListVolumesItem>
List volumes
Sourcepub fn put_bucket_cors(
&self,
bucket: &str,
body: &PutBucketCORSBody,
) -> EmptyRequest
pub fn put_bucket_cors( &self, bucket: &str, body: &PutBucketCORSBody, ) -> EmptyRequest
Put bucket CORS configuration
Sourcepub fn put_bucket_deletion_protection(
&self,
bucket: &str,
body: &PutBucketDeletionProtectionBody,
) -> EmptyRequest
pub fn put_bucket_deletion_protection( &self, bucket: &str, body: &PutBucketDeletionProtectionBody, ) -> EmptyRequest
Set bucket deletion protection
Sourcepub fn put_bucket_encryption(
&self,
bucket: &str,
body: &PutBucketEncryptionBody,
) -> EmptyRequest
pub fn put_bucket_encryption( &self, bucket: &str, body: &PutBucketEncryptionBody, ) -> EmptyRequest
Put bucket encryption configuration
Sourcepub fn put_bucket_lifecycle(
&self,
bucket: &str,
body: &PutBucketLifecycleBody,
) -> EmptyRequest
pub fn put_bucket_lifecycle( &self, bucket: &str, body: &PutBucketLifecycleBody, ) -> EmptyRequest
Put bucket lifecycle configuration
Sourcepub fn put_bucket_object_lock(
&self,
bucket: &str,
body: &PutBucketObjectLockBody,
) -> EmptyRequest
pub fn put_bucket_object_lock( &self, bucket: &str, body: &PutBucketObjectLockBody, ) -> EmptyRequest
Put bucket object-lock configuration
Sourcepub fn put_bucket_policy(
&self,
bucket: &str,
body: &PutBucketPolicyBody,
) -> EmptyRequest
pub fn put_bucket_policy( &self, bucket: &str, body: &PutBucketPolicyBody, ) -> EmptyRequest
Put bucket policy
Sourcepub fn put_bucket_tagging(
&self,
bucket: &str,
body: &PutBucketTaggingBody,
) -> EmptyRequest
pub fn put_bucket_tagging( &self, bucket: &str, body: &PutBucketTaggingBody, ) -> EmptyRequest
Put bucket tag set
Sourcepub fn put_bucket_versioning(
&self,
bucket: &str,
body: &PutBucketVersioningBody,
) -> EmptyRequest
pub fn put_bucket_versioning( &self, bucket: &str, body: &PutBucketVersioningBody, ) -> EmptyRequest
Set bucket versioning state
Sourcepub fn put_object(
&self,
bucket: &str,
key: &str,
body: Body,
) -> Request<PutObjectResponse>
pub fn put_object( &self, bucket: &str, key: &str, body: Body, ) -> Request<PutObjectResponse>
Upload object
Sourcepub fn restore_bucket(&self, bucket: &str) -> EmptyRequest
pub fn restore_bucket(&self, bucket: &str) -> EmptyRequest
Restore a bucket pending deletion
Sourcepub fn update_snapshot(
&self,
snapshot_id: &str,
body: &UpdateSnapshotBody,
) -> Request<UpdateSnapshotResponse>
pub fn update_snapshot( &self, snapshot_id: &str, body: &UpdateSnapshotBody, ) -> Request<UpdateSnapshotResponse>
Update snapshot metadata
Sourcepub fn update_snapshot_policy(
&self,
volume_id: &str,
policy_id: &str,
body: &UpdateSnapshotPolicyBody,
) -> Request<UpdateSnapshotPolicyResponse>
pub fn update_snapshot_policy( &self, volume_id: &str, policy_id: &str, body: &UpdateSnapshotPolicyBody, ) -> Request<UpdateSnapshotPolicyResponse>
Update snapshot policy
Sourcepub fn update_volume(
&self,
volume_id: &str,
body: &UpdateVolumeBody,
) -> Request<UpdateVolumeResponse>
pub fn update_volume( &self, volume_id: &str, body: &UpdateVolumeBody, ) -> Request<UpdateVolumeResponse>
Update volume metadata
Sourcepub fn update_volume_performance(
&self,
volume_id: &str,
body: &UpdateVolumePerformanceBody,
) -> Request<UpdateVolumePerformanceResponse>
pub fn update_volume_performance( &self, volume_id: &str, body: &UpdateVolumePerformanceBody, ) -> Request<UpdateVolumePerformanceResponse>
Update provisioned performance
Sourcepub fn upload_part(
&self,
bucket: &str,
upload_id: &str,
part_number: &str,
body: Body,
) -> Request<UploadPartResponse>
pub fn upload_part( &self, bucket: &str, upload_id: &str, part_number: &str, body: Body, ) -> Request<UploadPartResponse>
Upload a part