pub struct CloudSubscriptionHandler { /* private fields */ }
Expand description
Handler for Cloud subscription operations
Manages Redis Cloud subscriptions which define the cloud provider, regions, and infrastructure configuration for hosting databases. Subscriptions serve as containers for databases and define billing, networking, and scaling policies.
Implementations§
Source§impl CloudSubscriptionHandler
impl CloudSubscriptionHandler
pub fn new(client: CloudClient) -> Self
Sourcepub async fn list(&self) -> Result<Vec<CloudSubscription>>
pub async fn list(&self) -> Result<Vec<CloudSubscription>>
List all subscriptions
Sourcepub async fn get(&self, subscription_id: u32) -> Result<CloudSubscription>
pub async fn get(&self, subscription_id: u32) -> Result<CloudSubscription>
Get subscription by ID
Sourcepub async fn databases(
&self,
subscription_id: u32,
) -> Result<Vec<CloudDatabase>>
pub async fn databases( &self, subscription_id: u32, ) -> Result<Vec<CloudDatabase>>
Get subscription databases
Sourcepub async fn create(
&self,
request: CreateSubscriptionRequest,
) -> Result<CloudSubscription>
pub async fn create( &self, request: CreateSubscriptionRequest, ) -> Result<CloudSubscription>
Create a new subscription
Sourcepub async fn update(
&self,
subscription_id: u32,
request: UpdateSubscriptionRequest,
) -> Result<CloudSubscription>
pub async fn update( &self, subscription_id: u32, request: UpdateSubscriptionRequest, ) -> Result<CloudSubscription>
Update subscription
Sourcepub async fn payment_methods(&self) -> Result<Value>
pub async fn payment_methods(&self) -> Result<Value>
Get available payment methods
Sourcepub async fn cloud_accounts(&self) -> Result<Value>
pub async fn cloud_accounts(&self) -> Result<Value>
Get available cloud accounts
Sourcepub async fn create_raw(&self, request: Value) -> Result<Value>
pub async fn create_raw(&self, request: Value) -> Result<Value>
Create with Value for flexibility
Sourcepub async fn update_raw(
&self,
subscription_id: u32,
request: Value,
) -> Result<Value>
pub async fn update_raw( &self, subscription_id: u32, request: Value, ) -> Result<Value>
Update with Value
Sourcepub async fn get_pricing(&self, subscription_id: u32) -> Result<Value>
pub async fn get_pricing(&self, subscription_id: u32) -> Result<Value>
Get pricing
Sourcepub async fn get_cidr_whitelist(&self, subscription_id: u32) -> Result<Value>
pub async fn get_cidr_whitelist(&self, subscription_id: u32) -> Result<Value>
Get CIDR whitelist
Sourcepub async fn update_cidr_whitelist(
&self,
subscription_id: u32,
request: Value,
) -> Result<Value>
pub async fn update_cidr_whitelist( &self, subscription_id: u32, request: Value, ) -> Result<Value>
Update CIDR whitelist
Sourcepub async fn get_vpc_peerings(&self, subscription_id: u32) -> Result<Value>
pub async fn get_vpc_peerings(&self, subscription_id: u32) -> Result<Value>
Get VPC peerings
Auto Trait Implementations§
impl Freeze for CloudSubscriptionHandler
impl !RefUnwindSafe for CloudSubscriptionHandler
impl Send for CloudSubscriptionHandler
impl Sync for CloudSubscriptionHandler
impl Unpin for CloudSubscriptionHandler
impl !UnwindSafe for CloudSubscriptionHandler
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