Struct cloud_storage::client::ObjectAccessControlClient
source · 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.