pub struct CloudTransitGatewayHandler { /* private fields */ }
Expand description
Handler for Cloud Transit Gateway operations
Implementations§
Source§impl CloudTransitGatewayHandler
impl CloudTransitGatewayHandler
pub fn new(client: CloudClient) -> Self
Sourcepub async fn list(&self, subscription_id: u32) -> Result<Value>
pub async fn list(&self, subscription_id: u32) -> Result<Value>
List all transit gateways for a subscription
Sourcepub async fn get_attachment(
&self,
subscription_id: u32,
tgw_id: &str,
) -> Result<Value>
pub async fn get_attachment( &self, subscription_id: u32, tgw_id: &str, ) -> Result<Value>
Get transit gateway attachment details
Sourcepub async fn create_attachment(
&self,
subscription_id: u32,
tgw_id: &str,
attachment: Value,
) -> Result<Value>
pub async fn create_attachment( &self, subscription_id: u32, tgw_id: &str, attachment: Value, ) -> Result<Value>
Create transit gateway attachment
Sourcepub async fn delete_attachment(
&self,
subscription_id: u32,
tgw_id: &str,
) -> Result<()>
pub async fn delete_attachment( &self, subscription_id: u32, tgw_id: &str, ) -> Result<()>
Delete transit gateway attachment
Sourcepub async fn list_invitations(&self, subscription_id: u32) -> Result<Value>
pub async fn list_invitations(&self, subscription_id: u32) -> Result<Value>
List transit gateway invitations
Sourcepub async fn accept_invitation(
&self,
subscription_id: u32,
invitation_id: &str,
) -> Result<Value>
pub async fn accept_invitation( &self, subscription_id: u32, invitation_id: &str, ) -> Result<Value>
Accept transit gateway invitation
Sourcepub async fn reject_invitation(
&self,
subscription_id: u32,
invitation_id: &str,
) -> Result<Value>
pub async fn reject_invitation( &self, subscription_id: u32, invitation_id: &str, ) -> Result<Value>
Reject transit gateway invitation
Sourcepub async fn list_regional(
&self,
subscription_id: u32,
region_id: &str,
) -> Result<Value>
pub async fn list_regional( &self, subscription_id: u32, region_id: &str, ) -> Result<Value>
List regional transit gateways
Sourcepub async fn get_regional_attachment(
&self,
subscription_id: u32,
region_id: &str,
tgw_id: &str,
) -> Result<Value>
pub async fn get_regional_attachment( &self, subscription_id: u32, region_id: &str, tgw_id: &str, ) -> Result<Value>
Get regional transit gateway attachment
Sourcepub async fn create_regional_attachment(
&self,
subscription_id: u32,
region_id: &str,
tgw_id: &str,
attachment: Value,
) -> Result<Value>
pub async fn create_regional_attachment( &self, subscription_id: u32, region_id: &str, tgw_id: &str, attachment: Value, ) -> Result<Value>
Create regional transit gateway attachment
Sourcepub async fn delete_regional_attachment(
&self,
subscription_id: u32,
region_id: &str,
tgw_id: &str,
) -> Result<()>
pub async fn delete_regional_attachment( &self, subscription_id: u32, region_id: &str, tgw_id: &str, ) -> Result<()>
Delete regional transit gateway attachment
Sourcepub async fn list_regional_invitations(
&self,
subscription_id: u32,
region_id: &str,
) -> Result<Value>
pub async fn list_regional_invitations( &self, subscription_id: u32, region_id: &str, ) -> Result<Value>
List regional transit gateway invitations
Auto Trait Implementations§
impl Freeze for CloudTransitGatewayHandler
impl !RefUnwindSafe for CloudTransitGatewayHandler
impl Send for CloudTransitGatewayHandler
impl Sync for CloudTransitGatewayHandler
impl Unpin for CloudTransitGatewayHandler
impl !UnwindSafe for CloudTransitGatewayHandler
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