Skip to main content

NetworkService

Struct NetworkService 

Source
pub struct NetworkService { /* private fields */ }

Implementations§

Source§

impl NetworkService

Source

pub fn attach_floating_ip( &self, floating_ip_id: &str, body: &AttachFloatingIpBody, ) -> Request<AttachFloatingIpResponse>

Attach an interface to a floating IP

Source

pub fn attach_interface_security_group( &self, interface_id: &str, body: &AttachInterfaceSecurityGroupBody, ) -> Request<AttachInterfaceSecurityGroupResponse>

Attach a security group to an interface

Source

pub fn create_egress_only_gateway( &self, body: &CreateEgressOnlyGatewayBody, ) -> Request<CreateEgressOnlyGatewayResponse>

Create egress-only gateway

Source

pub fn create_floating_ip( &self, body: Option<&CreateFloatingIpBody>, ) -> Request<CreateFloatingIpResponse>

Allocate floating IP

Source

pub fn create_interface( &self, body: &CreateInterfaceBody, ) -> Request<CreateInterfaceResponse>

Create interface

Source

pub fn create_interface_address( &self, interface_id: &str, body: &CreateInterfaceAddressBody, ) -> Request<CreateInterfaceAddressResponse>

Create interface address

Source

pub fn create_interface_prefix( &self, interface_id: &str, body: &CreateInterfacePrefixBody, ) -> Request<CreateInterfacePrefixResponse>

Create interface prefix

Source

pub fn create_internet_gateway( &self, body: &CreateInternetGatewayBody, ) -> Request<CreateInternetGatewayResponse>

Create internet gateway

Source

pub fn create_nat_gateway( &self, body: &CreateNATGatewayBody, ) -> Request<CreateNATGatewayResponse>

Create NAT gateway

Source

pub fn create_prefix_pool( &self, vpc_id: &str, body: &CreatePrefixPoolBody, ) -> Request<CreatePrefixPoolResponse>

Create prefix pool

Source

pub fn create_route( &self, route_table_id: &str, body: &CreateRouteBody, ) -> Request<CreateRouteResponse>

Create route

Source

pub fn create_route_table( &self, body: &CreateRouteTableBody, ) -> Request<CreateRouteTableResponse>

Create route table

Source

pub fn create_security_group( &self, body: &CreateSecurityGroupBody, ) -> Request<CreateSecurityGroupResponse>

Create security group

Source

pub fn create_security_group_rule( &self, security_group_id: &str, body: &CreateSecurityGroupRuleBody, ) -> Request<CreateSecurityGroupRuleResponse>

Create security group rule

Source

pub fn create_subnet( &self, body: &CreateSubnetBody, ) -> Request<CreateSubnetResponse>

Create subnet

Source

pub fn create_vpc(&self, body: &CreateVpcBody) -> Request<CreateVpcResponse>

Create VPC

Source

pub fn delete_egress_only_gateway( &self, egress_only_gateway_id: &str, ) -> EmptyRequest

Delete egress-only gateway

Source

pub fn delete_floating_ip(&self, floating_ip_id: &str) -> EmptyRequest

Release floating IP

Source

pub fn delete_interface(&self, interface_id: &str) -> EmptyRequest

Delete interface

Source

pub fn delete_interface_address( &self, interface_id: &str, address_id: &str, ) -> EmptyRequest

Delete interface address

Source

pub fn delete_interface_prefix( &self, interface_id: &str, prefix_id: &str, ) -> EmptyRequest

Delete interface prefix

Source

pub fn delete_internet_gateway(&self, internet_gateway_id: &str) -> EmptyRequest

Delete internet gateway

Source

pub fn delete_nat_gateway(&self, nat_gateway_id: &str) -> EmptyRequest

Delete NAT gateway

Source

pub fn delete_prefix_pool(&self, vpc_id: &str, pool_id: &str) -> EmptyRequest

Delete prefix pool

Source

pub fn delete_route(&self, route_table_id: &str, route_id: &str) -> EmptyRequest

Delete route

Source

pub fn delete_route_table(&self, route_table_id: &str) -> EmptyRequest

Delete route table

Source

pub fn delete_security_group(&self, security_group_id: &str) -> EmptyRequest

Delete security group

Source

pub fn delete_security_group_rule( &self, security_group_id: &str, rule_id: &str, ) -> EmptyRequest

Delete security group rule

Source

pub fn delete_subnet(&self, subnet_id: &str) -> EmptyRequest

Delete subnet

Source

pub fn delete_vpc(&self, vpc_id: &str) -> EmptyRequest

Delete VPC

Source

pub fn detach_floating_ip(&self, floating_ip_id: &str) -> EmptyRequest

Detach all direct interfaces from a floating IP

Source

pub fn detach_floating_ip_interface( &self, floating_ip_id: &str, interface_id: &str, ) -> EmptyRequest

Detach an interface from a floating IP

Source

pub fn detach_interface_security_group( &self, interface_id: &str, security_group_id: &str, ) -> EmptyRequest

Detach a security group from an interface

Source

pub fn enable_subnet_i_pv6( &self, subnet_id: &str, body: &EnableSubnetIPv6Body, ) -> Request<EnableSubnetIPv6Response>

Enable IPv6 on a subnet

Source

pub fn enable_vpci_pv6( &self, vpc_id: &str, body: &EnableVPCIPv6Body, ) -> Request<EnableVPCIPv6Response>

Enable IPv6 on a vpc

Source

pub fn get_egress_only_gateway( &self, egress_only_gateway_id: &str, ) -> Request<GetEgressOnlyGatewayResponse>

Get egress-only gateway

Source

pub fn get_egress_only_gateway_by_reference( &self, reference: &str, scope: &GetEgressOnlyGatewayScope, ) -> Request<GetEgressOnlyGatewayResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_floating_ip( &self, floating_ip_id: &str, ) -> Request<GetFloatingIpResponse>

Get floating IP

Source

pub fn get_floating_ip_by_reference( &self, reference: &str, scope: &GetFloatingIpScope, ) -> Request<GetFloatingIpResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_interface(&self, interface_id: &str) -> Request<GetInterfaceResponse>

Get interface

Source

pub fn get_interface_by_reference( &self, reference: &str, scope: &GetInterfaceScope, ) -> Request<GetInterfaceResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_interface_address( &self, interface_id: &str, address_id: &str, ) -> Request<GetInterfaceAddressResponse>

Get interface address

Source

pub fn get_internet_gateway( &self, internet_gateway_id: &str, ) -> Request<GetInternetGatewayResponse>

Get internet gateway

Source

pub fn get_internet_gateway_by_reference( &self, reference: &str, scope: &GetInternetGatewayScope, ) -> Request<GetInternetGatewayResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_nat_gateway( &self, nat_gateway_id: &str, ) -> Request<GetNATGatewayResponse>

Get NAT gateway

Source

pub fn get_nat_gateway_by_reference( &self, reference: &str, scope: &GetNATGatewayScope, ) -> Request<GetNATGatewayResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_route( &self, route_table_id: &str, route_id: &str, ) -> Request<GetRouteResponse>

Get route

Source

pub fn get_route_by_reference( &self, route_table_id: &str, reference: &str, scope: &GetRouteScope, ) -> Request<GetRouteResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_route_table( &self, route_table_id: &str, ) -> Request<GetRouteTableResponse>

Get route table

Source

pub fn get_route_table_by_reference( &self, reference: &str, scope: &GetRouteTableScope, ) -> Request<GetRouteTableResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_security_group( &self, security_group_id: &str, ) -> Request<GetSecurityGroupResponse>

Get security group

Source

pub fn get_security_group_by_reference( &self, reference: &str, scope: &GetSecurityGroupScope, ) -> Request<GetSecurityGroupResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_security_group_rule( &self, security_group_id: &str, rule_id: &str, ) -> Request<GetSecurityGroupRuleResponse>

Get security group rule

Source

pub fn get_security_group_rule_by_reference( &self, security_group_id: &str, reference: &str, scope: &GetSecurityGroupRuleScope, ) -> Request<GetSecurityGroupRuleResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_subnet(&self, subnet_id: &str) -> Request<GetSubnetResponse>

Get subnet

Source

pub fn get_subnet_by_reference( &self, reference: &str, scope: &GetSubnetScope, ) -> Request<GetSubnetResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_vpc(&self, vpc_id: &str) -> Request<GetVpcResponse>

Get VPC

Source

pub fn get_vpc_by_reference( &self, reference: &str, scope: &GetVpcScope, ) -> Request<GetVpcResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn list_egress_only_gateway_routes( &self, egress_only_gateway_id: &str, query: &ListEgressOnlyGatewayRoutesQuery, ) -> PagedRequest<ListEgressOnlyGatewayRoutesResponse, ListEgressOnlyGatewayRoutesItem>

List egress-only gateway routes

Source

pub fn list_egress_only_gateways( &self, query: &ListEgressOnlyGatewaysQuery, ) -> PagedRequest<ListEgressOnlyGatewaysResponse, ListEgressOnlyGatewaysItem>

List egress-only gateways

Source

pub fn list_floating_ip_interfaces( &self, floating_ip_id: &str, query: &ListFloatingIpInterfacesQuery, ) -> PagedRequest<ListFloatingIpInterfacesResponse, ListFloatingIpInterfacesItem>

List a floating IP’s interfaces

Source

pub fn list_floating_ips( &self, query: &ListFloatingIpsQuery, ) -> PagedRequest<ListFloatingIpsResponse, ListFloatingIpsItem>

List floating IPs

Source

pub fn list_interface_addresses( &self, interface_id: &str, ) -> PagedRequest<ListInterfaceAddressesResponse, ListInterfaceAddressesItem>

List interface addresses

Source

pub fn list_interface_prefixes( &self, interface_id: &str, ) -> PagedRequest<ListInterfacePrefixesResponse, ListInterfacePrefixesItem>

List interface prefixes

Source

pub fn list_interface_security_groups( &self, interface_id: &str, query: &ListInterfaceSecurityGroupsQuery, ) -> PagedRequest<ListInterfaceSecurityGroupsResponse, ListInterfaceSecurityGroupsItem>

List an interface’s security groups

Source

pub fn list_interfaces( &self, query: &ListInterfacesQuery, ) -> PagedRequest<ListInterfacesResponse, ListInterfacesItem>

List interfaces

Source

pub fn list_internet_gateway_routes( &self, internet_gateway_id: &str, query: &ListInternetGatewayRoutesQuery, ) -> PagedRequest<ListInternetGatewayRoutesResponse, ListInternetGatewayRoutesItem>

List internet gateway routes

Source

pub fn list_internet_gateways( &self, query: &ListInternetGatewaysQuery, ) -> PagedRequest<ListInternetGatewaysResponse, ListInternetGatewaysItem>

List internet gateways

Source

pub fn list_nat_gateway_routes( &self, nat_gateway_id: &str, query: &ListNATGatewayRoutesQuery, ) -> PagedRequest<ListNATGatewayRoutesResponse, ListNATGatewayRoutesItem>

List NAT gateway routes

Source

pub fn list_nat_gateways( &self, query: &ListNATGatewaysQuery, ) -> PagedRequest<ListNATGatewaysResponse, ListNATGatewaysItem>

List NAT gateways

Source

pub fn list_prefix_pools( &self, vpc_id: &str, ) -> PagedRequest<ListPrefixPoolsResponse, ListPrefixPoolsItem>

List prefix pools

Source

pub fn list_route_tables( &self, query: &ListRouteTablesQuery, ) -> PagedRequest<ListRouteTablesResponse, ListRouteTablesItem>

List route tables

Source

pub fn list_routes( &self, route_table_id: &str, query: &ListRoutesQuery, ) -> PagedRequest<ListRoutesResponse, ListRoutesItem>

List routes

Source

pub fn list_security_group_rules( &self, security_group_id: &str, query: &ListSecurityGroupRulesQuery, ) -> PagedRequest<ListSecurityGroupRulesResponse, ListSecurityGroupRulesItem>

List security group rules

Source

pub fn list_security_groups( &self, query: &ListSecurityGroupsQuery, ) -> PagedRequest<ListSecurityGroupsResponse, ListSecurityGroupsItem>

List security groups

Source

pub fn list_subnets( &self, query: &ListSubnetsQuery, ) -> PagedRequest<ListSubnetsResponse, ListSubnetsItem>

List subnets

Source

pub fn list_vpcs( &self, query: &ListVpcsQuery, ) -> PagedRequest<ListVpcsResponse, ListVpcsItem>

List VPCs

Source

pub fn update_egress_only_gateway( &self, egress_only_gateway_id: &str, body: &UpdateEgressOnlyGatewayBody, ) -> Request<UpdateEgressOnlyGatewayResponse>

Update egress-only gateway

Source

pub fn update_floating_ip( &self, floating_ip_id: &str, body: &UpdateFloatingIpBody, ) -> Request<UpdateFloatingIpResponse>

Update floating IP

Source

pub fn update_interface( &self, interface_id: &str, body: &UpdateInterfaceBody, ) -> Request<UpdateInterfaceResponse>

Update interface

Source

pub fn update_internet_gateway( &self, internet_gateway_id: &str, body: &UpdateInternetGatewayBody, ) -> Request<UpdateInternetGatewayResponse>

Update internet gateway

Source

pub fn update_nat_gateway( &self, nat_gateway_id: &str, body: &UpdateNATGatewayBody, ) -> Request<UpdateNATGatewayResponse>

Update NAT gateway

Source

pub fn update_route( &self, route_table_id: &str, route_id: &str, body: &UpdateRouteBody, ) -> Request<UpdateRouteResponse>

Update route

Source

pub fn update_route_table( &self, route_table_id: &str, body: &UpdateRouteTableBody, ) -> Request<UpdateRouteTableResponse>

Update route table

Source

pub fn update_security_group( &self, security_group_id: &str, body: &UpdateSecurityGroupBody, ) -> Request<UpdateSecurityGroupResponse>

Update security group

Source

pub fn update_subnet( &self, subnet_id: &str, body: &UpdateSubnetBody, ) -> Request<UpdateSubnetResponse>

Update subnet

Source

pub fn update_vpc( &self, vpc_id: &str, body: &UpdateVpcBody, ) -> Request<UpdateVpcResponse>

Update VPC

Trait Implementations§

Source§

impl Clone for NetworkService

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NetworkService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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: Sized + 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: Sized + 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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