pub struct ObjectAccessControlClient<'a>(/* private fields */);
Expand description
Operations on ObjectAccessControl
s.
Implementations§
Source§impl<'a> ObjectAccessControlClient<'a>
impl<'a> ObjectAccessControlClient<'a>
Sourcepub async fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl,
) -> Result<ObjectAccessControl>
pub async fn create( &self, bucket: &str, object: &str, new_object_access_control: &NewObjectAccessControl, ) -> Result<ObjectAccessControl>
Creates a new ACL entry on the specified object
.
§Important
This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Sourcepub async fn list(
&self,
bucket: &str,
object: &str,
) -> Result<Vec<ObjectAccessControl>>
pub async fn list( &self, bucket: &str, object: &str, ) -> Result<Vec<ObjectAccessControl>>
Retrieves ACL
entries on the specified object.
§Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Sourcepub async fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity,
) -> Result<ObjectAccessControl>
pub async fn read( &self, bucket: &str, object: &str, entity: &Entity, ) -> Result<ObjectAccessControl>
Returns the ACL
entry for the specified entity on the specified bucket.
§Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Sourcepub async fn update(
&self,
object_access_control: &ObjectAccessControl,
) -> Result<ObjectAccessControl>
pub async fn update( &self, object_access_control: &ObjectAccessControl, ) -> Result<ObjectAccessControl>
Updates an ACL entry on the specified object.
§Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Sourcepub async fn delete(
&self,
object_access_control: ObjectAccessControl,
) -> Result<()>
pub async fn delete( &self, object_access_control: ObjectAccessControl, ) -> Result<()>
Permanently deletes the ACL entry for the specified entity on the specified object.
§Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ObjectAccessControlClient<'a>
impl<'a> !RefUnwindSafe for ObjectAccessControlClient<'a>
impl<'a> Send for ObjectAccessControlClient<'a>
impl<'a> Sync for ObjectAccessControlClient<'a>
impl<'a> Unpin for ObjectAccessControlClient<'a>
impl<'a> !UnwindSafe for ObjectAccessControlClient<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more