pub struct ObjectAccessControlClient<'a>(/* private fields */);Expand description
Operations on ObjectAccessControls.
Implementations§
Source§impl<'a> ObjectAccessControlClient<'a>
impl<'a> ObjectAccessControlClient<'a>
Sourcepub fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl,
) -> Result<ObjectAccessControl>
pub 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 fn list(
&self,
bucket: &str,
object: &str,
) -> Result<Vec<ObjectAccessControl>>
pub 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 fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity,
) -> Result<ObjectAccessControl>
pub 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 fn update(
&self,
object_access_control: &ObjectAccessControl,
) -> Result<ObjectAccessControl>
pub 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 fn delete(&self, object_access_control: ObjectAccessControl) -> Result<()>
pub 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.