Interface VirtualRouterPeeringsClient


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

      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String virtualRouterName,
                                                                                          String peeringName)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                                                                                                                               String peeringName)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                                                                                                                          String peeringName)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                                                                                                                          String peeringName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                               String peeringName)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                    String peeringName)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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,
                    String peeringName,
                    com.azure.core.util.Context context)
        Deletes the specified peering from a Virtual Router.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the peering.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<VirtualRouterPeeringInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                                String virtualRouterName,
                                                                                                String peeringName)
        Gets the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        Returns:
        the specified Virtual Router Peering 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.
      • getAsync

        Mono<VirtualRouterPeeringInner> getAsync​(String resourceGroupName,
                                                 String virtualRouterName,
                                                 String peeringName)
        Gets the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        Returns:
        the specified Virtual Router Peering 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.
      • get

        VirtualRouterPeeringInner get​(String resourceGroupName,
                                      String virtualRouterName,
                                      String peeringName)
        Gets the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        Returns:
        the specified Virtual Router Peering.
        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.
      • getWithResponse

        com.azure.core.http.rest.Response<VirtualRouterPeeringInner> getWithResponse​(String resourceGroupName,
                                                                                     String virtualRouterName,
                                                                                     String peeringName,
                                                                                     com.azure.core.util.Context context)
        Gets the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        context - The context to associate with this operation.
        Returns:
        the specified Virtual Router Peering 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,
                                                                                                  String peeringName,
                                                                                                  VirtualRouterPeeringInner parameters)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        Returns:
        virtual Router Peering 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<VirtualRouterPeeringInner>,​VirtualRouterPeeringInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                 String virtualRouterName,
                                                                                                                                                                                 String peeringName,
                                                                                                                                                                                 VirtualRouterPeeringInner parameters)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        Returns:
        the PollerFlux for polling of virtual Router Peering 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<VirtualRouterPeeringInner>,​VirtualRouterPeeringInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                            String virtualRouterName,
                                                                                                                                                                            String peeringName,
                                                                                                                                                                            VirtualRouterPeeringInner parameters)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        Returns:
        the SyncPoller for polling of virtual Router Peering 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<VirtualRouterPeeringInner>,​VirtualRouterPeeringInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                            String virtualRouterName,
                                                                                                                                                                            String peeringName,
                                                                                                                                                                            VirtualRouterPeeringInner parameters,
                                                                                                                                                                            com.azure.core.util.Context context)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of virtual Router Peering 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<VirtualRouterPeeringInner> createOrUpdateAsync​(String resourceGroupName,
                                                            String virtualRouterName,
                                                            String peeringName,
                                                            VirtualRouterPeeringInner parameters)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        Returns:
        virtual Router Peering 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

        VirtualRouterPeeringInner createOrUpdate​(String resourceGroupName,
                                                 String virtualRouterName,
                                                 String peeringName,
                                                 VirtualRouterPeeringInner parameters)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        Returns:
        virtual Router Peering 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

        VirtualRouterPeeringInner createOrUpdate​(String resourceGroupName,
                                                 String virtualRouterName,
                                                 String peeringName,
                                                 VirtualRouterPeeringInner parameters,
                                                 com.azure.core.util.Context context)
        Creates or updates the specified Virtual Router Peering.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        peeringName - The name of the Virtual Router Peering.
        parameters - Parameters supplied to the create or update Virtual Router Peering operation.
        context - The context to associate with this operation.
        Returns:
        virtual Router Peering 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.
      • listAsync

        com.azure.core.http.rest.PagedFlux<VirtualRouterPeeringInner> listAsync​(String resourceGroupName,
                                                                                String virtualRouterName)
        Lists all Virtual Router Peerings in a Virtual Router resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        response for ListVirtualRouterPeerings API service call as paginated response with PagedFlux.
        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<VirtualRouterPeeringInner> list​(String resourceGroupName,
                                                                               String virtualRouterName)
        Lists all Virtual Router Peerings in a Virtual Router resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        Returns:
        response for ListVirtualRouterPeerings 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<VirtualRouterPeeringInner> list​(String resourceGroupName,
                                                                               String virtualRouterName,
                                                                               com.azure.core.util.Context context)
        Lists all Virtual Router Peerings in a Virtual Router resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        virtualRouterName - The name of the Virtual Router.
        context - The context to associate with this operation.
        Returns:
        response for ListVirtualRouterPeerings 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.