VirtualNetworkRules Interface

public interface VirtualNetworkRules

Resource collection API of VirtualNetworkRules.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new VirtualNetworkRule resource.

abstract void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName)

Deletes the virtual network rule with the given name.

abstract void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context)

Deletes the virtual network rule with the given name.

abstract void deleteById(String id)

Deletes the virtual network rule with the given name.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes the virtual network rule with the given name.

abstract VirtualNetworkRule get(String resourceGroupName, String serverName, String virtualNetworkRuleName)

Gets a virtual network rule.

abstract VirtualNetworkRule getById(String id)

Gets a virtual network rule.

abstract Response<VirtualNetworkRule> getByIdWithResponse(String id, Context context)

Gets a virtual network rule.

abstract Response<VirtualNetworkRule> getWithResponse(String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context)

Gets a virtual network rule.

abstract PagedIterable<VirtualNetworkRule> listByServer(String resourceGroupName, String serverName)

Gets a list of virtual network rules in a server.

abstract PagedIterable<VirtualNetworkRule> listByServer(String resourceGroupName, String serverName, Context context)

Gets a list of virtual network rules in a server.

Method Details

define

public abstract 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.

delete

public abstract 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.

delete

public abstract void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName, 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.

deleteById

public abstract void deleteById(String id)

Deletes the virtual network rule with the given name.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes the virtual network rule with the given name.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

get

public abstract 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.

getById

public abstract VirtualNetworkRule getById(String id)

Gets a virtual network rule.

Parameters:

id - the resource ID.

Returns:

a virtual network rule along with Response<T>.

getByIdWithResponse

public abstract Response<VirtualNetworkRule> getByIdWithResponse(String id, 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<T>.

getWithResponse

public abstract Response<VirtualNetworkRule> getWithResponse(String resourceGroupName, String serverName, String virtualNetworkRuleName, 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<T>.

listByServer

public abstract 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 as paginated response with PagedIterable<T>.

listByServer

public abstract PagedIterable<VirtualNetworkRule> listByServer(String resourceGroupName, String serverName, 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 as paginated response with PagedIterable<T>.

Applies to