Struct cloud_storage::sync::ObjectAccessControlClient [−][src]
pub struct ObjectAccessControlClient<'a>(_);
Expand description
Operations on ObjectAccessControls.
Implementations
impl<'a> ObjectAccessControlClient<'a>[src]
impl<'a> ObjectAccessControlClient<'a>[src]pub fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl
) -> Result<ObjectAccessControl>[src]
pub fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl
) -> Result<ObjectAccessControl>[src]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.
pub fn list(
&self,
bucket: &str,
object: &str
) -> Result<Vec<ObjectAccessControl>>[src]
pub fn list(
&self,
bucket: &str,
object: &str
) -> Result<Vec<ObjectAccessControl>>[src]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.
pub fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity
) -> Result<ObjectAccessControl>[src]
pub fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity
) -> Result<ObjectAccessControl>[src]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>[src]
pub fn update(
&self,
object_access_control: &ObjectAccessControl
) -> Result<ObjectAccessControl>[src]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.
pub fn delete(&self, object_access_control: ObjectAccessControl) -> Result<()>[src]
pub fn delete(&self, object_access_control: ObjectAccessControl) -> Result<()>[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]