Struct cloud_storage::sync::ObjectAccessControlClient
source · [−]pub struct ObjectAccessControlClient<'a>(_);Expand description
Operations on ObjectAccessControls.
Implementations
pub 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.
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.
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.
pub 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.
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> !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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more