pub struct VpnGatewayClient { /* private fields */ }Expand description
Calls VpnGatewayService.
VPN gateways: a VPC’s end of its site-to-site VPN tunnels, in one zone. A gateway holds no address: each of its VPN connections ends on a floating IP of its own. A VPC may have several VPN gateways.
Implementations§
Source§impl VpnGatewayClient
impl VpnGatewayClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of VpnGatewayService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn get_vpn_gateway(
&self,
request: GetVpnGatewayRequest,
) -> Result<VpnGateway, Error>
pub async fn get_vpn_gateway( &self, request: GetVpnGatewayRequest, ) -> Result<VpnGateway, Error>
Returns a VPN gateway.
Sourcepub async fn list_vpn_gateways(
&self,
request: ListVpnGatewaysRequest,
) -> Result<ListVpnGatewaysResponse, Error>
pub async fn list_vpn_gateways( &self, request: ListVpnGatewaysRequest, ) -> Result<ListVpnGatewaysResponse, Error>
Lists the VPN gateways in a zone, oldest first.
Sourcepub fn all_vpn_gateways(
&self,
request: ListVpnGatewaysRequest,
) -> Pages<VpnGateway>
pub fn all_vpn_gateways( &self, request: ListVpnGatewaysRequest, ) -> Pages<VpnGateway>
Returns everything list_vpn_gateways lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Sourcepub async fn create_vpn_gateway(
&self,
request: CreateVpnGatewayRequest,
) -> Result<Operation<VpnGateway>, Error>
pub async fn create_vpn_gateway( &self, request: CreateVpnGatewayRequest, ) -> Result<Operation<VpnGateway>, Error>
Creates a VPN gateway in a VPC, in the zone of parent. A VPC may have
several, up to the max_vpn_gateways quota. The operation is done once
the change is recorded.
It answers with an operation to wait on: Operation::wait returns the VpnGateway once the change is done.
Sourcepub async fn update_vpn_gateway(
&self,
request: UpdateVpnGatewayRequest,
) -> Result<Operation<VpnGateway>, Error>
pub async fn update_vpn_gateway( &self, request: UpdateVpnGatewayRequest, ) -> Result<Operation<VpnGateway>, Error>
Changes a VPN gateway’s tags. The operation is done once the change is recorded.
It answers with an operation to wait on: Operation::wait returns the VpnGateway once the change is done.
Sourcepub async fn delete_vpn_gateway(
&self,
request: DeleteVpnGatewayRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_vpn_gateway( &self, request: DeleteVpnGatewayRequest, ) -> Result<Operation<Empty>, Error>
Deletes a VPN gateway. Refused with FAILED_PRECONDITION while a VPN
connection or a route names the gateway. The operation is done once the
change is recorded.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.