Interface VirtualRoutersClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<VirtualRouterInner>,InnerSupportsListing<VirtualRouterInner>
public interface VirtualRoutersClient
extends InnerSupportsGet<VirtualRouterInner>, InnerSupportsListing<VirtualRouterInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in VirtualRoutersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.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.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.beginDelete(String resourceGroupName, String virtualRouterName) Deletes the specified Virtual Router.beginDelete(String resourceGroupName, String virtualRouterName, com.azure.core.util.Context context) Deletes the specified Virtual Router.beginDeleteAsync(String resourceGroupName, String virtualRouterName) Deletes the specified Virtual Router.createOrUpdate(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters) Creates or updates the specified Virtual Router.createOrUpdate(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters, com.azure.core.util.Context context) Creates or updates the specified Virtual Router.createOrUpdateAsync(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters) Creates or updates the specified Virtual Router.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters) Creates or updates the specified Virtual Router.voidDeletes the specified Virtual Router.voidDeletes the specified Virtual Router.deleteAsync(String resourceGroupName, String virtualRouterName) Deletes the specified Virtual Router.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName) Deletes the specified Virtual Router.getByResourceGroup(String resourceGroupName, String virtualRouterName) Gets the specified Virtual Router.getByResourceGroupAsync(String resourceGroupName, String virtualRouterName) Gets the specified Virtual Router.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.Mono<com.azure.core.http.rest.Response<VirtualRouterInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String virtualRouterName, String expand) Gets the specified Virtual Router.com.azure.core.http.rest.PagedIterable<VirtualRouterInner> list()Gets all the Virtual Routers in a subscription.com.azure.core.http.rest.PagedIterable<VirtualRouterInner> list(com.azure.core.util.Context context) Gets all the Virtual Routers in a subscription.com.azure.core.http.rest.PagedFlux<VirtualRouterInner> Gets all the Virtual Routers in a subscription.com.azure.core.http.rest.PagedIterable<VirtualRouterInner> listByResourceGroup(String resourceGroupName) Lists all Virtual Routers in a resource group.com.azure.core.http.rest.PagedIterable<VirtualRouterInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all Virtual Routers in a resource group.com.azure.core.http.rest.PagedFlux<VirtualRouterInner> listByResourceGroupAsync(String resourceGroupName) Lists all Virtual Routers in a resource group.
-
Method Details
-
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Deletes the specified Virtual Router.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.virtualRouterName- The name of the Virtual Router.- Returns:
- A
Monothat 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
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
Responseon successful completion ofMono. - 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) Gets the specified Virtual Router.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<VirtualRouterInner>- Parameters:
resourceGroupName- The name of the resource group.virtualRouterName- The name of the Virtual Router.- 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.
-
getByResourceGroup
Gets the specified Virtual Router.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<VirtualRouterInner>- Parameters:
resourceGroupName- The name of the resource group.virtualRouterName- The name of the Virtual Router.- Returns:
- the specified 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.
-
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<VirtualRouterInner> listByResourceGroupAsync(String resourceGroupName) Lists all Virtual Routers in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<VirtualRouterInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- response for ListVirtualRouters 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VirtualRouterInner> listByResourceGroup(String resourceGroupName) Lists all Virtual Routers in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<VirtualRouterInner>- Parameters:
resourceGroupName- The name of the resource group.- 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.
-
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.
-
listAsync
com.azure.core.http.rest.PagedFlux<VirtualRouterInner> listAsync()Gets all the Virtual Routers in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<VirtualRouterInner>- Returns:
- all the Virtual Routers in a subscription as paginated response with
PagedFlux. - Throws:
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()Gets all the Virtual Routers in a subscription.- Specified by:
listin interfaceInnerSupportsListing<VirtualRouterInner>- Returns:
- all the Virtual Routers in a subscription as paginated response with
PagedIterable. - Throws:
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.
-