Interface DnsResolversClient
public interface DnsResolversClient
An instance of this class provides access to all the operations defined in DnsResolversClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,
DnsResolverInner> beginCreateOrUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch) Creates or updates a DNS resolver.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,
DnsResolverInner> beginCreateOrUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Creates or updates a DNS resolver.beginDelete
(String resourceGroupName, String dnsResolverName, String ifMatch) Deletes a DNS resolver.beginDelete
(String resourceGroupName, String dnsResolverName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS resolver.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,
DnsResolverInner> beginUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch) Updates a DNS resolver.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,
DnsResolverInner> beginUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch, com.azure.core.util.Context context) Updates a DNS resolver.createOrUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters) Creates or updates a DNS resolver.createOrUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch) Creates or updates a DNS resolver.createOrUpdate
(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Creates or updates a DNS resolver.void
Deletes a DNS resolver.void
Deletes a DNS resolver.void
delete
(String resourceGroupName, String dnsResolverName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS resolver.getByResourceGroup
(String resourceGroupName, String dnsResolverName) Gets properties of a DNS resolver.com.azure.core.http.rest.Response<DnsResolverInner>
getByResourceGroupWithResponse
(String resourceGroupName, String dnsResolverName, com.azure.core.util.Context context) Gets properties of a DNS resolver.com.azure.core.http.rest.PagedIterable<DnsResolverInner>
list()
Lists DNS resolvers in all resource groups of a subscription.com.azure.core.http.rest.PagedIterable<DnsResolverInner>
Lists DNS resolvers in all resource groups of a subscription.com.azure.core.http.rest.PagedIterable<DnsResolverInner>
listByResourceGroup
(String resourceGroupName) Lists DNS resolvers within a resource group.com.azure.core.http.rest.PagedIterable<DnsResolverInner>
listByResourceGroup
(String resourceGroupName, Integer top, com.azure.core.util.Context context) Lists DNS resolvers within a resource group.com.azure.core.http.rest.PagedIterable<com.azure.core.management.SubResource>
listByVirtualNetwork
(String resourceGroupName, String virtualNetworkName) Lists DNS resolver resource IDs linked to a virtual network.com.azure.core.http.rest.PagedIterable<com.azure.core.management.SubResource>
listByVirtualNetwork
(String resourceGroupName, String virtualNetworkName, Integer top, com.azure.core.util.Context context) Lists DNS resolver resource IDs linked to a virtual network.update
(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters) Updates a DNS resolver.update
(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch) Updates a DNS resolver.update
(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch, com.azure.core.util.Context context) Updates a DNS resolver.
-
Method Details
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,DnsResolverInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch) Creates or updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- Returns:
- the
SyncPoller
for polling of describes a DNS resolver. - 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<DnsResolverInner>,DnsResolverInner> beginCreateOrUpdate(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Creates or updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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
for polling of describes a DNS resolver. - 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
DnsResolverInner createOrUpdate(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch) Creates or updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- Returns:
- describes a DNS resolver.
- 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
DnsResolverInner createOrUpdate(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters) Creates or updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.parameters
- Parameters supplied to the CreateOrUpdate operation.- Returns:
- describes a DNS resolver.
- 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
DnsResolverInner createOrUpdate(String resourceGroupName, String dnsResolverName, DnsResolverInner parameters, String ifMatch, String ifNoneMatch, com.azure.core.util.Context context) Creates or updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.
- 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,DnsResolverInner> beginUpdate(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch) Updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- Returns:
- the
SyncPoller
for polling of describes a DNS resolver. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DnsResolverInner>,DnsResolverInner> beginUpdate(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch, com.azure.core.util.Context context) Updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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
for polling of describes a DNS resolver. - 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.
-
update
DnsResolverInner update(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch) Updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- Returns:
- describes a DNS resolver.
- 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.
-
update
DnsResolverInner update(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters) Updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.parameters
- Parameters supplied to the Update operation.- Returns:
- describes a DNS resolver.
- 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.
-
update
DnsResolverInner update(String resourceGroupName, String dnsResolverName, DnsResolverPatch parameters, String ifMatch, com.azure.core.util.Context context) Updates a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.
- 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 dnsResolverName, String ifMatch) Deletes a DNS resolver. WARNING: This operation cannot be undone.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- Returns:
- the
SyncPoller
for 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 dnsResolverName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS resolver. WARNING: This operation cannot be undone.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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
for 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.
-
delete
Deletes a DNS resolver. WARNING: This operation cannot be undone.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- 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 a DNS resolver. WARNING: This operation cannot be undone.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.- 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 dnsResolverName, String ifMatch, com.azure.core.util.Context context) Deletes a DNS resolver. WARNING: This operation cannot be undone.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.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.- 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.
-
getByResourceGroup
Gets properties of a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.- Returns:
- properties of a DNS resolver.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DnsResolverInner> getByResourceGroupWithResponse(String resourceGroupName, String dnsResolverName, com.azure.core.util.Context context) Gets properties of a DNS resolver.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.dnsResolverName
- The name of the DNS resolver.context
- The context to associate with this operation.- Returns:
- properties of a DNS resolver 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DnsResolverInner> listByResourceGroup(String resourceGroupName) Lists DNS resolvers 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 resolvers 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DnsResolverInner> listByResourceGroup(String resourceGroupName, Integer top, com.azure.core.util.Context context) Lists DNS resolvers 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 resolvers 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.
-
list
com.azure.core.http.rest.PagedIterable<DnsResolverInner> list()Lists DNS resolvers in all resource groups of a subscription.- Returns:
- the response to an enumeration operation on DNS resolvers as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<DnsResolverInner> list(Integer top, com.azure.core.util.Context context) Lists DNS resolvers 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 resolvers 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.
-
listByVirtualNetwork
com.azure.core.http.rest.PagedIterable<com.azure.core.management.SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName) Lists DNS resolver 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
. - 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.
-
listByVirtualNetwork
com.azure.core.http.rest.PagedIterable<com.azure.core.management.SubResource> listByVirtualNetwork(String resourceGroupName, String virtualNetworkName, Integer top, com.azure.core.util.Context context) Lists DNS resolver 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.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 sub-resources 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.
-