pub struct CloudAclHandler { /* private fields */ }
Expand description
Handler for Cloud ACL/RBAC operations
Implementations§
Source§impl CloudAclHandler
impl CloudAclHandler
pub fn new(client: CloudClient) -> Self
pub async fn list( &self, subscription_id: u32, database_id: u32, ) -> Result<Value>
pub async fn get( &self, subscription_id: u32, database_id: u32, acl_id: u32, ) -> Result<Value>
pub async fn create( &self, subscription_id: u32, database_id: u32, request: Value, ) -> Result<Value>
pub async fn update( &self, subscription_id: u32, database_id: u32, acl_id: u32, request: Value, ) -> Result<Value>
pub async fn delete( &self, subscription_id: u32, database_id: u32, acl_id: u32, ) -> Result<Value>
Sourcepub async fn list_users(&self) -> Result<Value>
pub async fn list_users(&self) -> Result<Value>
List all ACL users
Sourcepub async fn create_user(&self, request: Value) -> Result<Value>
pub async fn create_user(&self, request: Value) -> Result<Value>
Create ACL user
Sourcepub async fn delete_user(&self, user_id: u32) -> Result<()>
pub async fn delete_user(&self, user_id: u32) -> Result<()>
Delete ACL user
Sourcepub async fn list_roles(&self) -> Result<Value>
pub async fn list_roles(&self) -> Result<Value>
List all ACL roles
Sourcepub async fn create_role(&self, request: Value) -> Result<Value>
pub async fn create_role(&self, request: Value) -> Result<Value>
Create ACL role
Sourcepub async fn delete_role(&self, role_id: u32) -> Result<()>
pub async fn delete_role(&self, role_id: u32) -> Result<()>
Delete ACL role
Sourcepub async fn list_redis_rules(&self) -> Result<Value>
pub async fn list_redis_rules(&self) -> Result<Value>
List Redis rules
Sourcepub async fn get_redis_rule(&self, rule_id: u32) -> Result<Value>
pub async fn get_redis_rule(&self, rule_id: u32) -> Result<Value>
Get Redis rule by ID
Sourcepub async fn create_redis_rule(&self, request: Value) -> Result<Value>
pub async fn create_redis_rule(&self, request: Value) -> Result<Value>
Create Redis rule
Sourcepub async fn update_redis_rule(
&self,
rule_id: u32,
request: Value,
) -> Result<Value>
pub async fn update_redis_rule( &self, rule_id: u32, request: Value, ) -> Result<Value>
Update Redis rule
Sourcepub async fn delete_redis_rule(&self, rule_id: u32) -> Result<()>
pub async fn delete_redis_rule(&self, rule_id: u32) -> Result<()>
Delete Redis rule
Auto Trait Implementations§
impl Freeze for CloudAclHandler
impl !RefUnwindSafe for CloudAclHandler
impl Send for CloudAclHandler
impl Sync for CloudAclHandler
impl Unpin for CloudAclHandler
impl !UnwindSafe for CloudAclHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more