DnsResolverPoliciesClient Interface

public interface DnsResolverPoliciesClient

An instance of this class provides access to all the operations defined in DnsResolverPoliciesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters)

Creates or updates a DNS resolver policy.

abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context)

Creates or updates a DNS resolver policy.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName)

Deletes a DNS resolver policy.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName, String ifMatch, Context context)

Deletes a DNS resolver policy.

abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters)

Updates a DNS resolver policy.

abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context)

Updates a DNS resolver policy.

abstract DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters)

Creates or updates a DNS resolver policy.

abstract DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context)

Creates or updates a DNS resolver policy.

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 DnsResolverPolicyInner getByResourceGroup(String resourceGroupName, String dnsResolverPolicyName)

Gets properties of a DNS resolver policy.

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

Gets properties of a DNS resolver policy.

abstract PagedIterable<DnsResolverPolicyInner> list()

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

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

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

abstract PagedIterable<DnsResolverPolicyInner> listByResourceGroup(String resourceGroupName)

Lists DNS resolver policies within a resource group.

abstract PagedIterable<DnsResolverPolicyInner> 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.

abstract DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters)

Updates a DNS resolver policy.

abstract DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context)

Updates a DNS resolver policy.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters)

Creates or updates 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.
parameters - Parameters supplied to the CreateOrUpdate operation.

Returns:

the SyncPoller<T,U> for polling of describes a DNS resolver policy.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context)

Creates or updates 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.
parameters - Parameters supplied to the CreateOrUpdate operation.
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.
ifNoneMatch - Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of describes a DNS resolver policy.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(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.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(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.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters)

Updates 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.
parameters - Parameters supplied to the Update operation.

Returns:

the SyncPoller<T,U> for polling of describes a DNS resolver policy.

beginUpdate

public abstract SyncPoller<PollResult<DnsResolverPolicyInner>,DnsResolverPolicyInner> beginUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context)

Updates 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.
parameters - Parameters supplied to the Update operation.
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.

Returns:

the SyncPoller<T,U> for polling of describes a DNS resolver policy.

createOrUpdate

public abstract DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters)

Creates or updates 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.
parameters - Parameters supplied to the CreateOrUpdate operation.

Returns:

describes a DNS resolver policy.

createOrUpdate

public abstract DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context)

Creates or updates 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.
parameters - Parameters supplied to the CreateOrUpdate operation.
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.
ifNoneMatch - Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.
context - The context to associate with this operation.

Returns:

describes a DNS resolver policy.

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.

getByResourceGroup

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

update

public abstract DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters)

Updates 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.
parameters - Parameters supplied to the Update operation.

Returns:

describes a DNS resolver policy.

update

public abstract DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context)

Updates 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.
parameters - Parameters supplied to the Update operation.
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.

Returns:

describes a DNS resolver policy.

Applies to