Interface VirtualNetworkRules
-
public interface VirtualNetworkRulesResource collection API of VirtualNetworkRules.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualNetworkRule.DefinitionStages.Blankdefine(String name)Begins definition for a new VirtualNetworkRule resource.voiddelete(String resourceGroupName, String serverName, String virtualNetworkRuleName)Deletes 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.voiddeleteById(String id)Deletes the virtual network rule with the given name.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context)Deletes the virtual network rule with the given name.VirtualNetworkRuleget(String resourceGroupName, String serverName, String virtualNetworkRuleName)Gets a virtual network rule.VirtualNetworkRulegetById(String id)Gets a virtual network rule.com.azure.core.http.rest.Response<VirtualNetworkRule>getByIdWithResponse(String id, com.azure.core.util.Context context)Gets a virtual network rule.com.azure.core.http.rest.Response<VirtualNetworkRule>getWithResponse(String resourceGroupName, String serverName, String virtualNetworkRuleName, com.azure.core.util.Context context)Gets a virtual network rule.com.azure.core.http.rest.PagedIterable<VirtualNetworkRule>listByServer(String resourceGroupName, String serverName)Gets a list of virtual network rules in a server.com.azure.core.http.rest.PagedIterable<VirtualNetworkRule>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)Gets a list of virtual network rules in a server.
-
-
-
Method Detail
-
get
VirtualNetworkRule get(String resourceGroupName, String serverName, String virtualNetworkRuleName)
Gets a virtual network rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualNetworkRule> 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. The name is case insensitive.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.
-
delete
void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName)
Deletes the virtual network rule with the given name.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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. The name is case insensitive.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.
-
listByServer
com.azure.core.http.rest.PagedIterable<VirtualNetworkRule> listByServer(String resourceGroupName, String serverName)
Gets a list of virtual network rules in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- a list of virtual network rules in a server.
- 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<VirtualNetworkRule> 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. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- a list of virtual network rules in a server.
- 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.
-
getById
VirtualNetworkRule getById(String id)
Gets a virtual network rule.- Parameters:
id- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<VirtualNetworkRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets a virtual network rule.- Parameters:
id- the resource ID.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.
-
deleteById
void deleteById(String id)
Deletes the virtual network rule with the given name.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes the virtual network rule with the given name.- Parameters:
id- the resource ID.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.
-
define
VirtualNetworkRule.DefinitionStages.Blank define(String name)
Begins definition for a new VirtualNetworkRule resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new VirtualNetworkRule definition.
-
-