Interface VirtualNetworkRulesClient
public interface VirtualNetworkRulesClient
An instance of this class provides access to all the operations defined in VirtualNetworkRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkRuleInner>, VirtualNetworkRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkRuleInner>, VirtualNetworkRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters, com.azure.core.util.Context context) Creates or updates an existing virtual network rule.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualNetworkRuleInner>, VirtualNetworkRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.beginDelete(String resourceGroupName, String serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.beginDelete(String resourceGroupName, String serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Deletes the virtual network rule with the given name.beginDeleteAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.createOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.createOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters, com.azure.core.util.Context context) Creates or updates an existing virtual network rule.createOrUpdateAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.voidDeletes the virtual network rule with the given name.voiddelete(String resourceGroupName, String serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Deletes the virtual network rule with the given name.deleteAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.Gets a virtual network rule.Gets a virtual network rule.com.azure.core.http.rest.Response<VirtualNetworkRuleInner> getWithResponse(String resourceGroupName, String serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Gets a virtual network rule.Mono<com.azure.core.http.rest.Response<VirtualNetworkRuleInner>> getWithResponseAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Gets a virtual network rule.com.azure.core.http.rest.PagedIterable<VirtualNetworkRuleInner> listByServer(String resourceGroupName, String serverName) Gets a list of virtual network rules in a server.com.azure.core.http.rest.PagedIterable<VirtualNetworkRuleInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of virtual network rules in a server.com.azure.core.http.rest.PagedFlux<VirtualNetworkRuleInner> listByServerAsync(String resourceGroupName, String serverName) Gets a list of virtual network rules in a server.
-
Method Details
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<VirtualNetworkRuleInner> listByServerAsync(String resourceGroupName, String serverName) Gets a list of virtual network rules in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of virtual network rules in a server 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<VirtualNetworkRuleInner> listByServer(String resourceGroupName, String serverName) Gets a list of virtual network rules in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of virtual network rules in a server 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<VirtualNetworkRuleInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of virtual network rules in a server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- a list of virtual network rules in a server 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<VirtualNetworkRuleInner>> getWithResponseAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Gets a virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- a virtual network rule along with
Responseon successful completion ofMono. - 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<VirtualNetworkRuleInner> getAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName) Gets a virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- a virtual network rule 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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualNetworkRuleInner> getWithResponse(String resourceGroupName, String serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Gets a virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.context- The context to associate with this operation.- Returns:
- a virtual network rule 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.
-
get
VirtualNetworkRuleInner get(String resourceGroupName, String serverName, String virtualNetworkRuleName) Gets a virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- a virtual network rule.
- 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 serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.- Returns:
- a virtual network rule along with
Responseon successful completion ofMono. - 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<VirtualNetworkRuleInner>,VirtualNetworkRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.- Returns:
- the
PollerFluxfor polling of a virtual network rule. - 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<VirtualNetworkRuleInner>,VirtualNetworkRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.- Returns:
- the
SyncPollerfor polling of a virtual network rule. - 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<VirtualNetworkRuleInner>,VirtualNetworkRuleInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters, com.azure.core.util.Context context) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a virtual network rule. - 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<VirtualNetworkRuleInner> createOrUpdateAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.- Returns:
- a virtual network rule 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
VirtualNetworkRuleInner createOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.- Returns:
- a virtual network rule.
- 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
VirtualNetworkRuleInner createOrUpdate(String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters, com.azure.core.util.Context context) Creates or updates an existing virtual network rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.parameters- The requested virtual Network Rule Resource state.context- The context to associate with this operation.- Returns:
- a virtual network rule.
- 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 serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- the
Responseon successful completion ofMono. - 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 serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- the
PollerFluxfor 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 serverName, String virtualNetworkRuleName) Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- the
SyncPollerfor 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 serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- Returns:
- A
Monothat 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
Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.- 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 serverName, String virtualNetworkRuleName, com.azure.core.util.Context context) Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.virtualNetworkRuleName- The name of the virtual network rule.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.
-