diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 139c07064b263..f58feb6ab3d95 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -323,6 +323,7 @@ com.azure.resourcemanager:azure-resourcemanager-logz;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storagepool;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dataprotection;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-dns-generated;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index d405245552e7f..1c0d052993a27 100644
--- a/pom.xml
+++ b/pom.xml
@@ -759,6 +759,7 @@
sdk/devspacessdk/devtestlabssdk/digitaltwins
+ sdk/dnssdk/elasticsdk/eventgridsdk/eventhubs
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/CHANGELOG.md b/sdk/dns/azure-resourcemanager-dns-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..945dd29686339
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-11-30)
+
+- Azure Resource Manager Dns client library for Java. This package contains Microsoft Azure SDK for Dns Management SDK. The DNS Management Client. Package tag package-2018-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/README.md b/sdk/dns/azure-resourcemanager-dns-generated/README.md
new file mode 100644
index 0000000000000..7f80c2e84be9e
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager Dns client library for Java
+
+Azure Resource Manager Dns client library for Java.
+
+This package contains Microsoft Azure SDK for Dns Management SDK. The DNS Management Client. Package tag package-2018-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-dns-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-dns-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+DnsManager manager = DnsManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/dns/azure-resourcemanager-dns-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/SAMPLE.md b/sdk/dns/azure-resourcemanager-dns-generated/SAMPLE.md
new file mode 100644
index 0000000000000..02221c0c388be
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/SAMPLE.md
@@ -0,0 +1,1199 @@
+# Code snippets and samples
+
+
+## DnsResourceReference
+
+- [GetByTargetResources](#dnsresourcereference_getbytargetresources)
+
+## RecordSets
+
+- [CreateOrUpdate](#recordsets_createorupdate)
+- [Delete](#recordsets_delete)
+- [Get](#recordsets_get)
+- [ListAllByDnsZone](#recordsets_listallbydnszone)
+- [ListByDnsZone](#recordsets_listbydnszone)
+- [ListByType](#recordsets_listbytype)
+- [Update](#recordsets_update)
+
+## Zones
+
+- [CreateOrUpdate](#zones_createorupdate)
+- [Delete](#zones_delete)
+- [GetByResourceGroup](#zones_getbyresourcegroup)
+- [List](#zones_list)
+- [ListByResourceGroup](#zones_listbyresourcegroup)
+- [Update](#zones_update)
+### DnsResourceReference_GetByTargetResources
+
+```java
+import com.azure.core.management.SubResource;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.models.DnsResourceReferenceRequest;
+import java.util.Arrays;
+
+/** Samples for DnsResourceReference GetByTargetResources. */
+public final class DnsResourceReferenceGetByTargetResourcesSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetDnsResourceReference.json
+ */
+ /**
+ * Sample code: List zones by resource group.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listZonesByResourceGroup(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .dnsResourceReferences()
+ .getByTargetResourcesWithResponse(
+ new DnsResourceReferenceRequest()
+ .withTargetResources(
+ Arrays
+ .asList(
+ new SubResource()
+ .withId(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/trafficManagerProfiles/testpp2"))),
+ Context.NONE);
+ }
+}
+```
+
+### RecordSets_CreateOrUpdate
+
+```java
+import com.azure.core.management.SubResource;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.fluent.models.RecordSetInner;
+import com.azure.resourcemanager.dns.generated.models.ARecord;
+import com.azure.resourcemanager.dns.generated.models.AaaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CnameRecord;
+import com.azure.resourcemanager.dns.generated.models.MxRecord;
+import com.azure.resourcemanager.dns.generated.models.NsRecord;
+import com.azure.resourcemanager.dns.generated.models.PtrRecord;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+import com.azure.resourcemanager.dns.generated.models.SoaRecord;
+import com.azure.resourcemanager.dns.generated.models.SrvRecord;
+import com.azure.resourcemanager.dns.generated.models.TxtRecord;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RecordSets CreateOrUpdate. */
+public final class RecordSetsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateSRVRecordset.json
+ */
+ /**
+ * Sample code: Create SRV recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createSRVRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.SRV,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withSrvRecords(
+ Arrays
+ .asList(
+ new SrvRecord().withPriority(0).withWeight(10).withPort(80).withTarget("contoso.com"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateCNAMERecordset.json
+ */
+ /**
+ * Sample code: Create CNAME recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createCNAMERecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.CNAME,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withCnameRecord(new CnameRecord().withCname("contoso.com")),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateTXTRecordset.json
+ */
+ /**
+ * Sample code: Create TXT recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createTXTRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.TXT,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withTxtRecords(Arrays.asList(new TxtRecord().withValue(Arrays.asList("string1", "string2")))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateAAAARecordset.json
+ */
+ /**
+ * Sample code: Create AAAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createAAAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.AAAA,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withAaaaRecords(Arrays.asList(new AaaaRecord().withIpv6Address("::1"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateCaaRecordset.json
+ */
+ /**
+ * Sample code: Create CAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createCAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.CAA,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withCaaRecords(
+ Arrays.asList(new CaaRecord().withFlags(0).withTag("issue").withValue("ca.contoso.com"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdatePTRRecordset.json
+ */
+ /**
+ * Sample code: Create PTR recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createPTRRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "0.0.127.in-addr.arpa",
+ "1",
+ RecordType.PTR,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withPtrRecords(Arrays.asList(new PtrRecord().withPtrdname("localhost"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateMXRecordset.json
+ */
+ /**
+ * Sample code: Create MX recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createMXRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.MX,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withMxRecords(Arrays.asList(new MxRecord().withPreference(0).withExchange("mail.contoso.com"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateNSRecordset.json
+ */
+ /**
+ * Sample code: Create NS recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createNSRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.NS,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withNsRecords(Arrays.asList(new NsRecord().withNsdname("ns1.contoso.com"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateARecordsetAlias.json
+ */
+ /**
+ * Sample code: Create A recordset with alias target resource.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createARecordsetWithAliasTargetResource(
+ com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.A,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withTargetResource(
+ new SubResource()
+ .withId(
+ "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2")),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateARecordset.json
+ */
+ /**
+ * Sample code: Create A recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.A,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withARecords(Arrays.asList(new ARecord().withIpv4Address("127.0.0.1"))),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateSOARecordset.json
+ */
+ /**
+ * Sample code: Create SOA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createSOARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "zone1",
+ "@",
+ RecordType.SOA,
+ new RecordSetInner()
+ .withMetadata(mapOf("key1", "value1"))
+ .withTtl(3600L)
+ .withSoaRecord(
+ new SoaRecord()
+ .withHost("ns1.contoso.com")
+ .withEmail("hostmaster.contoso.com")
+ .withSerialNumber(1L)
+ .withRefreshTime(3600L)
+ .withRetryTime(300L)
+ .withExpireTime(2419200L)
+ .withMinimumTtl(300L)),
+ null,
+ null,
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### RecordSets_Delete
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+
+/** Samples for RecordSets Delete. */
+public final class RecordSetsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteARecordset.json
+ */
+ /**
+ * Sample code: Delete A recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.A, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteAAAARecordset.json
+ */
+ /**
+ * Sample code: Delete AAAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteAAAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.AAAA, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteTXTRecordset.json
+ */
+ /**
+ * Sample code: Delete TXT recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteTXTRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.TXT, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeletePTRRecordset.json
+ */
+ /**
+ * Sample code: Delete PTR recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deletePTRRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "0.0.127.in-addr.arpa", "1", RecordType.PTR, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteSRVRecordset.json
+ */
+ /**
+ * Sample code: Delete SRV recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteSRVRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.SRV, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteARecordset.json
+ */
+ /**
+ * Sample code: Delete MX recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteMXRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.A, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteCaaRecordset.json
+ */
+ /**
+ * Sample code: Delete CAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteCAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.CAA, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteARecordset.json
+ */
+ /**
+ * Sample code: Delete NS recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteNSRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.A, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteARecordset.json
+ */
+ /**
+ * Sample code: Delete CNAME recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteCNAMERecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().deleteWithResponse("rg1", "zone1", "record1", RecordType.A, null, Context.NONE);
+ }
+}
+```
+
+### RecordSets_Get
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+
+/** Samples for RecordSets Get. */
+public final class RecordSetsGetSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetNSRecordset.json
+ */
+ /**
+ * Sample code: Get NS recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getNSRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.NS, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetAAAARecordset.json
+ */
+ /**
+ * Sample code: Get AAAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getAAAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.AAAA, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetSRVRecordset.json
+ */
+ /**
+ * Sample code: Get SRV recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getSRVRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.SRV, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetCaaRecordset.json
+ */
+ /**
+ * Sample code: Get CAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getCAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.CAA, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetCNAMERecordset.json
+ */
+ /**
+ * Sample code: Get CNAME recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getCNAMERecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.CNAME, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetPTRRecordset.json
+ */
+ /**
+ * Sample code: Get PTR recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getPTRRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "0.0.127.in-addr.arpa", "1", RecordType.PTR, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetTXTRecordset.json
+ */
+ /**
+ * Sample code: Get TXT recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getTXTRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.TXT, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetARecordset.json
+ */
+ /**
+ * Sample code: Get A recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.A, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetMXRecordset.json
+ */
+ /**
+ * Sample code: Get MX recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getMXRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "record1", RecordType.MX, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetSOARecordset.json
+ */
+ /**
+ * Sample code: Get SOA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getSOARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().getWithResponse("rg1", "zone1", "@", RecordType.SOA, Context.NONE);
+ }
+}
+```
+
+### RecordSets_ListAllByDnsZone
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RecordSets ListAllByDnsZone. */
+public final class RecordSetsListAllByDnsZoneSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListRecordSetsByZone.json
+ */
+ /**
+ * Sample code: List recordsets by zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listRecordsetsByZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listAllByDnsZone("rg1", "zone1", null, null, Context.NONE);
+ }
+}
+```
+
+### RecordSets_ListByDnsZone
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RecordSets ListByDnsZone. */
+public final class RecordSetsListByDnsZoneSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListRecordSetsByZone.json
+ */
+ /**
+ * Sample code: List recordsets by zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listRecordsetsByZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByDnsZone("rg1", "zone1", null, null, Context.NONE);
+ }
+}
+```
+
+### RecordSets_ListByType
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+
+/** Samples for RecordSets ListByType. */
+public final class RecordSetsListByTypeSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListAAAARecordset.json
+ */
+ /**
+ * Sample code: List AAAA recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listAAAARecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.AAAA, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListSRVRecordset.json
+ */
+ /**
+ * Sample code: List SRV recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listSRVRecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.SRV, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListPTRRecordset.json
+ */
+ /**
+ * Sample code: List PTR recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listPTRRecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "0.0.127.in-addr.arpa", RecordType.PTR, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListMXRecordset.json
+ */
+ /**
+ * Sample code: List MX recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listMXRecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.MX, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListNSRecordset.json
+ */
+ /**
+ * Sample code: List NS recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listNSRecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.NS, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListCNAMERecordset.json
+ */
+ /**
+ * Sample code: List CNAME recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listCNAMERecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.CNAME, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListARecordset.json
+ */
+ /**
+ * Sample code: List A recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listARecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.A, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListSOARecordset.json
+ */
+ /**
+ * Sample code: List SOA recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listSOARecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.SOA, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListCaaRecordset.json
+ */
+ /**
+ * Sample code: List CAA recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listCAARecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.CAA, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListTXTRecordset.json
+ */
+ /**
+ * Sample code: List TXT recordsets.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listTXTRecordsets(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.recordSets().listByType("rg1", "zone1", RecordType.TXT, null, null, Context.NONE);
+ }
+}
+```
+
+### RecordSets_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.fluent.models.RecordSetInner;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for RecordSets Update. */
+public final class RecordSetsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchMXRecordset.json
+ */
+ /**
+ * Sample code: Patch MX recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchMXRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.MX,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchNSRecordset.json
+ */
+ /**
+ * Sample code: Patch NS recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchNSRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.NS,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchPTRRecordset.json
+ */
+ /**
+ * Sample code: Patch PTR recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchPTRRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "0.0.127.in-addr.arpa",
+ "1",
+ RecordType.PTR,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSOARecordset.json
+ */
+ /**
+ * Sample code: Patch SOA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchSOARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "@",
+ RecordType.SOA,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchARecordset.json
+ */
+ /**
+ * Sample code: Patch A recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.A,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchTXTRecordset.json
+ */
+ /**
+ * Sample code: Patch TXT recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchTXTRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.TXT,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCaaRecordset.json
+ */
+ /**
+ * Sample code: Patch CAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchCAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.CAA,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchAAAARecordset.json
+ */
+ /**
+ * Sample code: Patch AAAA recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchAAAARecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.AAAA,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCNAMERecordset.json
+ */
+ /**
+ * Sample code: Patch CNAME recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchCNAMERecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.CNAME,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSRVRecordset.json
+ */
+ /**
+ * Sample code: Patch SRV recordset.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchSRVRecordset(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .recordSets()
+ .updateWithResponse(
+ "rg1",
+ "zone1",
+ "record1",
+ RecordType.SRV,
+ new RecordSetInner().withMetadata(mapOf("key2", "value2")),
+ null,
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Zones_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Zones CreateOrUpdate. */
+public final class ZonesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/CreateOrUpdateZone.json
+ */
+ /**
+ * Sample code: Create zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void createZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager
+ .zones()
+ .define("zone1")
+ .withRegion("Global")
+ .withExistingResourceGroup("rg1")
+ .withTags(mapOf("key1", "value1"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Zones_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Zones Delete. */
+public final class ZonesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/DeleteZone.json
+ */
+ /**
+ * Sample code: Delete zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void deleteZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.zones().delete("rg1", "zone1", null, Context.NONE);
+ }
+}
+```
+
+### Zones_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Zones GetByResourceGroup. */
+public final class ZonesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetZone.json
+ */
+ /**
+ * Sample code: Get zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void getZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.zones().getByResourceGroupWithResponse("rg1", "zone1", Context.NONE);
+ }
+}
+```
+
+### Zones_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Zones List. */
+public final class ZonesListSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListZonesBySubscription.json
+ */
+ /**
+ * Sample code: List zones by subscription.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listZonesBySubscription(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.zones().list(null, Context.NONE);
+ }
+}
+```
+
+### Zones_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Zones ListByResourceGroup. */
+public final class ZonesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/ListZonesByResourceGroup.json
+ */
+ /**
+ * Sample code: List zones by resource group.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void listZonesByResourceGroup(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ manager.zones().listByResourceGroup("rg1", null, Context.NONE);
+ }
+}
+```
+
+### Zones_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.models.Zone;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Zones Update. */
+public final class ZonesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchZone.json
+ */
+ /**
+ * Sample code: Patch zone.
+ *
+ * @param manager Entry point to DnsManager.
+ */
+ public static void patchZone(com.azure.resourcemanager.dns.generated.DnsManager manager) {
+ Zone resource = manager.zones().getByResourceGroupWithResponse("rg1", "zone1", Context.NONE).getValue();
+ resource.update().withTags(mapOf("key2", "value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/pom.xml b/sdk/dns/azure-resourcemanager-dns-generated/pom.xml
new file mode 100644
index 0000000000000..f1f715fcad830
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/pom.xml
@@ -0,0 +1,81 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-dns-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Dns Management
+ This package contains Microsoft Azure SDK for Dns Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The DNS Management Client. Package tag package-2018-05.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+ false
+
+
+
+
+
+ com.azure
+ azure-core
+ 1.23.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.3
+
+
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+
+ java.method.addedToInterface
+
+
+ true
+ .*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/DnsManager.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/DnsManager.java
new file mode 100644
index 0000000000000..30932b41b33ab
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/DnsManager.java
@@ -0,0 +1,266 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.fluent.DnsManagementClient;
+import com.azure.resourcemanager.dns.generated.implementation.DnsManagementClientBuilder;
+import com.azure.resourcemanager.dns.generated.implementation.DnsResourceReferencesImpl;
+import com.azure.resourcemanager.dns.generated.implementation.RecordSetsImpl;
+import com.azure.resourcemanager.dns.generated.implementation.ZonesImpl;
+import com.azure.resourcemanager.dns.generated.models.DnsResourceReferences;
+import com.azure.resourcemanager.dns.generated.models.RecordSets;
+import com.azure.resourcemanager.dns.generated.models.Zones;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to DnsManager. The DNS Management Client. */
+public final class DnsManager {
+ private RecordSets recordSets;
+
+ private Zones zones;
+
+ private DnsResourceReferences dnsResourceReferences;
+
+ private final DnsManagementClient clientObject;
+
+ private DnsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new DnsManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Dns service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Dns service API instance.
+ */
+ public static DnsManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create DnsManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new DnsManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Dns service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Dns service API instance.
+ */
+ public DnsManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.dns.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new DnsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of RecordSets. */
+ public RecordSets recordSets() {
+ if (this.recordSets == null) {
+ this.recordSets = new RecordSetsImpl(clientObject.getRecordSets(), this);
+ }
+ return recordSets;
+ }
+
+ /** @return Resource collection API of Zones. */
+ public Zones zones() {
+ if (this.zones == null) {
+ this.zones = new ZonesImpl(clientObject.getZones(), this);
+ }
+ return zones;
+ }
+
+ /** @return Resource collection API of DnsResourceReferences. */
+ public DnsResourceReferences dnsResourceReferences() {
+ if (this.dnsResourceReferences == null) {
+ this.dnsResourceReferences = new DnsResourceReferencesImpl(clientObject.getDnsResourceReferences(), this);
+ }
+ return dnsResourceReferences;
+ }
+
+ /**
+ * @return Wrapped service client DnsManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public DnsManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsManagementClient.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsManagementClient.java
new file mode 100644
index 0000000000000..1a2ba25e53b61
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsManagementClient.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for DnsManagementClient class. */
+public interface DnsManagementClient {
+ /**
+ * Gets Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the RecordSetsClient object to access its operations.
+ *
+ * @return the RecordSetsClient object.
+ */
+ RecordSetsClient getRecordSets();
+
+ /**
+ * Gets the ZonesClient object to access its operations.
+ *
+ * @return the ZonesClient object.
+ */
+ ZonesClient getZones();
+
+ /**
+ * Gets the DnsResourceReferencesClient object to access its operations.
+ *
+ * @return the DnsResourceReferencesClient object.
+ */
+ DnsResourceReferencesClient getDnsResourceReferences();
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsResourceReferencesClient.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsResourceReferencesClient.java
new file mode 100644
index 0000000000000..801b9291dbebd
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/DnsResourceReferencesClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.fluent.models.DnsResourceReferenceResultInner;
+import com.azure.resourcemanager.dns.generated.models.DnsResourceReferenceRequest;
+
+/** An instance of this class provides access to all the operations defined in DnsResourceReferencesClient. */
+public interface DnsResourceReferencesClient {
+ /**
+ * Returns the DNS records specified by the referencing targetResourceIds.
+ *
+ * @param parameters Properties for dns resource reference request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the properties of the Dns Resource Reference Result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DnsResourceReferenceResultInner getByTargetResources(DnsResourceReferenceRequest parameters);
+
+ /**
+ * Returns the DNS records specified by the referencing targetResourceIds.
+ *
+ * @param parameters Properties for dns resource reference request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents the properties of the Dns Resource Reference Result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByTargetResourcesWithResponse(
+ DnsResourceReferenceRequest parameters, Context context);
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/RecordSetsClient.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/RecordSetsClient.java
new file mode 100644
index 0000000000000..32883baff6503
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/RecordSetsClient.java
@@ -0,0 +1,294 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dns.generated.fluent.models.RecordSetInner;
+import com.azure.resourcemanager.dns.generated.models.RecordType;
+
+/** An instance of this class provides access to all the operations defined in RecordSetsClient. */
+public interface RecordSetsClient {
+ /**
+ * Updates a record set within a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set.
+ * @param parameters Parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS record set (a collection of DNS records with the same name and type).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecordSetInner update(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ RecordSetInner parameters);
+
+ /**
+ * Updates a record set within a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set.
+ * @param parameters Parameters supplied to the Update operation.
+ * @param ifMatch The etag of the record set. Omit this value to always overwrite the current record set. Specify
+ * the last-seen etag value to prevent accidentally overwriting concurrent changes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS record set (a collection of DNS records with the same name and type).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ RecordSetInner parameters,
+ String ifMatch,
+ Context context);
+
+ /**
+ * Creates or updates a record set within a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated but not
+ * created (they are created when the DNS zone is created).
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS record set (a collection of DNS records with the same name and type).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecordSetInner createOrUpdate(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ RecordSetInner parameters);
+
+ /**
+ * Creates or updates a record set within a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated but not
+ * created (they are created when the DNS zone is created).
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The etag of the record set. Omit this value to always overwrite the current record set. Specify
+ * the last-seen etag value to prevent accidentally overwriting any concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing record
+ * set. Other values will be ignored.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS record set (a collection of DNS records with the same name and type).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ RecordSetInner parameters,
+ String ifMatch,
+ String ifNoneMatch,
+ Context context);
+
+ /**
+ * Deletes a record set from a DNS zone. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are
+ * deleted when the DNS zone is deleted).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String zoneName, String relativeRecordSetName, RecordType recordType);
+
+ /**
+ * Deletes a record set from a DNS zone. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are
+ * deleted when the DNS zone is deleted).
+ * @param ifMatch The etag of the record set. Omit this value to always delete the current record set. Specify the
+ * last-seen etag value to prevent accidentally deleting any concurrent changes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ String ifMatch,
+ Context context);
+
+ /**
+ * Gets a record set.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a record set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecordSetInner get(String resourceGroupName, String zoneName, String relativeRecordSetName, RecordType recordType);
+
+ /**
+ * Gets a record set.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
+ * @param recordType The type of DNS record in this record set.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a record set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String zoneName,
+ String relativeRecordSetName,
+ RecordType recordType,
+ Context context);
+
+ /**
+ * Lists the record sets of a specified type in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param recordType The type of record sets to enumerate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByType(String resourceGroupName, String zoneName, RecordType recordType);
+
+ /**
+ * Lists the record sets of a specified type in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param recordType The type of record sets to enumerate.
+ * @param top The maximum number of record sets to return. If not specified, returns up to 100 record sets.
+ * @param recordsetnamesuffix The suffix label of the record set name that has to be used to filter the record set
+ * enumerations. If this parameter is specified, Enumeration will return only records that end with
+ * .<recordSetNameSuffix>.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByType(
+ String resourceGroupName,
+ String zoneName,
+ RecordType recordType,
+ Integer top,
+ String recordsetnamesuffix,
+ Context context);
+
+ /**
+ * Lists all record sets in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDnsZone(String resourceGroupName, String zoneName);
+
+ /**
+ * Lists all record sets in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param top The maximum number of record sets to return. If not specified, returns up to 100 record sets.
+ * @param recordsetnamesuffix The suffix label of the record set name that has to be used to filter the record set
+ * enumerations. If this parameter is specified, Enumeration will return only records that end with
+ * .<recordSetNameSuffix>.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDnsZone(
+ String resourceGroupName, String zoneName, Integer top, String recordsetnamesuffix, Context context);
+
+ /**
+ * Lists all record sets in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAllByDnsZone(String resourceGroupName, String zoneName);
+
+ /**
+ * Lists all record sets in a DNS zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param top The maximum number of record sets to return. If not specified, returns up to 100 record sets.
+ * @param recordSetNameSuffix The suffix label of the record set name that has to be used to filter the record set
+ * enumerations. If this parameter is specified, Enumeration will return only records that end with
+ * .<recordSetNameSuffix>.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a record set List operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAllByDnsZone(
+ String resourceGroupName, String zoneName, Integer top, String recordSetNameSuffix, Context context);
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/ZonesClient.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/ZonesClient.java
new file mode 100644
index 0000000000000..d88a3b13eb595
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/ZonesClient.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.dns.generated.fluent.models.ZoneInner;
+import com.azure.resourcemanager.dns.generated.models.ZoneUpdate;
+
+/** An instance of this class provides access to all the operations defined in ZonesClient. */
+public interface ZonesClient {
+ /**
+ * Creates or updates a DNS zone. Does not modify DNS records within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZoneInner createOrUpdate(String resourceGroupName, String zoneName, ZoneInner parameters);
+
+ /**
+ * Creates or updates a DNS zone. Does not modify DNS records within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
+ * @param ifMatch The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the
+ * last-seen etag value to prevent accidentally overwriting any concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone.
+ * Other values will be ignored.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String zoneName,
+ ZoneInner parameters,
+ String ifMatch,
+ String ifNoneMatch,
+ Context context);
+
+ /**
+ * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param ifMatch The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen
+ * etag value to prevent accidentally deleting any concurrent changes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String zoneName, String ifMatch);
+
+ /**
+ * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param ifMatch The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen
+ * etag value to prevent accidentally deleting any concurrent changes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String zoneName, String ifMatch, Context context);
+
+ /**
+ * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param ifMatch The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen
+ * etag value to prevent accidentally deleting any concurrent changes.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String zoneName, String ifMatch);
+
+ /**
+ * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String zoneName);
+
+ /**
+ * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param ifMatch The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen
+ * etag value to prevent accidentally deleting any concurrent changes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String zoneName, String ifMatch, Context context);
+
+ /**
+ * Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZoneInner getByResourceGroup(String resourceGroupName, String zoneName);
+
+ /**
+ * Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String zoneName, Context context);
+
+ /**
+ * Updates a DNS zone. Does not modify DNS records within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param parameters Parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZoneInner update(String resourceGroupName, String zoneName, ZoneUpdate parameters);
+
+ /**
+ * Updates a DNS zone. Does not modify DNS records within the zone.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param zoneName The name of the DNS zone (without a terminating dot).
+ * @param parameters Parameters supplied to the Update operation.
+ * @param ifMatch The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the
+ * last-seen etag value to prevent accidentally overwriting any concurrent changes.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a DNS zone.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String zoneName, ZoneUpdate parameters, String ifMatch, Context context);
+
+ /**
+ * Lists the DNS zones within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a Zone List or ListAll operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists the DNS zones within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param top The maximum number of record sets to return. If not specified, returns up to 100 record sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a Zone List or ListAll operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
+
+ /**
+ * Lists the DNS zones in all resource groups in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a Zone List or ListAll operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the DNS zones in all resource groups in a subscription.
+ *
+ * @param top The maximum number of DNS zones to return. If not specified, returns up to 100 zones.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a Zone List or ListAll operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, Context context);
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceRequestProperties.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceRequestProperties.java
new file mode 100644
index 0000000000000..1f8e063914511
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceRequestProperties.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents the properties of the Dns Resource Reference Request. */
+@Fluent
+public final class DnsResourceReferenceRequestProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DnsResourceReferenceRequestProperties.class);
+
+ /*
+ * A list of references to azure resources for which referencing dns
+ * records need to be queried.
+ */
+ @JsonProperty(value = "targetResources")
+ private List targetResources;
+
+ /**
+ * Get the targetResources property: A list of references to azure resources for which referencing dns records need
+ * to be queried.
+ *
+ * @return the targetResources value.
+ */
+ public List targetResources() {
+ return this.targetResources;
+ }
+
+ /**
+ * Set the targetResources property: A list of references to azure resources for which referencing dns records need
+ * to be queried.
+ *
+ * @param targetResources the targetResources value to set.
+ * @return the DnsResourceReferenceRequestProperties object itself.
+ */
+ public DnsResourceReferenceRequestProperties withTargetResources(List targetResources) {
+ this.targetResources = targetResources;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultInner.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultInner.java
new file mode 100644
index 0000000000000..62c7dc6d6fa56
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultInner.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.DnsResourceReference;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents the properties of the Dns Resource Reference Result. */
+@Fluent
+public final class DnsResourceReferenceResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DnsResourceReferenceResultInner.class);
+
+ /*
+ * The result of dns resource reference request. Returns a list of dns
+ * resource references for each of the azure resource in the request.
+ */
+ @JsonProperty(value = "properties")
+ private DnsResourceReferenceResultProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: The result of dns resource reference request. Returns a list of dns resource
+ * references for each of the azure resource in the request.
+ *
+ * @return the innerProperties value.
+ */
+ private DnsResourceReferenceResultProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the dnsResourceReferences property: The result of dns resource reference request. A list of dns resource
+ * references for each of the azure resource in the request.
+ *
+ * @return the dnsResourceReferences value.
+ */
+ public List dnsResourceReferences() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsResourceReferences();
+ }
+
+ /**
+ * Set the dnsResourceReferences property: The result of dns resource reference request. A list of dns resource
+ * references for each of the azure resource in the request.
+ *
+ * @param dnsResourceReferences the dnsResourceReferences value to set.
+ * @return the DnsResourceReferenceResultInner object itself.
+ */
+ public DnsResourceReferenceResultInner withDnsResourceReferences(List dnsResourceReferences) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DnsResourceReferenceResultProperties();
+ }
+ this.innerProperties().withDnsResourceReferences(dnsResourceReferences);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultProperties.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultProperties.java
new file mode 100644
index 0000000000000..ee39a2420cd1b
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/DnsResourceReferenceResultProperties.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.DnsResourceReference;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * The result of dns resource reference request. Returns a list of dns resource references for each of the azure
+ * resource in the request.
+ */
+@Fluent
+public final class DnsResourceReferenceResultProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DnsResourceReferenceResultProperties.class);
+
+ /*
+ * The result of dns resource reference request. A list of dns resource
+ * references for each of the azure resource in the request
+ */
+ @JsonProperty(value = "dnsResourceReferences")
+ private List dnsResourceReferences;
+
+ /**
+ * Get the dnsResourceReferences property: The result of dns resource reference request. A list of dns resource
+ * references for each of the azure resource in the request.
+ *
+ * @return the dnsResourceReferences value.
+ */
+ public List dnsResourceReferences() {
+ return this.dnsResourceReferences;
+ }
+
+ /**
+ * Set the dnsResourceReferences property: The result of dns resource reference request. A list of dns resource
+ * references for each of the azure resource in the request.
+ *
+ * @param dnsResourceReferences the dnsResourceReferences value to set.
+ * @return the DnsResourceReferenceResultProperties object itself.
+ */
+ public DnsResourceReferenceResultProperties withDnsResourceReferences(
+ List dnsResourceReferences) {
+ this.dnsResourceReferences = dnsResourceReferences;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dnsResourceReferences() != null) {
+ dnsResourceReferences().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetInner.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetInner.java
new file mode 100644
index 0000000000000..a502c0c57b664
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetInner.java
@@ -0,0 +1,399 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.ARecord;
+import com.azure.resourcemanager.dns.generated.models.AaaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CnameRecord;
+import com.azure.resourcemanager.dns.generated.models.MxRecord;
+import com.azure.resourcemanager.dns.generated.models.NsRecord;
+import com.azure.resourcemanager.dns.generated.models.PtrRecord;
+import com.azure.resourcemanager.dns.generated.models.SoaRecord;
+import com.azure.resourcemanager.dns.generated.models.SrvRecord;
+import com.azure.resourcemanager.dns.generated.models.TxtRecord;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Describes a DNS record set (a collection of DNS records with the same name and type). */
+@Fluent
+public final class RecordSetInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RecordSetInner.class);
+
+ /*
+ * The etag of the record set.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /*
+ * The properties of the record set.
+ */
+ @JsonProperty(value = "properties")
+ private RecordSetProperties innerProperties;
+
+ /**
+ * Get the etag property: The etag of the record set.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The etag of the record set.
+ *
+ * @param etag the etag value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the record set.
+ *
+ * @return the innerProperties value.
+ */
+ private RecordSetProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the metadata property: The metadata attached to the record set.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: The metadata attached to the record set.
+ *
+ * @param metadata the metadata value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withMetadata(Map metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the ttl property: The TTL (time-to-live) of the records in the record set.
+ *
+ * @return the ttl value.
+ */
+ public Long ttl() {
+ return this.innerProperties() == null ? null : this.innerProperties().ttl();
+ }
+
+ /**
+ * Set the ttl property: The TTL (time-to-live) of the records in the record set.
+ *
+ * @param ttl the ttl value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withTtl(Long ttl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withTtl(ttl);
+ return this;
+ }
+
+ /**
+ * Get the fqdn property: Fully qualified domain name of the record set.
+ *
+ * @return the fqdn value.
+ */
+ public String fqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().fqdn();
+ }
+
+ /**
+ * Get the provisioningState property: provisioning State of the record set.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.
+ *
+ * @return the targetResource value.
+ */
+ public SubResource targetResource() {
+ return this.innerProperties() == null ? null : this.innerProperties().targetResource();
+ }
+
+ /**
+ * Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.
+ *
+ * @param targetResource the targetResource value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withTargetResource(SubResource targetResource) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withTargetResource(targetResource);
+ return this;
+ }
+
+ /**
+ * Get the aRecords property: The list of A records in the record set.
+ *
+ * @return the aRecords value.
+ */
+ public List aRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().aRecords();
+ }
+
+ /**
+ * Set the aRecords property: The list of A records in the record set.
+ *
+ * @param aRecords the aRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withARecords(List aRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withARecords(aRecords);
+ return this;
+ }
+
+ /**
+ * Get the aaaaRecords property: The list of AAAA records in the record set.
+ *
+ * @return the aaaaRecords value.
+ */
+ public List aaaaRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().aaaaRecords();
+ }
+
+ /**
+ * Set the aaaaRecords property: The list of AAAA records in the record set.
+ *
+ * @param aaaaRecords the aaaaRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withAaaaRecords(List aaaaRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withAaaaRecords(aaaaRecords);
+ return this;
+ }
+
+ /**
+ * Get the mxRecords property: The list of MX records in the record set.
+ *
+ * @return the mxRecords value.
+ */
+ public List mxRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().mxRecords();
+ }
+
+ /**
+ * Set the mxRecords property: The list of MX records in the record set.
+ *
+ * @param mxRecords the mxRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withMxRecords(List mxRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withMxRecords(mxRecords);
+ return this;
+ }
+
+ /**
+ * Get the nsRecords property: The list of NS records in the record set.
+ *
+ * @return the nsRecords value.
+ */
+ public List nsRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().nsRecords();
+ }
+
+ /**
+ * Set the nsRecords property: The list of NS records in the record set.
+ *
+ * @param nsRecords the nsRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withNsRecords(List nsRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withNsRecords(nsRecords);
+ return this;
+ }
+
+ /**
+ * Get the ptrRecords property: The list of PTR records in the record set.
+ *
+ * @return the ptrRecords value.
+ */
+ public List ptrRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().ptrRecords();
+ }
+
+ /**
+ * Set the ptrRecords property: The list of PTR records in the record set.
+ *
+ * @param ptrRecords the ptrRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withPtrRecords(List ptrRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withPtrRecords(ptrRecords);
+ return this;
+ }
+
+ /**
+ * Get the srvRecords property: The list of SRV records in the record set.
+ *
+ * @return the srvRecords value.
+ */
+ public List srvRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().srvRecords();
+ }
+
+ /**
+ * Set the srvRecords property: The list of SRV records in the record set.
+ *
+ * @param srvRecords the srvRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withSrvRecords(List srvRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withSrvRecords(srvRecords);
+ return this;
+ }
+
+ /**
+ * Get the txtRecords property: The list of TXT records in the record set.
+ *
+ * @return the txtRecords value.
+ */
+ public List txtRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().txtRecords();
+ }
+
+ /**
+ * Set the txtRecords property: The list of TXT records in the record set.
+ *
+ * @param txtRecords the txtRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withTxtRecords(List txtRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withTxtRecords(txtRecords);
+ return this;
+ }
+
+ /**
+ * Get the cnameRecord property: The CNAME record in the record set.
+ *
+ * @return the cnameRecord value.
+ */
+ public CnameRecord cnameRecord() {
+ return this.innerProperties() == null ? null : this.innerProperties().cnameRecord();
+ }
+
+ /**
+ * Set the cnameRecord property: The CNAME record in the record set.
+ *
+ * @param cnameRecord the cnameRecord value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withCnameRecord(CnameRecord cnameRecord) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withCnameRecord(cnameRecord);
+ return this;
+ }
+
+ /**
+ * Get the soaRecord property: The SOA record in the record set.
+ *
+ * @return the soaRecord value.
+ */
+ public SoaRecord soaRecord() {
+ return this.innerProperties() == null ? null : this.innerProperties().soaRecord();
+ }
+
+ /**
+ * Set the soaRecord property: The SOA record in the record set.
+ *
+ * @param soaRecord the soaRecord value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withSoaRecord(SoaRecord soaRecord) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withSoaRecord(soaRecord);
+ return this;
+ }
+
+ /**
+ * Get the caaRecords property: The list of CAA records in the record set.
+ *
+ * @return the caaRecords value.
+ */
+ public List caaRecords() {
+ return this.innerProperties() == null ? null : this.innerProperties().caaRecords();
+ }
+
+ /**
+ * Set the caaRecords property: The list of CAA records in the record set.
+ *
+ * @param caaRecords the caaRecords value to set.
+ * @return the RecordSetInner object itself.
+ */
+ public RecordSetInner withCaaRecords(List caaRecords) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecordSetProperties();
+ }
+ this.innerProperties().withCaaRecords(caaRecords);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetProperties.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetProperties.java
new file mode 100644
index 0000000000000..9ceeab0ba91df
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/RecordSetProperties.java
@@ -0,0 +1,438 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.ARecord;
+import com.azure.resourcemanager.dns.generated.models.AaaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CaaRecord;
+import com.azure.resourcemanager.dns.generated.models.CnameRecord;
+import com.azure.resourcemanager.dns.generated.models.MxRecord;
+import com.azure.resourcemanager.dns.generated.models.NsRecord;
+import com.azure.resourcemanager.dns.generated.models.PtrRecord;
+import com.azure.resourcemanager.dns.generated.models.SoaRecord;
+import com.azure.resourcemanager.dns.generated.models.SrvRecord;
+import com.azure.resourcemanager.dns.generated.models.TxtRecord;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Represents the properties of the records in the record set. */
+@Fluent
+public final class RecordSetProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RecordSetProperties.class);
+
+ /*
+ * The metadata attached to the record set.
+ */
+ @JsonProperty(value = "metadata")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map metadata;
+
+ /*
+ * The TTL (time-to-live) of the records in the record set.
+ */
+ @JsonProperty(value = "TTL")
+ private Long ttl;
+
+ /*
+ * Fully qualified domain name of the record set.
+ */
+ @JsonProperty(value = "fqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String fqdn;
+
+ /*
+ * provisioning State of the record set.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * A reference to an azure resource from where the dns resource value is
+ * taken.
+ */
+ @JsonProperty(value = "targetResource")
+ private SubResource targetResource;
+
+ /*
+ * The list of A records in the record set.
+ */
+ @JsonProperty(value = "ARecords")
+ private List aRecords;
+
+ /*
+ * The list of AAAA records in the record set.
+ */
+ @JsonProperty(value = "AAAARecords")
+ private List aaaaRecords;
+
+ /*
+ * The list of MX records in the record set.
+ */
+ @JsonProperty(value = "MXRecords")
+ private List mxRecords;
+
+ /*
+ * The list of NS records in the record set.
+ */
+ @JsonProperty(value = "NSRecords")
+ private List nsRecords;
+
+ /*
+ * The list of PTR records in the record set.
+ */
+ @JsonProperty(value = "PTRRecords")
+ private List ptrRecords;
+
+ /*
+ * The list of SRV records in the record set.
+ */
+ @JsonProperty(value = "SRVRecords")
+ private List srvRecords;
+
+ /*
+ * The list of TXT records in the record set.
+ */
+ @JsonProperty(value = "TXTRecords")
+ private List txtRecords;
+
+ /*
+ * The CNAME record in the record set.
+ */
+ @JsonProperty(value = "CNAMERecord")
+ private CnameRecord cnameRecord;
+
+ /*
+ * The SOA record in the record set.
+ */
+ @JsonProperty(value = "SOARecord")
+ private SoaRecord soaRecord;
+
+ /*
+ * The list of CAA records in the record set.
+ */
+ @JsonProperty(value = "caaRecords")
+ private List caaRecords;
+
+ /**
+ * Get the metadata property: The metadata attached to the record set.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: The metadata attached to the record set.
+ *
+ * @param metadata the metadata value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withMetadata(Map metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the ttl property: The TTL (time-to-live) of the records in the record set.
+ *
+ * @return the ttl value.
+ */
+ public Long ttl() {
+ return this.ttl;
+ }
+
+ /**
+ * Set the ttl property: The TTL (time-to-live) of the records in the record set.
+ *
+ * @param ttl the ttl value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withTtl(Long ttl) {
+ this.ttl = ttl;
+ return this;
+ }
+
+ /**
+ * Get the fqdn property: Fully qualified domain name of the record set.
+ *
+ * @return the fqdn value.
+ */
+ public String fqdn() {
+ return this.fqdn;
+ }
+
+ /**
+ * Get the provisioningState property: provisioning State of the record set.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.
+ *
+ * @return the targetResource value.
+ */
+ public SubResource targetResource() {
+ return this.targetResource;
+ }
+
+ /**
+ * Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.
+ *
+ * @param targetResource the targetResource value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withTargetResource(SubResource targetResource) {
+ this.targetResource = targetResource;
+ return this;
+ }
+
+ /**
+ * Get the aRecords property: The list of A records in the record set.
+ *
+ * @return the aRecords value.
+ */
+ public List aRecords() {
+ return this.aRecords;
+ }
+
+ /**
+ * Set the aRecords property: The list of A records in the record set.
+ *
+ * @param aRecords the aRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withARecords(List aRecords) {
+ this.aRecords = aRecords;
+ return this;
+ }
+
+ /**
+ * Get the aaaaRecords property: The list of AAAA records in the record set.
+ *
+ * @return the aaaaRecords value.
+ */
+ public List aaaaRecords() {
+ return this.aaaaRecords;
+ }
+
+ /**
+ * Set the aaaaRecords property: The list of AAAA records in the record set.
+ *
+ * @param aaaaRecords the aaaaRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withAaaaRecords(List aaaaRecords) {
+ this.aaaaRecords = aaaaRecords;
+ return this;
+ }
+
+ /**
+ * Get the mxRecords property: The list of MX records in the record set.
+ *
+ * @return the mxRecords value.
+ */
+ public List mxRecords() {
+ return this.mxRecords;
+ }
+
+ /**
+ * Set the mxRecords property: The list of MX records in the record set.
+ *
+ * @param mxRecords the mxRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withMxRecords(List mxRecords) {
+ this.mxRecords = mxRecords;
+ return this;
+ }
+
+ /**
+ * Get the nsRecords property: The list of NS records in the record set.
+ *
+ * @return the nsRecords value.
+ */
+ public List nsRecords() {
+ return this.nsRecords;
+ }
+
+ /**
+ * Set the nsRecords property: The list of NS records in the record set.
+ *
+ * @param nsRecords the nsRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withNsRecords(List nsRecords) {
+ this.nsRecords = nsRecords;
+ return this;
+ }
+
+ /**
+ * Get the ptrRecords property: The list of PTR records in the record set.
+ *
+ * @return the ptrRecords value.
+ */
+ public List ptrRecords() {
+ return this.ptrRecords;
+ }
+
+ /**
+ * Set the ptrRecords property: The list of PTR records in the record set.
+ *
+ * @param ptrRecords the ptrRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withPtrRecords(List ptrRecords) {
+ this.ptrRecords = ptrRecords;
+ return this;
+ }
+
+ /**
+ * Get the srvRecords property: The list of SRV records in the record set.
+ *
+ * @return the srvRecords value.
+ */
+ public List srvRecords() {
+ return this.srvRecords;
+ }
+
+ /**
+ * Set the srvRecords property: The list of SRV records in the record set.
+ *
+ * @param srvRecords the srvRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withSrvRecords(List srvRecords) {
+ this.srvRecords = srvRecords;
+ return this;
+ }
+
+ /**
+ * Get the txtRecords property: The list of TXT records in the record set.
+ *
+ * @return the txtRecords value.
+ */
+ public List txtRecords() {
+ return this.txtRecords;
+ }
+
+ /**
+ * Set the txtRecords property: The list of TXT records in the record set.
+ *
+ * @param txtRecords the txtRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withTxtRecords(List txtRecords) {
+ this.txtRecords = txtRecords;
+ return this;
+ }
+
+ /**
+ * Get the cnameRecord property: The CNAME record in the record set.
+ *
+ * @return the cnameRecord value.
+ */
+ public CnameRecord cnameRecord() {
+ return this.cnameRecord;
+ }
+
+ /**
+ * Set the cnameRecord property: The CNAME record in the record set.
+ *
+ * @param cnameRecord the cnameRecord value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withCnameRecord(CnameRecord cnameRecord) {
+ this.cnameRecord = cnameRecord;
+ return this;
+ }
+
+ /**
+ * Get the soaRecord property: The SOA record in the record set.
+ *
+ * @return the soaRecord value.
+ */
+ public SoaRecord soaRecord() {
+ return this.soaRecord;
+ }
+
+ /**
+ * Set the soaRecord property: The SOA record in the record set.
+ *
+ * @param soaRecord the soaRecord value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withSoaRecord(SoaRecord soaRecord) {
+ this.soaRecord = soaRecord;
+ return this;
+ }
+
+ /**
+ * Get the caaRecords property: The list of CAA records in the record set.
+ *
+ * @return the caaRecords value.
+ */
+ public List caaRecords() {
+ return this.caaRecords;
+ }
+
+ /**
+ * Set the caaRecords property: The list of CAA records in the record set.
+ *
+ * @param caaRecords the caaRecords value to set.
+ * @return the RecordSetProperties object itself.
+ */
+ public RecordSetProperties withCaaRecords(List caaRecords) {
+ this.caaRecords = caaRecords;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (aRecords() != null) {
+ aRecords().forEach(e -> e.validate());
+ }
+ if (aaaaRecords() != null) {
+ aaaaRecords().forEach(e -> e.validate());
+ }
+ if (mxRecords() != null) {
+ mxRecords().forEach(e -> e.validate());
+ }
+ if (nsRecords() != null) {
+ nsRecords().forEach(e -> e.validate());
+ }
+ if (ptrRecords() != null) {
+ ptrRecords().forEach(e -> e.validate());
+ }
+ if (srvRecords() != null) {
+ srvRecords().forEach(e -> e.validate());
+ }
+ if (txtRecords() != null) {
+ txtRecords().forEach(e -> e.validate());
+ }
+ if (cnameRecord() != null) {
+ cnameRecord().validate();
+ }
+ if (soaRecord() != null) {
+ soaRecord().validate();
+ }
+ if (caaRecords() != null) {
+ caaRecords().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneInner.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneInner.java
new file mode 100644
index 0000000000000..67908e03403b5
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneInner.java
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.ZoneType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Describes a DNS zone. */
+@Fluent
+public final class ZoneInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ZoneInner.class);
+
+ /*
+ * The etag of the zone.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /*
+ * The properties of the zone.
+ */
+ @JsonProperty(value = "properties")
+ private ZoneProperties innerProperties;
+
+ /**
+ * Get the etag property: The etag of the zone.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: The etag of the zone.
+ *
+ * @param etag the etag value to set.
+ * @return the ZoneInner object itself.
+ */
+ public ZoneInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the zone.
+ *
+ * @return the innerProperties value.
+ */
+ private ZoneProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ZoneInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ZoneInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone.
+ * This is a read-only property and any attempt to set this value will be ignored.
+ *
+ * @return the maxNumberOfRecordSets value.
+ */
+ public Long maxNumberOfRecordSets() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxNumberOfRecordSets();
+ }
+
+ /**
+ * Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created
+ * in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
+ *
+ * @return the maxNumberOfRecordsPerRecordSet value.
+ */
+ public Long maxNumberOfRecordsPerRecordSet() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxNumberOfRecordsPerRecordSet();
+ }
+
+ /**
+ * Get the numberOfRecordSets property: The current number of record sets in this DNS zone. This is a read-only
+ * property and any attempt to set this value will be ignored.
+ *
+ * @return the numberOfRecordSets value.
+ */
+ public Long numberOfRecordSets() {
+ return this.innerProperties() == null ? null : this.innerProperties().numberOfRecordSets();
+ }
+
+ /**
+ * Get the nameServers property: The name servers for this DNS zone. This is a read-only property and any attempt to
+ * set this value will be ignored.
+ *
+ * @return the nameServers value.
+ */
+ public List nameServers() {
+ return this.innerProperties() == null ? null : this.innerProperties().nameServers();
+ }
+
+ /**
+ * Get the zoneType property: The type of this DNS zone (Public or Private).
+ *
+ * @return the zoneType value.
+ */
+ public ZoneType zoneType() {
+ return this.innerProperties() == null ? null : this.innerProperties().zoneType();
+ }
+
+ /**
+ * Set the zoneType property: The type of this DNS zone (Public or Private).
+ *
+ * @param zoneType the zoneType value to set.
+ * @return the ZoneInner object itself.
+ */
+ public ZoneInner withZoneType(ZoneType zoneType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ZoneProperties();
+ }
+ this.innerProperties().withZoneType(zoneType);
+ return this;
+ }
+
+ /**
+ * Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in
+ * this DNS zone. This is a only when ZoneType is Private.
+ *
+ * @return the registrationVirtualNetworks value.
+ */
+ public List registrationVirtualNetworks() {
+ return this.innerProperties() == null ? null : this.innerProperties().registrationVirtualNetworks();
+ }
+
+ /**
+ * Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in
+ * this DNS zone. This is a only when ZoneType is Private.
+ *
+ * @param registrationVirtualNetworks the registrationVirtualNetworks value to set.
+ * @return the ZoneInner object itself.
+ */
+ public ZoneInner withRegistrationVirtualNetworks(List registrationVirtualNetworks) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ZoneProperties();
+ }
+ this.innerProperties().withRegistrationVirtualNetworks(registrationVirtualNetworks);
+ return this;
+ }
+
+ /**
+ * Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this
+ * DNS zone. This is a only when ZoneType is Private.
+ *
+ * @return the resolutionVirtualNetworks value.
+ */
+ public List resolutionVirtualNetworks() {
+ return this.innerProperties() == null ? null : this.innerProperties().resolutionVirtualNetworks();
+ }
+
+ /**
+ * Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this
+ * DNS zone. This is a only when ZoneType is Private.
+ *
+ * @param resolutionVirtualNetworks the resolutionVirtualNetworks value to set.
+ * @return the ZoneInner object itself.
+ */
+ public ZoneInner withResolutionVirtualNetworks(List resolutionVirtualNetworks) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ZoneProperties();
+ }
+ this.innerProperties().withResolutionVirtualNetworks(resolutionVirtualNetworks);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneProperties.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneProperties.java
new file mode 100644
index 0000000000000..c8ea776c7756d
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/ZoneProperties.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dns.generated.models.ZoneType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents the properties of the zone. */
+@Fluent
+public final class ZoneProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ZoneProperties.class);
+
+ /*
+ * The maximum number of record sets that can be created in this DNS zone.
+ * This is a read-only property and any attempt to set this value will be
+ * ignored.
+ */
+ @JsonProperty(value = "maxNumberOfRecordSets", access = JsonProperty.Access.WRITE_ONLY)
+ private Long maxNumberOfRecordSets;
+
+ /*
+ * The maximum number of records per record set that can be created in this
+ * DNS zone. This is a read-only property and any attempt to set this
+ * value will be ignored.
+ */
+ @JsonProperty(value = "maxNumberOfRecordsPerRecordSet", access = JsonProperty.Access.WRITE_ONLY)
+ private Long maxNumberOfRecordsPerRecordSet;
+
+ /*
+ * The current number of record sets in this DNS zone. This is a read-only
+ * property and any attempt to set this value will be ignored.
+ */
+ @JsonProperty(value = "numberOfRecordSets", access = JsonProperty.Access.WRITE_ONLY)
+ private Long numberOfRecordSets;
+
+ /*
+ * The name servers for this DNS zone. This is a read-only property and any
+ * attempt to set this value will be ignored.
+ */
+ @JsonProperty(value = "nameServers", access = JsonProperty.Access.WRITE_ONLY)
+ private List nameServers;
+
+ /*
+ * The type of this DNS zone (Public or Private).
+ */
+ @JsonProperty(value = "zoneType")
+ private ZoneType zoneType;
+
+ /*
+ * A list of references to virtual networks that register hostnames in this
+ * DNS zone. This is a only when ZoneType is Private.
+ */
+ @JsonProperty(value = "registrationVirtualNetworks")
+ private List registrationVirtualNetworks;
+
+ /*
+ * A list of references to virtual networks that resolve records in this
+ * DNS zone. This is a only when ZoneType is Private.
+ */
+ @JsonProperty(value = "resolutionVirtualNetworks")
+ private List resolutionVirtualNetworks;
+
+ /**
+ * Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone.
+ * This is a read-only property and any attempt to set this value will be ignored.
+ *
+ * @return the maxNumberOfRecordSets value.
+ */
+ public Long maxNumberOfRecordSets() {
+ return this.maxNumberOfRecordSets;
+ }
+
+ /**
+ * Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created
+ * in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
+ *
+ * @return the maxNumberOfRecordsPerRecordSet value.
+ */
+ public Long maxNumberOfRecordsPerRecordSet() {
+ return this.maxNumberOfRecordsPerRecordSet;
+ }
+
+ /**
+ * Get the numberOfRecordSets property: The current number of record sets in this DNS zone. This is a read-only
+ * property and any attempt to set this value will be ignored.
+ *
+ * @return the numberOfRecordSets value.
+ */
+ public Long numberOfRecordSets() {
+ return this.numberOfRecordSets;
+ }
+
+ /**
+ * Get the nameServers property: The name servers for this DNS zone. This is a read-only property and any attempt to
+ * set this value will be ignored.
+ *
+ * @return the nameServers value.
+ */
+ public List nameServers() {
+ return this.nameServers;
+ }
+
+ /**
+ * Get the zoneType property: The type of this DNS zone (Public or Private).
+ *
+ * @return the zoneType value.
+ */
+ public ZoneType zoneType() {
+ return this.zoneType;
+ }
+
+ /**
+ * Set the zoneType property: The type of this DNS zone (Public or Private).
+ *
+ * @param zoneType the zoneType value to set.
+ * @return the ZoneProperties object itself.
+ */
+ public ZoneProperties withZoneType(ZoneType zoneType) {
+ this.zoneType = zoneType;
+ return this;
+ }
+
+ /**
+ * Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in
+ * this DNS zone. This is a only when ZoneType is Private.
+ *
+ * @return the registrationVirtualNetworks value.
+ */
+ public List registrationVirtualNetworks() {
+ return this.registrationVirtualNetworks;
+ }
+
+ /**
+ * Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in
+ * this DNS zone. This is a only when ZoneType is Private.
+ *
+ * @param registrationVirtualNetworks the registrationVirtualNetworks value to set.
+ * @return the ZoneProperties object itself.
+ */
+ public ZoneProperties withRegistrationVirtualNetworks(List registrationVirtualNetworks) {
+ this.registrationVirtualNetworks = registrationVirtualNetworks;
+ return this;
+ }
+
+ /**
+ * Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this
+ * DNS zone. This is a only when ZoneType is Private.
+ *
+ * @return the resolutionVirtualNetworks value.
+ */
+ public List resolutionVirtualNetworks() {
+ return this.resolutionVirtualNetworks;
+ }
+
+ /**
+ * Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this
+ * DNS zone. This is a only when ZoneType is Private.
+ *
+ * @param resolutionVirtualNetworks the resolutionVirtualNetworks value to set.
+ * @return the ZoneProperties object itself.
+ */
+ public ZoneProperties withResolutionVirtualNetworks(List resolutionVirtualNetworks) {
+ this.resolutionVirtualNetworks = resolutionVirtualNetworks;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/package-info.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/package-info.java
new file mode 100644
index 0000000000000..7722f32ccf3d2
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for DnsManagementClient. The DNS Management Client. */
+package com.azure.resourcemanager.dns.generated.fluent.models;
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/package-info.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/package-info.java
new file mode 100644
index 0000000000000..739b1008181e7
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for DnsManagementClient. The DNS Management Client. */
+package com.azure.resourcemanager.dns.generated.fluent;
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientBuilder.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientBuilder.java
new file mode 100644
index 0000000000000..7a7074118326f
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientBuilder.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the DnsManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {DnsManagementClientImpl.class})
+public final class DnsManagementClientBuilder {
+ /*
+ * Specifies the Azure subscription ID, which uniquely identifies the
+ * Microsoft Azure subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the DnsManagementClientBuilder.
+ */
+ public DnsManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DnsManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of DnsManagementClientImpl.
+ */
+ public DnsManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ DnsManagementClientImpl client =
+ new DnsManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientImpl.java b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientImpl.java
new file mode 100644
index 0000000000000..d287d50e297d5
--- /dev/null
+++ b/sdk/dns/azure-resourcemanager-dns-generated/src/main/java/com/azure/resourcemanager/dns/generated/implementation/DnsManagementClientImpl.java
@@ -0,0 +1,322 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dns.generated.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.dns.generated.fluent.DnsManagementClient;
+import com.azure.resourcemanager.dns.generated.fluent.DnsResourceReferencesClient;
+import com.azure.resourcemanager.dns.generated.fluent.RecordSetsClient;
+import com.azure.resourcemanager.dns.generated.fluent.ZonesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the DnsManagementClientImpl type. */
+@ServiceClient(builder = DnsManagementClientBuilder.class)
+public final class DnsManagementClientImpl implements DnsManagementClient {
+ private final ClientLogger logger = new ClientLogger(DnsManagementClientImpl.class);
+
+ /** Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The RecordSetsClient object to access its operations. */
+ private final RecordSetsClient recordSets;
+
+ /**
+ * Gets the RecordSetsClient object to access its operations.
+ *
+ * @return the RecordSetsClient object.
+ */
+ public RecordSetsClient getRecordSets() {
+ return this.recordSets;
+ }
+
+ /** The ZonesClient object to access its operations. */
+ private final ZonesClient zones;
+
+ /**
+ * Gets the ZonesClient object to access its operations.
+ *
+ * @return the ZonesClient object.
+ */
+ public ZonesClient getZones() {
+ return this.zones;
+ }
+
+ /** The DnsResourceReferencesClient object to access its operations. */
+ private final DnsResourceReferencesClient dnsResourceReferences;
+
+ /**
+ * Gets the DnsResourceReferencesClient object to access its operations.
+ *
+ * @return the DnsResourceReferencesClient object.
+ */
+ public DnsResourceReferencesClient getDnsResourceReferences() {
+ return this.dnsResourceReferences;
+ }
+
+ /**
+ * Initializes an instance of DnsManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure
+ * subscription.
+ * @param endpoint server parameter.
+ */
+ DnsManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2018-05-01";
+ this.recordSets = new RecordSetsClientImpl(this);
+ this.zones = new ZonesClientImpl(this);
+ this.dnsResourceReferences = new DnsResourceReferencesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry