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.