Interface VirtualRoutersClient

    • Method Detail

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String virtualRouterName)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        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.
        ErrorException - 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 virtualRouterName)
        Deletes the specified Virtual Router.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName,
                    com.azure.core.util.Context context)
        Deletes the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualRouterInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                        String virtualRouterName,
                                                                                                        String expand)
        Gets the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        expand - Expands referenced resources.
        Returns:
        the specified Virtual Router along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupAsync

        Mono<VirtualRouterInner> getByResourceGroupAsync​(String resourceGroupName,
                                                         String virtualRouterName,
                                                         String expand)
        Gets the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        expand - Expands referenced resources.
        Returns:
        the specified Virtual Router on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<VirtualRouterInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                             String virtualRouterName,
                                                                                             String expand,
                                                                                             com.azure.core.util.Context context)
        Gets the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        expand - Expands referenced resources.
        context - The context to associate with this operation.
        Returns:
        the specified Virtual Router along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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 virtualRouterName,
                                                                                                  VirtualRouterInner parameters)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        Returns:
        virtualRouter Resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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<VirtualRouterInner>,​VirtualRouterInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                   String virtualRouterName,
                                                                                                                                                                   VirtualRouterInner parameters)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        Returns:
        the PollerFlux for polling of virtualRouter Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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<VirtualRouterInner>,​VirtualRouterInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String virtualRouterName,
                                                                                                                                                              VirtualRouterInner parameters)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        Returns:
        the SyncPoller for polling of virtualRouter Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - 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<VirtualRouterInner>,​VirtualRouterInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                              String virtualRouterName,
                                                                                                                                                              VirtualRouterInner parameters,
                                                                                                                                                              com.azure.core.util.Context context)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of virtualRouter Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<VirtualRouterInner> createOrUpdateAsync​(String resourceGroupName,
                                                     String virtualRouterName,
                                                     VirtualRouterInner parameters)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        Returns:
        virtualRouter Resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualRouterInner createOrUpdate​(String resourceGroupName,
                                          String virtualRouterName,
                                          VirtualRouterInner parameters)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        Returns:
        virtualRouter Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        VirtualRouterInner createOrUpdate​(String resourceGroupName,
                                          String virtualRouterName,
                                          VirtualRouterInner parameters,
                                          com.azure.core.util.Context context)
        Creates or updates the specified Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        parameters - Parameters supplied to the create or update Virtual Router.
        context - The context to associate with this operation.
        Returns:
        virtualRouter Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<VirtualRouterInner> listByResourceGroup​(String resourceGroupName,
                                                                                       com.azure.core.util.Context context)
        Lists all Virtual Routers in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        response for ListVirtualRouters API service call as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<VirtualRouterInner> list​(com.azure.core.util.Context context)
        Gets all the Virtual Routers in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all the Virtual Routers in a subscription as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.