DnsResolverPolicies Interface

public interface DnsResolverPolicies

Resource collection API of DnsResolverPolicies.

Method Summary

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

Begins definition for a new DnsResolverPolicy resource.

abstract void delete(String resourceGroupName, String dnsResolverPolicyName)

Deletes a DNS resolver policy.

abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String ifMatch, Context context)

Deletes a DNS resolver policy.

abstract void deleteById(String id)

Deletes a DNS resolver policy.

abstract void deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a DNS resolver policy.

abstract DnsResolverPolicy getById(String id)

Gets properties of a DNS resolver policy.

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

Gets properties of a DNS resolver policy.

abstract DnsResolverPolicy getByResourceGroup(String resourceGroupName, String dnsResolverPolicyName)

Gets properties of a DNS resolver policy.

abstract Response<DnsResolverPolicy> getByResourceGroupWithResponse(String resourceGroupName, String dnsResolverPolicyName, Context context)

Gets properties of a DNS resolver policy.

abstract PagedIterable<DnsResolverPolicy> list()

Lists DNS resolver policies in all resource groups of a subscription.

abstract PagedIterable<DnsResolverPolicy> list(Integer top, Context context)

Lists DNS resolver policies in all resource groups of a subscription.

abstract PagedIterable<DnsResolverPolicy> listByResourceGroup(String resourceGroupName)

Lists DNS resolver policies within a resource group.

abstract PagedIterable<DnsResolverPolicy> listByResourceGroup(String resourceGroupName, Integer top, Context context)

Lists DNS resolver policies within a resource group.

abstract PagedIterable<SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName)

Lists DNS resolver policy resource IDs linked to a virtual network.

abstract PagedIterable<SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName, Context context)

Lists DNS resolver policy resource IDs linked to a virtual network.

Method Details

define

public abstract DnsResolverPolicy.DefinitionStages.Blank define(String name)

Begins definition for a new DnsResolverPolicy resource.

Parameters:

name - resource name.

Returns:

the first stage of the new DnsResolverPolicy definition.

delete

public abstract void delete(String resourceGroupName, String dnsResolverPolicyName)

Deletes a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.

delete

public abstract void delete(String resourceGroupName, String dnsResolverPolicyName, String ifMatch, Context context)

Deletes a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, String ifMatch, Context context)

Deletes a DNS resolver policy. WARNING: This operation cannot be undone.

Parameters:

id - the resource ID.
ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
context - The context to associate with this operation.

getById

public abstract DnsResolverPolicy getById(String id)

Gets properties of a DNS resolver policy.

Parameters:

id - the resource ID.

Returns:

properties of a DNS resolver policy along with Response<T>.

getByIdWithResponse

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

Gets properties of a DNS resolver policy.

Parameters:

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

Returns:

properties of a DNS resolver policy along with Response<T>.

getByResourceGroup

public abstract DnsResolverPolicy getByResourceGroup(String resourceGroupName, String dnsResolverPolicyName)

Gets properties of a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.

Returns:

properties of a DNS resolver policy.

getByResourceGroupWithResponse

public abstract Response<DnsResolverPolicy> getByResourceGroupWithResponse(String resourceGroupName, String dnsResolverPolicyName, Context context)

Gets properties of a DNS resolver policy.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
dnsResolverPolicyName - The name of the DNS resolver policy.
context - The context to associate with this operation.

Returns:

properties of a DNS resolver policy along with Response<T>.

list

public abstract PagedIterable<DnsResolverPolicy> list()

Lists DNS resolver policies in all resource groups of a subscription.

Returns:

the response to an enumeration operation on DNS resolver policies as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<DnsResolverPolicy> list(Integer top, Context context)

Lists DNS resolver policies in all resource groups of a subscription.

Parameters:

top - The maximum number of results to return. If not specified, returns up to 100 results.
context - The context to associate with this operation.

Returns:

the response to an enumeration operation on DNS resolver policies as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<DnsResolverPolicy> listByResourceGroup(String resourceGroupName)

Lists DNS resolver policies within a resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

the response to an enumeration operation on DNS resolver policies as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<DnsResolverPolicy> listByResourceGroup(String resourceGroupName, Integer top, Context context)

Lists DNS resolver policies within a resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
top - The maximum number of results to return. If not specified, returns up to 100 results.
context - The context to associate with this operation.

Returns:

the response to an enumeration operation on DNS resolver policies as paginated response with PagedIterable<T>.

listByVirtualNetwork

public abstract PagedIterable<SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName)

Lists DNS resolver policy resource IDs linked to a virtual network.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
virtualNetworkName - The name of the virtual network.

Returns:

the response to an enumeration operation on sub-resources as paginated response with PagedIterable<T>.

listByVirtualNetwork

public abstract PagedIterable<SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName, Context context)

Lists DNS resolver policy resource IDs linked to a virtual network.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
virtualNetworkName - The name of the virtual network.
context - The context to associate with this operation.

Returns:

the response to an enumeration operation on sub-resources as paginated response with PagedIterable<T>.

Applies to