Skip to main content

NetworkingClient

Struct NetworkingClient 

Source
pub struct NetworkingClient<'a> { /* private fields */ }
Expand description

Client for the Azure Networking API.

Wraps the raw NetworkingOps with ergonomic signatures that auto-inject subscription_id from the parent AzureHttpClient.

Implementations§

Source§

impl<'a> NetworkingClient<'a>

Source

pub async fn list_vnets( &self, resource_group_name: &str, ) -> Result<VirtualNetworkListResult>

Gets all virtual networks in a resource group.

Source

pub async fn list_vnets_all(&self) -> Result<VirtualNetworkListResult>

Gets all virtual networks in the subscription.

Source

pub async fn get_vnet( &self, resource_group_name: &str, vnet_name: &str, ) -> Result<VirtualNetwork>

Gets the specified virtual network.

Source

pub async fn create_vnet( &self, resource_group_name: &str, vnet_name: &str, body: &VirtualNetworkCreateRequest, ) -> Result<VirtualNetwork>

Creates or updates a virtual network.

Source

pub async fn delete_vnet( &self, resource_group_name: &str, vnet_name: &str, ) -> Result<()>

Deletes the specified virtual network.

Source

pub async fn list_subnets( &self, resource_group_name: &str, vnet_name: &str, ) -> Result<SubnetListResult>

Gets all subnets in a virtual network.

Source

pub async fn get_subnet( &self, resource_group_name: &str, vnet_name: &str, subnet_name: &str, ) -> Result<Subnet>

Gets the specified subnet.

Source

pub async fn list_nsgs( &self, resource_group_name: &str, ) -> Result<NetworkSecurityGroupListResult>

Gets all network security groups in a resource group.

Source

pub async fn list_nsgs_all(&self) -> Result<NetworkSecurityGroupListResult>

Gets all network security groups in the subscription.

Source

pub async fn get_nsg( &self, resource_group_name: &str, nsg_name: &str, ) -> Result<NetworkSecurityGroup>

Gets the specified network security group.

Source

pub async fn create_nsg( &self, resource_group_name: &str, nsg_name: &str, body: &NetworkSecurityGroupCreateRequest, ) -> Result<NetworkSecurityGroup>

Creates or updates a network security group.

Source

pub async fn delete_nsg( &self, resource_group_name: &str, nsg_name: &str, ) -> Result<()>

Deletes the specified network security group.

Source

pub async fn list_security_rules( &self, resource_group_name: &str, nsg_name: &str, ) -> Result<SecurityRuleListResult>

Gets all security rules in a network security group.

Source

pub async fn get_security_rule( &self, resource_group_name: &str, nsg_name: &str, rule_name: &str, ) -> Result<SecurityRule>

Gets the specified network security rule.

Source

pub async fn create_security_rule( &self, resource_group_name: &str, nsg_name: &str, rule_name: &str, body: &SecurityRule, ) -> Result<SecurityRule>

Creates or updates a security rule in a network security group.

Source

pub async fn delete_security_rule( &self, resource_group_name: &str, nsg_name: &str, rule_name: &str, ) -> Result<()>

Deletes the specified network security rule.

Source

pub async fn list_load_balancers( &self, resource_group_name: &str, ) -> Result<LoadBalancerListResult>

Gets all the load balancers in a resource group.

Source

pub async fn list_load_balancers_all(&self) -> Result<LoadBalancerListResult>

Gets all the load balancers in the subscription.

Source

pub async fn get_load_balancer( &self, resource_group_name: &str, lb_name: &str, ) -> Result<LoadBalancer>

Gets the specified load balancer.

Source

pub async fn create_load_balancer( &self, resource_group_name: &str, lb_name: &str, body: &LoadBalancerCreateRequest, ) -> Result<LoadBalancer>

Creates or updates a load balancer.

Source

pub async fn delete_load_balancer( &self, resource_group_name: &str, lb_name: &str, ) -> Result<()>

Deletes the specified load balancer.

Source

pub async fn delete_network_interface( &self, resource_group_name: &str, nic_name: &str, ) -> Result<()>

Deletes the specified network interface.

Source

pub async fn delete_nat_gateway( &self, resource_group_name: &str, nat_gateway_name: &str, ) -> Result<()>

Deletes the specified NAT gateway.

Auto Trait Implementations§

§

impl<'a> Freeze for NetworkingClient<'a>

§

impl<'a> !RefUnwindSafe for NetworkingClient<'a>

§

impl<'a> Send for NetworkingClient<'a>

§

impl<'a> Sync for NetworkingClient<'a>

§

impl<'a> Unpin for NetworkingClient<'a>

§

impl<'a> UnsafeUnpin for NetworkingClient<'a>

§

impl<'a> !UnwindSafe for NetworkingClient<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more