Interface VpnConnectionsClient


  • public interface VpnConnectionsClient
    An instance of this class provides access to all the operations defined in VpnConnectionsClient.
    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VpnConnectionInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                         String gatewayName,
                                                                                         String connectionName)
        Retrieves the details of a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the vpn connection.
        Returns:
        vpnConnection Resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<VpnConnectionInner> getAsync​(String resourceGroupName,
                                          String gatewayName,
                                          String connectionName)
        Retrieves the details of a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the vpn connection.
        Returns:
        vpnConnection Resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        VpnConnectionInner get​(String resourceGroupName,
                               String gatewayName,
                               String connectionName)
        Retrieves the details of a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the vpn connection.
        Returns:
        vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<VpnConnectionInner> getWithResponse​(String resourceGroupName,
                                                                              String gatewayName,
                                                                              String connectionName,
                                                                              com.azure.core.util.Context context)
        Retrieves the details of a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the vpn connection.
        context - The context to associate with this operation.
        Returns:
        vpnConnection Resource along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String gatewayName,
                                                                                                  String connectionName,
                                                                                                  VpnConnectionInner vpnConnectionParameters)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        Returns:
        vpnConnection Resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VpnConnectionInner>,​VpnConnectionInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                   String gatewayName,
                                                                                                                                                                   String connectionName,
                                                                                                                                                                   VpnConnectionInner vpnConnectionParameters)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        Returns:
        the PollerFlux for polling of vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VpnConnectionInner>,​VpnConnectionInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String gatewayName,
                                                                                                                                                              String connectionName,
                                                                                                                                                              VpnConnectionInner vpnConnectionParameters)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        Returns:
        the SyncPoller for polling of vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VpnConnectionInner>,​VpnConnectionInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String gatewayName,
                                                                                                                                                              String connectionName,
                                                                                                                                                              VpnConnectionInner vpnConnectionParameters,
                                                                                                                                                              com.azure.core.util.Context context)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<VpnConnectionInner> createOrUpdateAsync​(String resourceGroupName,
                                                     String gatewayName,
                                                     String connectionName,
                                                     VpnConnectionInner vpnConnectionParameters)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        Returns:
        vpnConnection Resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VpnConnectionInner createOrUpdate​(String resourceGroupName,
                                          String gatewayName,
                                          String connectionName,
                                          VpnConnectionInner vpnConnectionParameters)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        Returns:
        vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VpnConnectionInner createOrUpdate​(String resourceGroupName,
                                          String gatewayName,
                                          String connectionName,
                                          VpnConnectionInner vpnConnectionParameters,
                                          com.azure.core.util.Context context)
        Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        vpnConnectionParameters - Parameters supplied to create or Update a VPN Connection.
        context - The context to associate with this operation.
        Returns:
        vpnConnection Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String gatewayName,
                                                                                          String connectionName)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String gatewayName,
                                                                                                                               String connectionName)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String gatewayName,
                                                                                                                          String connectionName)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String gatewayName,
                                                                                                                          String connectionName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String gatewayName,
                               String connectionName)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String gatewayName,
                    String connectionName)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String gatewayName,
                    String connectionName,
                    com.azure.core.util.Context context)
        Deletes a vpn connection.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        connectionName - The name of the connection.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCaptureWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> startPacketCaptureWithResponseAsync​(String resourceGroupName,
                                                                                                      String gatewayName,
                                                                                                      String vpnConnectionName,
                                                                                                      VpnConnectionPacketCaptureStartParameters parameters)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        Returns:
        the response body along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStartPacketCaptureAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<String>,​String> beginStartPacketCaptureAsync​(String resourceGroupName,
                                                                                                                                               String gatewayName,
                                                                                                                                               String vpnConnectionName,
                                                                                                                                               VpnConnectionPacketCaptureStartParameters parameters)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStartPacketCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<String>,​String> beginStartPacketCapture​(String resourceGroupName,
                                                                                                                                          String gatewayName,
                                                                                                                                          String vpnConnectionName,
                                                                                                                                          VpnConnectionPacketCaptureStartParameters parameters)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStartPacketCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<String>,​String> beginStartPacketCapture​(String resourceGroupName,
                                                                                                                                          String gatewayName,
                                                                                                                                          String vpnConnectionName,
                                                                                                                                          VpnConnectionPacketCaptureStartParameters parameters,
                                                                                                                                          com.azure.core.util.Context context)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCaptureAsync

        Mono<String> startPacketCaptureAsync​(String resourceGroupName,
                                             String gatewayName,
                                             String vpnConnectionName,
                                             VpnConnectionPacketCaptureStartParameters parameters)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        Returns:
        the response body on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCaptureAsync

        Mono<String> startPacketCaptureAsync​(String resourceGroupName,
                                             String gatewayName,
                                             String vpnConnectionName)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        Returns:
        the response body on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCapture

        String startPacketCapture​(String resourceGroupName,
                                  String gatewayName,
                                  String vpnConnectionName,
                                  VpnConnectionPacketCaptureStartParameters parameters)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCapture

        String startPacketCapture​(String resourceGroupName,
                                  String gatewayName,
                                  String vpnConnectionName)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startPacketCapture

        String startPacketCapture​(String resourceGroupName,
                                  String gatewayName,
                                  String vpnConnectionName,
                                  VpnConnectionPacketCaptureStartParameters parameters,
                                  com.azure.core.util.Context context)
        Starts packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to start packet capture on gateway connection.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCaptureWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> stopPacketCaptureWithResponseAsync​(String resourceGroupName,
                                                                                                     String gatewayName,
                                                                                                     String vpnConnectionName,
                                                                                                     VpnConnectionPacketCaptureStopParameters parameters)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        Returns:
        the response body along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStopPacketCaptureAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<String>,​String> beginStopPacketCaptureAsync​(String resourceGroupName,
                                                                                                                                              String gatewayName,
                                                                                                                                              String vpnConnectionName,
                                                                                                                                              VpnConnectionPacketCaptureStopParameters parameters)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStopPacketCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<String>,​String> beginStopPacketCapture​(String resourceGroupName,
                                                                                                                                         String gatewayName,
                                                                                                                                         String vpnConnectionName,
                                                                                                                                         VpnConnectionPacketCaptureStopParameters parameters)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStopPacketCapture

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<String>,​String> beginStopPacketCapture​(String resourceGroupName,
                                                                                                                                         String gatewayName,
                                                                                                                                         String vpnConnectionName,
                                                                                                                                         VpnConnectionPacketCaptureStopParameters parameters,
                                                                                                                                         com.azure.core.util.Context context)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCaptureAsync

        Mono<String> stopPacketCaptureAsync​(String resourceGroupName,
                                            String gatewayName,
                                            String vpnConnectionName,
                                            VpnConnectionPacketCaptureStopParameters parameters)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        Returns:
        the response body on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCaptureAsync

        Mono<String> stopPacketCaptureAsync​(String resourceGroupName,
                                            String gatewayName,
                                            String vpnConnectionName)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        Returns:
        the response body on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCapture

        String stopPacketCapture​(String resourceGroupName,
                                 String gatewayName,
                                 String vpnConnectionName,
                                 VpnConnectionPacketCaptureStopParameters parameters)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCapture

        String stopPacketCapture​(String resourceGroupName,
                                 String gatewayName,
                                 String vpnConnectionName)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopPacketCapture

        String stopPacketCapture​(String resourceGroupName,
                                 String gatewayName,
                                 String vpnConnectionName,
                                 VpnConnectionPacketCaptureStopParameters parameters,
                                 com.azure.core.util.Context context)
        Stops packet capture on Vpn connection in the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        gatewayName - The name of the gateway.
        vpnConnectionName - The name of the vpn connection.
        parameters - Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection.
        context - The context to associate with this operation.
        Returns:
        the response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByVpnGatewayAsync

        com.azure.core.http.rest.PagedFlux<VpnConnectionInner> listByVpnGatewayAsync​(String resourceGroupName,
                                                                                     String gatewayName)
        Retrieves all vpn connections for a particular virtual wan vpn gateway.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        Returns:
        result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByVpnGateway

        com.azure.core.http.rest.PagedIterable<VpnConnectionInner> listByVpnGateway​(String resourceGroupName,
                                                                                    String gatewayName)
        Retrieves all vpn connections for a particular virtual wan vpn gateway.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        Returns:
        result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByVpnGateway

        com.azure.core.http.rest.PagedIterable<VpnConnectionInner> listByVpnGateway​(String resourceGroupName,
                                                                                    String gatewayName,
                                                                                    com.azure.core.util.Context context)
        Retrieves all vpn connections for a particular virtual wan vpn gateway.
        Parameters:
        resourceGroupName - The resource group name of the VpnGateway.
        gatewayName - The name of the gateway.
        context - The context to associate with this operation.
        Returns:
        result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.