diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index f06868d8191e..9543e1bb2832 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -396,7 +396,7 @@ com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.2;1.0.0-be
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.2;1.0.0-beta.3
-com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.4;1.0.0-beta.5
+com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.4;1.0.0
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.3.0;1.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-azureadexternalidentities;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-dashboard;1.1.0;1.2.0-beta.1
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
index 63d4ae93787c..3356b099d604 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.5 (Unreleased)
+## 1.0.0 (2025-01-02)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- Azure Resource Manager DnsResolver client library for Java. This package contains Microsoft Azure SDK for DnsResolver Management SDK. DNS Resolver Client. Package tag package-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Other Changes
+- Release for Azure Resource Manager DnsResolver client library for Java.
+
## 1.0.0-beta.4 (2024-10-23)
- Azure Resource Manager DnsResolver client library for Java. This package contains Microsoft Azure SDK for DnsResolver Management SDK. DNS Resolver Client. Package tag package-preview-2023-07. 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/dnsresolver/azure-resourcemanager-dnsresolver/README.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
index a71194a74fa4..d04a7d469018 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager DnsResolver client library for Java.
-This package contains Microsoft Azure SDK for DnsResolver Management SDK. DNS Resolver Client. Package tag package-preview-2023-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for DnsResolver Management SDK. DNS Resolver Client. Package tag package-2022-07. 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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-dnsresolver
- 1.0.0-beta.4
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
index 9f8f569d51f8..df864d82c760 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
@@ -11,33 +11,6 @@
- [ListByVirtualNetwork](#dnsforwardingrulesets_listbyvirtualnetwork)
- [Update](#dnsforwardingrulesets_update)
-## DnsResolverDomainLists
-
-- [CreateOrUpdate](#dnsresolverdomainlists_createorupdate)
-- [Delete](#dnsresolverdomainlists_delete)
-- [GetByResourceGroup](#dnsresolverdomainlists_getbyresourcegroup)
-- [List](#dnsresolverdomainlists_list)
-- [ListByResourceGroup](#dnsresolverdomainlists_listbyresourcegroup)
-- [Update](#dnsresolverdomainlists_update)
-
-## DnsResolverPolicies
-
-- [CreateOrUpdate](#dnsresolverpolicies_createorupdate)
-- [Delete](#dnsresolverpolicies_delete)
-- [GetByResourceGroup](#dnsresolverpolicies_getbyresourcegroup)
-- [List](#dnsresolverpolicies_list)
-- [ListByResourceGroup](#dnsresolverpolicies_listbyresourcegroup)
-- [ListByVirtualNetwork](#dnsresolverpolicies_listbyvirtualnetwork)
-- [Update](#dnsresolverpolicies_update)
-
-## DnsResolverPolicyVirtualNetworkLinks
-
-- [CreateOrUpdate](#dnsresolverpolicyvirtualnetworklinks_createorupdate)
-- [Delete](#dnsresolverpolicyvirtualnetworklinks_delete)
-- [Get](#dnsresolverpolicyvirtualnetworklinks_get)
-- [List](#dnsresolverpolicyvirtualnetworklinks_list)
-- [Update](#dnsresolverpolicyvirtualnetworklinks_update)
-
## DnsResolvers
- [CreateOrUpdate](#dnsresolvers_createorupdate)
@@ -48,14 +21,6 @@
- [ListByVirtualNetwork](#dnsresolvers_listbyvirtualnetwork)
- [Update](#dnsresolvers_update)
-## DnsSecurityRules
-
-- [CreateOrUpdate](#dnssecurityrules_createorupdate)
-- [Delete](#dnssecurityrules_delete)
-- [Get](#dnssecurityrules_get)
-- [List](#dnssecurityrules_list)
-- [Update](#dnssecurityrules_update)
-
## ForwardingRules
- [CreateOrUpdate](#forwardingrules_createorupdate)
@@ -82,610 +47,44 @@
## VirtualNetworkLinks
-- [CreateOrUpdate](#virtualnetworklinks_createorupdate)
-- [Delete](#virtualnetworklinks_delete)
-- [Get](#virtualnetworklinks_get)
-- [List](#virtualnetworklinks_list)
-- [Update](#virtualnetworklinks_update)
-### DnsForwardingRulesets_CreateOrUpdate
-
-```java
-import com.azure.core.management.SubResource;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsForwardingRulesets CreateOrUpdate.
- */
-public final class DnsForwardingRulesetsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_Put.json
- */
- /**
- * Sample code: Upsert DNS forwarding ruleset.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void upsertDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .define("samplednsForwardingRuleset")
- .withRegion("westus2")
- .withExistingResourceGroup("sampleResourceGroup")
- .withDnsResolverOutboundEndpoints(Arrays.asList(new SubResource().withId(
- "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint0"),
- new SubResource().withId(
- "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint1")))
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .create();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsForwardingRulesets_Delete
-
-```java
-/**
- * Samples for DnsForwardingRulesets Delete.
- */
-public final class DnsForwardingRulesetsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_Delete.json
- */
- /**
- * Sample code: Delete DNS forwarding ruleset.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void deleteDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .delete("sampleResourceGroup", "samplednsForwardingRulesetName", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsForwardingRulesets_GetByResourceGroup
-
-```java
-/**
- * Samples for DnsForwardingRulesets GetByResourceGroup.
- */
-public final class DnsForwardingRulesetsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_Get.json
- */
- /**
- * Sample code: Retrieve DNS forwarding ruleset.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void retrieveDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsForwardingRulesets_List
-
-```java
-/**
- * Samples for DnsForwardingRulesets List.
- */
-public final class DnsForwardingRulesetsListSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_ListBySubscription.json
- */
- /**
- * Sample code: List DNS forwarding rulesets by subscription.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSForwardingRulesetsBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets().list(null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsForwardingRulesets_ListByResourceGroup
-
-```java
-/**
- * Samples for DnsForwardingRulesets ListByResourceGroup.
- */
-public final class DnsForwardingRulesetsListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_ListByResourceGroup.json
- */
- /**
- * Sample code: List DNS forwarding rulesets by resource group.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSForwardingRulesetsByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsForwardingRulesets_ListByVirtualNetwork
-
-```java
-/**
- * Samples for DnsForwardingRulesets ListByVirtualNetwork.
- */
-public final class DnsForwardingRulesetsListByVirtualNetworkSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_ListByVirtualNetwork.json
- */
- /**
- * Sample code: List DNS forwarding rulesets by virtual network.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSForwardingRulesetsByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsForwardingRulesets_Update
-
-```java
-import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRuleset;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsForwardingRulesets Update.
- */
-public final class DnsForwardingRulesetsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsForwardingRuleset_Patch.json
- */
- /**
- * Sample code: Update DNS forwarding ruleset.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void updateDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsForwardingRuleset resource = manager.dnsForwardingRulesets()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsResolverDomainLists_CreateOrUpdate
-
-```java
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsResolverDomainLists CreateOrUpdate.
- */
-public final class DnsResolverDomainListsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_Put.json
- */
- /**
- * Sample code: Upsert DNS resolver domain list.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void upsertDNSResolverDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .define("sampleDnsResolverDomainList")
- .withRegion("westus2")
- .withExistingResourceGroup("sampleResourceGroup")
- .withDomains(Arrays.asList("contoso.com"))
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .create();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsResolverDomainLists_Delete
-
-```java
-/**
- * Samples for DnsResolverDomainLists Delete.
- */
-public final class DnsResolverDomainListsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_Delete.json
- */
- /**
- * Sample code: Delete DNS resolver domain list.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void deleteDNSResolverDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .delete("sampleResourceGroup", "sampleDnsResolverDomainList", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverDomainLists_GetByResourceGroup
-
-```java
-/**
- * Samples for DnsResolverDomainLists GetByResourceGroup.
- */
-public final class DnsResolverDomainListsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_Get.json
- */
- /**
- * Sample code: Retrieve DNS resolver domain list.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void retrieveDNSResolverDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverDomainLists_List
-
-```java
-/**
- * Samples for DnsResolverDomainLists List.
- */
-public final class DnsResolverDomainListsListSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_ListBySubscription.json
- */
- /**
- * Sample code: List DNS resolver domain lists by subscription.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolverDomainListsBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists().list(null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverDomainLists_ListByResourceGroup
-
-```java
-/**
- * Samples for DnsResolverDomainLists ListByResourceGroup.
- */
-public final class DnsResolverDomainListsListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_ListByResourceGroup.json
- */
- /**
- * Sample code: List DNS resolver domain lists by resource group.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolverDomainListsByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverDomainLists_Update
-
-```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsResolverDomainLists Update.
- */
-public final class DnsResolverDomainListsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverDomainList_Patch.json
- */
- /**
- * Sample code: Update DNS resolver domain list.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void updateDNSResolverDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsResolverDomainList resource = manager.dnsResolverDomainLists()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDomains(Arrays.asList("contoso.com"))
- .apply();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsResolverPolicies_CreateOrUpdate
-
-```java
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsResolverPolicies CreateOrUpdate.
- */
-public final class DnsResolverPoliciesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_Put.json
- */
- /**
- * Sample code: Upsert DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void upsertDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .define("sampleDnsResolverPolicy")
- .withRegion("westus2")
- .withExistingResourceGroup("sampleResourceGroup")
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .create();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsResolverPolicies_Delete
-
-```java
-/**
- * Samples for DnsResolverPolicies Delete.
- */
-public final class DnsResolverPoliciesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_Delete.json
- */
- /**
- * Sample code: Delete DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void deleteDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .delete("sampleResourceGroup", "sampleDnsResolverPolicy", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverPolicies_GetByResourceGroup
-
-```java
-/**
- * Samples for DnsResolverPolicies GetByResourceGroup.
- */
-public final class DnsResolverPoliciesGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_Get.json
- */
- /**
- * Sample code: Retrieve DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void retrieveDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverPolicies_List
-
-```java
-/**
- * Samples for DnsResolverPolicies List.
- */
-public final class DnsResolverPoliciesListSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_ListBySubscription.json
- */
- /**
- * Sample code: List DNS resolver policies by subscription.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolverPoliciesBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies().list(null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverPolicies_ListByResourceGroup
-
-```java
-/**
- * Samples for DnsResolverPolicies ListByResourceGroup.
- */
-public final class DnsResolverPoliciesListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_ListByResourceGroup.json
- */
- /**
- * Sample code: List DNS resolver policies by resource group.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolverPoliciesByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverPolicies_ListByVirtualNetwork
-
-```java
-/**
- * Samples for DnsResolverPolicies ListByVirtualNetwork.
- */
-public final class DnsResolverPoliciesListByVirtualNetworkSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_ListByVirtualNetwork.json
- */
- /**
- * Sample code: List DNS resolver policies by virtual network.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolverPoliciesByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsResolverPolicies_Update
+- [CreateOrUpdate](#virtualnetworklinks_createorupdate)
+- [Delete](#virtualnetworklinks_delete)
+- [Get](#virtualnetworklinks_get)
+- [List](#virtualnetworklinks_list)
+- [Update](#virtualnetworklinks_update)
+### DnsForwardingRulesets_CreateOrUpdate
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicy;
+import com.azure.core.management.SubResource;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolverPolicies Update.
+ * Samples for DnsForwardingRulesets CreateOrUpdate.
*/
-public final class DnsResolverPoliciesUpdateSamples {
+public final class DnsForwardingRulesetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicy_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsForwardingRuleset_Put.
+ * json
*/
/**
- * Sample code: Update DNS resolver policy.
+ * Sample code: Upsert DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void updateDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsResolverPolicy resource = manager.dnsResolverPolicies()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
+ public static void upsertDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .define("samplednsForwardingRuleset")
+ .withRegion("westus2")
+ .withExistingResourceGroup("sampleResourceGroup")
+ .withDnsResolverOutboundEndpoints(Arrays.asList(new SubResource().withId(
+ "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint0"),
+ new SubResource().withId(
+ "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint1")))
+ .withTags(mapOf("key1", "fakeTokenPlaceholder"))
+ .create();
}
// Use "Map.of" if available
@@ -702,155 +101,149 @@ public final class DnsResolverPoliciesUpdateSamples {
}
```
-### DnsResolverPolicyVirtualNetworkLinks_CreateOrUpdate
+### DnsForwardingRulesets_Delete
```java
-import com.azure.core.management.SubResource;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks CreateOrUpdate.
+ * Samples for DnsForwardingRulesets Delete.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateSamples {
+public final class DnsForwardingRulesetsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicyVirtualNetworkLink_Put.json
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
+ * DnsForwardingRuleset_Delete.json
*/
/**
- * Sample code: Upsert DNS resolver policy virtual network link.
+ * Sample code: Delete DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- upsertDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicyVirtualNetworkLinks()
- .define("sampleVirtualNetworkLink")
- .withRegion("westus2")
- .withExistingDnsResolverPolicy("sampleResourceGroup", "sampleDnsResolverPolicy")
- .withVirtualNetwork(new SubResource().withId(
- "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .create();
+ public static void deleteDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .delete("sampleResourceGroup", "samplednsForwardingRulesetName", null, com.azure.core.util.Context.NONE);
}
+}
+```
- // Use "Map.of" if available
- @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;
+### DnsForwardingRulesets_GetByResourceGroup
+
+```java
+/**
+ * Samples for DnsForwardingRulesets GetByResourceGroup.
+ */
+public final class DnsForwardingRulesetsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsForwardingRuleset_Get.
+ * json
+ */
+ /**
+ * Sample code: Retrieve DNS forwarding ruleset.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void retrieveDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Delete
+### DnsForwardingRulesets_List
```java
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks Delete.
+ * Samples for DnsForwardingRulesets List.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksDeleteSamples {
+public final class DnsForwardingRulesetsListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicyVirtualNetworkLink_Delete.json
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
+ * DnsForwardingRuleset_ListBySubscription.json
*/
/**
- * Sample code: Delete DNS resolver policy virtual network link.
+ * Sample code: List DNS forwarding rulesets by subscription.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- deleteDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicyVirtualNetworkLinks()
- .delete("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink", null,
- com.azure.core.util.Context.NONE);
+ listDNSForwardingRulesetsBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Get
+### DnsForwardingRulesets_ListByResourceGroup
```java
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks Get.
+ * Samples for DnsForwardingRulesets ListByResourceGroup.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksGetSamples {
+public final class DnsForwardingRulesetsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicyVirtualNetworkLink_Get.json
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
+ * DnsForwardingRuleset_ListByResourceGroup.json
*/
/**
- * Sample code: Retrieve DNS resolver policy virtual network link.
+ * Sample code: List DNS forwarding rulesets by resource group.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- retrieveDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicyVirtualNetworkLinks()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink",
- com.azure.core.util.Context.NONE);
+ listDNSForwardingRulesetsByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_List
+### DnsForwardingRulesets_ListByVirtualNetwork
```java
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks List.
+ * Samples for DnsForwardingRulesets ListByVirtualNetwork.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksListSamples {
+public final class DnsForwardingRulesetsListByVirtualNetworkSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicyVirtualNetworkLink_List.json
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
+ * DnsForwardingRuleset_ListByVirtualNetwork.json
*/
/**
- * Sample code: List DNS resolver policy virtual network links by DNS resolver policy.
+ * Sample code: List DNS forwarding rulesets by virtual network.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void listDNSResolverPolicyVirtualNetworkLinksByDNSResolverPolicy(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicyVirtualNetworkLinks()
- .list("sampleResourceGroup", "sampleDnsResolverPolicy", null, com.azure.core.util.Context.NONE);
+ public static void
+ listDNSForwardingRulesetsByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Update
+### DnsForwardingRulesets_Update
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyVirtualNetworkLink;
+import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRuleset;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks Update.
+ * Samples for DnsForwardingRulesets Update.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksUpdateSamples {
+public final class DnsForwardingRulesetsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolverPolicyVirtualNetworkLink_Patch.json
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
+ * DnsForwardingRuleset_Patch.json
*/
/**
- * Sample code: Update DNS resolver policy virtual network link.
+ * Sample code: Update DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- updateDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsResolverPolicyVirtualNetworkLink resource = manager.dnsResolverPolicyVirtualNetworkLinks()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink",
+ public static void updateDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ DnsForwardingRuleset resource = manager.dnsForwardingRulesets()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
@@ -883,8 +276,7 @@ import java.util.Map;
public final class DnsResolversCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DnsResolver_Put.
- * json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsResolver_Put.json
*/
/**
* Sample code: Upsert DNS resolver.
@@ -925,8 +317,7 @@ public final class DnsResolversCreateOrUpdateSamples {
public final class DnsResolversDeleteSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolver_Delete.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsResolver_Delete.json
*/
/**
* Sample code: Delete DNS resolver.
@@ -949,8 +340,7 @@ public final class DnsResolversDeleteSamples {
public final class DnsResolversGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DnsResolver_Get.
- * json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsResolver_Get.json
*/
/**
* Sample code: Retrieve DNS resolver.
@@ -973,8 +363,7 @@ public final class DnsResolversGetByResourceGroupSamples {
*/
public final class DnsResolversListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
* DnsResolver_ListBySubscription.json
*/
/**
@@ -997,8 +386,7 @@ public final class DnsResolversListSamples {
*/
public final class DnsResolversListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
* DnsResolver_ListByResourceGroup.json
*/
/**
@@ -1021,8 +409,7 @@ public final class DnsResolversListByResourceGroupSamples {
*/
public final class DnsResolversListByVirtualNetworkSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
+ * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/
* DnsResolver_ListByVirtualNetwork.json
*/
/**
@@ -1052,8 +439,7 @@ import java.util.Map;
public final class DnsResolversUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsResolver_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DnsResolver_Patch.json
*/
/**
* Sample code: Update DNS resolver.
@@ -1082,186 +468,6 @@ public final class DnsResolversUpdateSamples {
}
```
-### DnsSecurityRules_CreateOrUpdate
-
-```java
-import com.azure.core.management.SubResource;
-import com.azure.resourcemanager.dnsresolver.models.ActionType;
-import com.azure.resourcemanager.dnsresolver.models.BlockResponseCode;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsSecurityRules CreateOrUpdate.
- */
-public final class DnsSecurityRulesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsSecurityRule_Put.json
- */
- /**
- * Sample code: Upsert DNS security rule.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void upsertDNSSecurityRule(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsSecurityRules()
- .define("sampleDnsSecurityRule")
- .withRegion("westus2")
- .withExistingDnsResolverPolicy("sampleResourceGroup", "sampleDnsResolverPolicy")
- .withPriority(100)
- .withAction(new DnsSecurityRuleAction().withActionType(ActionType.BLOCK)
- .withBlockResponseCode(BlockResponseCode.SERVFAIL))
- .withDnsResolverDomainLists(Arrays.asList(new SubResource().withId(
- "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolverDomainLists/sampleDnsResolverDomainList")))
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDnsSecurityRuleState(DnsSecurityRuleState.ENABLED)
- .create();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
-### DnsSecurityRules_Delete
-
-```java
-/**
- * Samples for DnsSecurityRules Delete.
- */
-public final class DnsSecurityRulesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsSecurityRule_Delete.json
- */
- /**
- * Sample code: Delete DNS security rule for DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- deleteDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsSecurityRules()
- .delete("sampleResourceGroup", "sampleDnsDnsResolverPolicy", "sampleDnsSecurityRule", null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsSecurityRules_Get
-
-```java
-/**
- * Samples for DnsSecurityRules Get.
- */
-public final class DnsSecurityRulesGetSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsSecurityRule_Get.json
- */
- /**
- * Sample code: Retrieve DNS security rule for DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- retrieveDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsSecurityRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleDnsSecurityRule",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsSecurityRules_List
-
-```java
-/**
- * Samples for DnsSecurityRules List.
- */
-public final class DnsSecurityRulesListSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsSecurityRule_List.json
- */
- /**
- * Sample code: List DNS security rules by DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSSecurityRulesByDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsSecurityRules()
- .list("sampleResourceGroup", "sampleDnsResolverPolicy", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DnsSecurityRules_Update
-
-```java
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRule;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsSecurityRules Update.
- */
-public final class DnsSecurityRulesUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * DnsSecurityRule_Patch.json
- */
- /**
- * Sample code: Update DNS security rule for DNS resolver policy.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- updateDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsSecurityRule resource = manager.dnsSecurityRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleDnsSecurityRule",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDnsSecurityRuleState(DnsSecurityRuleState.DISABLED)
- .apply();
- }
-
- // Use "Map.of" if available
- @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;
- }
-}
-```
-
### ForwardingRules_CreateOrUpdate
```java
@@ -1277,8 +483,7 @@ import java.util.Map;
public final class ForwardingRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * ForwardingRule_Put.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ForwardingRule_Put.json
*/
/**
* Sample code: Upsert forwarding rule in a DNS forwarding ruleset.
@@ -1321,8 +526,8 @@ public final class ForwardingRulesCreateOrUpdateSamples {
public final class ForwardingRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * ForwardingRule_Delete.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ForwardingRule_Delete.
+ * json
*/
/**
* Sample code: Delete forwarding rule in a DNS forwarding ruleset.
@@ -1347,8 +552,7 @@ public final class ForwardingRulesDeleteSamples {
public final class ForwardingRulesGetSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * ForwardingRule_Get.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ForwardingRule_Get.json
*/
/**
* Sample code: Retrieve forwarding rule in a DNS forwarding ruleset.
@@ -1373,8 +577,7 @@ public final class ForwardingRulesGetSamples {
public final class ForwardingRulesListSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * ForwardingRule_List.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ForwardingRule_List.json
*/
/**
* Sample code: List forwarding rules in a DNS forwarding ruleset.
@@ -1403,8 +606,7 @@ import java.util.Map;
public final class ForwardingRulesUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * ForwardingRule_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ForwardingRule_Patch.json
*/
/**
* Sample code: Update forwarding rule in a DNS forwarding ruleset.
@@ -1453,8 +655,7 @@ import java.util.Map;
public final class InboundEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * InboundEndpoint_Put.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundEndpoint_Put.json
*/
/**
* Sample code: Upsert inbound endpoint for DNS resolver.
@@ -1497,8 +698,8 @@ public final class InboundEndpointsCreateOrUpdateSamples {
public final class InboundEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * InboundEndpoint_Delete.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundEndpoint_Delete.
+ * json
*/
/**
* Sample code: Delete inbound endpoint for DNS resolver.
@@ -1523,8 +724,7 @@ public final class InboundEndpointsDeleteSamples {
public final class InboundEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * InboundEndpoint_Get.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundEndpoint_Get.json
*/
/**
* Sample code: Retrieve inbound endpoint for DNS resolver.
@@ -1549,8 +749,7 @@ public final class InboundEndpointsGetSamples {
public final class InboundEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * InboundEndpoint_List.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundEndpoint_List.json
*/
/**
* Sample code: List inbound endpoints by DNS resolver.
@@ -1578,8 +777,8 @@ import java.util.Map;
public final class InboundEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * InboundEndpoint_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundEndpoint_Patch.
+ * json
*/
/**
* Sample code: Update inbound endpoint for DNS resolver.
@@ -1622,8 +821,7 @@ import java.util.Map;
public final class OutboundEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * OutboundEndpoint_Put.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OutboundEndpoint_Put.json
*/
/**
* Sample code: Upsert outbound endpoint for DNS resolver.
@@ -1665,8 +863,8 @@ public final class OutboundEndpointsCreateOrUpdateSamples {
public final class OutboundEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * OutboundEndpoint_Delete.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OutboundEndpoint_Delete.
+ * json
*/
/**
* Sample code: Delete outbound endpoint for DNS resolver.
@@ -1691,8 +889,7 @@ public final class OutboundEndpointsDeleteSamples {
public final class OutboundEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * OutboundEndpoint_Get.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OutboundEndpoint_Get.json
*/
/**
* Sample code: Retrieve outbound endpoint for DNS resolver.
@@ -1717,8 +914,8 @@ public final class OutboundEndpointsGetSamples {
public final class OutboundEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * OutboundEndpoint_List.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OutboundEndpoint_List.
+ * json
*/
/**
* Sample code: List outbound endpoints by DNS resolver.
@@ -1746,8 +943,8 @@ import java.util.Map;
public final class OutboundEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * OutboundEndpoint_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OutboundEndpoint_Patch.
+ * json
*/
/**
* Sample code: Update outbound endpoint for DNS resolver.
@@ -1790,8 +987,8 @@ import java.util.Map;
public final class VirtualNetworkLinksCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * VirtualNetworkLink_Put.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkLink_Put.
+ * json
*/
/**
* Sample code: Upsert virtual network link to a DNS forwarding ruleset.
@@ -1832,8 +1029,8 @@ public final class VirtualNetworkLinksCreateOrUpdateSamples {
public final class VirtualNetworkLinksDeleteSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * VirtualNetworkLink_Delete.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkLink_Delete
+ * .json
*/
/**
* Sample code: Delete virtual network link to a DNS forwarding ruleset.
@@ -1858,8 +1055,8 @@ public final class VirtualNetworkLinksDeleteSamples {
public final class VirtualNetworkLinksGetSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * VirtualNetworkLink_Get.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkLink_Get.
+ * json
*/
/**
* Sample code: Retrieve virtual network link to a DNS forwarding ruleset.
@@ -1884,8 +1081,8 @@ public final class VirtualNetworkLinksGetSamples {
public final class VirtualNetworkLinksListSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * VirtualNetworkLink_List.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkLink_List.
+ * json
*/
/**
* Sample code: List virtual network links to a DNS forwarding ruleset.
@@ -1913,8 +1110,8 @@ import java.util.Map;
public final class VirtualNetworkLinksUpdateSamples {
/*
* x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/
- * VirtualNetworkLink_Patch.json
+ * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkLink_Patch.
+ * json
*/
/**
* Sample code: Update virtual network link to a DNS forwarding ruleset.
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
index c433e1c451f3..f0b1dadf42d5 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-dnsresolver
- 1.0.0-beta.5
+ 1.0.0
jar
Microsoft Azure SDK for DnsResolver Management
- This package contains Microsoft Azure SDK for DnsResolver Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DNS Resolver Client. Package tag package-preview-2023-07.
+ This package contains Microsoft Azure SDK for DnsResolver Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DNS Resolver Client. Package tag package-2022-07.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/DnsResolverManager.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/DnsResolverManager.java
index dacacd28e919..cf22fa6b8581 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/DnsResolverManager.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/DnsResolverManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,28 +20,19 @@
import com.azure.core.http.policy.RetryOptions;
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.dnsresolver.fluent.DnsResolverManagementClient;
import com.azure.resourcemanager.dnsresolver.implementation.DnsForwardingRulesetsImpl;
-import com.azure.resourcemanager.dnsresolver.implementation.DnsResolverDomainListsImpl;
import com.azure.resourcemanager.dnsresolver.implementation.DnsResolverManagementClientBuilder;
-import com.azure.resourcemanager.dnsresolver.implementation.DnsResolverPoliciesImpl;
-import com.azure.resourcemanager.dnsresolver.implementation.DnsResolverPolicyVirtualNetworkLinksImpl;
import com.azure.resourcemanager.dnsresolver.implementation.DnsResolversImpl;
-import com.azure.resourcemanager.dnsresolver.implementation.DnsSecurityRulesImpl;
import com.azure.resourcemanager.dnsresolver.implementation.ForwardingRulesImpl;
import com.azure.resourcemanager.dnsresolver.implementation.InboundEndpointsImpl;
import com.azure.resourcemanager.dnsresolver.implementation.OutboundEndpointsImpl;
import com.azure.resourcemanager.dnsresolver.implementation.VirtualNetworkLinksImpl;
import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRulesets;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainLists;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicies;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyVirtualNetworkLinks;
import com.azure.resourcemanager.dnsresolver.models.DnsResolvers;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRules;
import com.azure.resourcemanager.dnsresolver.models.ForwardingRules;
import com.azure.resourcemanager.dnsresolver.models.InboundEndpoints;
import com.azure.resourcemanager.dnsresolver.models.OutboundEndpoints;
@@ -69,14 +61,6 @@ public final class DnsResolverManager {
private VirtualNetworkLinks virtualNetworkLinks;
- private DnsResolverPolicies dnsResolverPolicies;
-
- private DnsSecurityRules dnsSecurityRules;
-
- private DnsResolverPolicyVirtualNetworkLinks dnsResolverPolicyVirtualNetworkLinks;
-
- private DnsResolverDomainLists dnsResolverDomainLists;
-
private final DnsResolverManagementClient clientObject;
private DnsResolverManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -241,7 +225,7 @@ public DnsResolverManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.dnsresolver")
.append("/")
- .append("1.0.0-beta.4");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -274,7 +258,7 @@ public DnsResolverManager authenticate(TokenCredential credential, AzureProfile
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -359,57 +343,6 @@ public VirtualNetworkLinks virtualNetworkLinks() {
return virtualNetworkLinks;
}
- /**
- * Gets the resource collection API of DnsResolverPolicies. It manages DnsResolverPolicy.
- *
- * @return Resource collection API of DnsResolverPolicies.
- */
- public DnsResolverPolicies dnsResolverPolicies() {
- if (this.dnsResolverPolicies == null) {
- this.dnsResolverPolicies = new DnsResolverPoliciesImpl(clientObject.getDnsResolverPolicies(), this);
- }
- return dnsResolverPolicies;
- }
-
- /**
- * Gets the resource collection API of DnsSecurityRules. It manages DnsSecurityRule.
- *
- * @return Resource collection API of DnsSecurityRules.
- */
- public DnsSecurityRules dnsSecurityRules() {
- if (this.dnsSecurityRules == null) {
- this.dnsSecurityRules = new DnsSecurityRulesImpl(clientObject.getDnsSecurityRules(), this);
- }
- return dnsSecurityRules;
- }
-
- /**
- * Gets the resource collection API of DnsResolverPolicyVirtualNetworkLinks. It manages
- * DnsResolverPolicyVirtualNetworkLink.
- *
- * @return Resource collection API of DnsResolverPolicyVirtualNetworkLinks.
- */
- public DnsResolverPolicyVirtualNetworkLinks dnsResolverPolicyVirtualNetworkLinks() {
- if (this.dnsResolverPolicyVirtualNetworkLinks == null) {
- this.dnsResolverPolicyVirtualNetworkLinks = new DnsResolverPolicyVirtualNetworkLinksImpl(
- clientObject.getDnsResolverPolicyVirtualNetworkLinks(), this);
- }
- return dnsResolverPolicyVirtualNetworkLinks;
- }
-
- /**
- * Gets the resource collection API of DnsResolverDomainLists. It manages DnsResolverDomainList.
- *
- * @return Resource collection API of DnsResolverDomainLists.
- */
- public DnsResolverDomainLists dnsResolverDomainLists() {
- if (this.dnsResolverDomainLists == null) {
- this.dnsResolverDomainLists
- = new DnsResolverDomainListsImpl(clientObject.getDnsResolverDomainLists(), this);
- }
- return dnsResolverDomainLists;
- }
-
/**
* Gets wrapped service client DnsResolverManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverDomainListsClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverDomainListsClient.java
deleted file mode 100644
index defaab4f6116..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverDomainListsClient.java
+++ /dev/null
@@ -1,296 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.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.dnsresolver.fluent.models.DnsResolverDomainListInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in DnsResolverDomainListsClient.
- */
-public interface DnsResolverDomainListsClient {
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverDomainListInner> beginCreateOrUpdate(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters);
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 the {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverDomainListInner> beginCreateOrUpdate(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters,
- String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverDomainListInner createOrUpdate(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListInner parameters);
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverDomainListInner createOrUpdate(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverDomainListInner> beginUpdate(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListPatch parameters);
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverDomainListInner> beginUpdate(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListPatch parameters, String ifMatch, Context context);
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverDomainListInner update(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters);
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverDomainListInner update(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters, String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverDomainListName);
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverDomainListName,
- String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 dnsResolverDomainListName);
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 dnsResolverDomainListName, String ifMatch, Context context);
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 properties of a DNS resolver domain list along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsResolverDomainListName, Context context);
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @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 properties of a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverDomainListInner getByResourceGroup(String resourceGroupName, String dnsResolverDomainListName);
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
- Context context);
-
- /**
- * Lists DNS resolver domain lists in all resource groups of 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, Context context);
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverManagementClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverManagementClient.java
index 92c2ed7c0326..4662ebc559b1 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverManagementClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverManagementClient.java
@@ -12,7 +12,7 @@
*/
public interface DnsResolverManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -87,32 +87,4 @@ public interface DnsResolverManagementClient {
* @return the VirtualNetworkLinksClient object.
*/
VirtualNetworkLinksClient getVirtualNetworkLinks();
-
- /**
- * Gets the DnsResolverPoliciesClient object to access its operations.
- *
- * @return the DnsResolverPoliciesClient object.
- */
- DnsResolverPoliciesClient getDnsResolverPolicies();
-
- /**
- * Gets the DnsSecurityRulesClient object to access its operations.
- *
- * @return the DnsSecurityRulesClient object.
- */
- DnsSecurityRulesClient getDnsSecurityRules();
-
- /**
- * Gets the DnsResolverPolicyVirtualNetworkLinksClient object to access its operations.
- *
- * @return the DnsResolverPolicyVirtualNetworkLinksClient object.
- */
- DnsResolverPolicyVirtualNetworkLinksClient getDnsResolverPolicyVirtualNetworkLinks();
-
- /**
- * Gets the DnsResolverDomainListsClient object to access its operations.
- *
- * @return the DnsResolverDomainListsClient object.
- */
- DnsResolverDomainListsClient getDnsResolverDomainLists();
}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPoliciesClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPoliciesClient.java
deleted file mode 100644
index b3b44ca08c5e..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPoliciesClient.java
+++ /dev/null
@@ -1,326 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.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.SubResource;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverPolicyInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in DnsResolverPoliciesClient.
- */
-public interface DnsResolverPoliciesClient {
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyInner parameters);
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 the {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyInner> beginCreateOrUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch,
- Context context);
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters);
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters);
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context);
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters);
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters, String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName);
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName,
- String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 dnsResolverPolicyName);
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 dnsResolverPolicyName, String ifMatch, Context context);
-
- /**
- * Gets properties of a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 properties of a DNS resolver policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsResolverPolicyName, Context context);
-
- /**
- * Gets properties of a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 properties of a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyInner getByResourceGroup(String resourceGroupName, String dnsResolverPolicyName);
-
- /**
- * Lists DNS resolver policies within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 an enumeration operation on DNS resolver policies as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Lists DNS resolver policies within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS resolver policies as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
-
- /**
- * Lists DNS resolver policies in all resource groups of 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 an enumeration operation on DNS resolver policies as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Lists DNS resolver policies in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS resolver policies as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, Context context);
-
- /**
- * Lists DNS resolver policy resource IDs linked to a virtual network.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualNetworkName The name of the virtual network.
- * @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 an enumeration operation on sub-resources as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualNetwork(String resourceGroupName, String virtualNetworkName);
-
- /**
- * Lists DNS resolver policy resource IDs linked to a virtual network.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualNetworkName The name of the virtual network.
- * @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 an enumeration operation on sub-resources as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualNetwork(String resourceGroupName, String virtualNetworkName,
- Context context);
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPolicyVirtualNetworkLinksClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPolicyVirtualNetworkLinksClient.java
deleted file mode 100644
index df84398966d6..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolverPolicyVirtualNetworkLinksClient.java
+++ /dev/null
@@ -1,313 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.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.dnsresolver.fluent.models.DnsResolverPolicyVirtualNetworkLinkInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyVirtualNetworkLinkPatch;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * DnsResolverPolicyVirtualNetworkLinksClient.
- */
-public interface DnsResolverPolicyVirtualNetworkLinksClient {
- /**
- * Creates or updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyVirtualNetworkLinkInner>
- beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkInner parameters);
-
- /**
- * Creates or updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 the {@link SyncPoller} for polling of describes a DNS resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyVirtualNetworkLinkInner>
- beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkInner parameters,
- String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Creates or updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyVirtualNetworkLinkInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkInner parameters);
-
- /**
- * Creates or updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyVirtualNetworkLinkInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkInner parameters,
- String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 the {@link SyncPoller} for polling of describes a DNS resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyVirtualNetworkLinkInner>
- beginUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkPatch parameters);
-
- /**
- * Updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of describes a DNS resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsResolverPolicyVirtualNetworkLinkInner>
- beginUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkPatch parameters,
- String ifMatch, Context context);
-
- /**
- * Updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyVirtualNetworkLinkInner update(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkPatch parameters);
-
- /**
- * Updates a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyVirtualNetworkLinkInner update(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, DnsResolverPolicyVirtualNetworkLinkPatch parameters,
- String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName);
-
- /**
- * Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName, String ifMatch, Context context);
-
- /**
- * Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 dnsResolverPolicyName, String dnsResolverPolicyVirtualNetworkLinkName);
-
- /**
- * Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 dnsResolverPolicyName, String dnsResolverPolicyVirtualNetworkLinkName,
- String ifMatch, Context context);
-
- /**
- * Gets properties of a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 properties of a DNS resolver policy virtual network link along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName,
- String dnsResolverPolicyName, String dnsResolverPolicyVirtualNetworkLinkName, Context context);
-
- /**
- * Gets properties of a DNS resolver policy virtual network link.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsResolverPolicyVirtualNetworkLinkName The name of the DNS resolver policy virtual network link for the
- * DNS resolver policy.
- * @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 properties of a DNS resolver policy virtual network link.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverPolicyVirtualNetworkLinkInner get(String resourceGroupName, String dnsResolverPolicyName,
- String dnsResolverPolicyVirtualNetworkLinkName);
-
- /**
- * Lists DNS resolver policy virtual network links.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 an enumeration operation on DNS resolver policy virtual network links as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName,
- String dnsResolverPolicyName);
-
- /**
- * Lists DNS resolver policy virtual network links.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS resolver policy virtual network links as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String dnsResolverPolicyName,
- Integer top, Context context);
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsSecurityRulesClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsSecurityRulesClient.java
deleted file mode 100644
index ba6eaafa6dd1..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsSecurityRulesClient.java
+++ /dev/null
@@ -1,291 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.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.dnsresolver.fluent.models.DnsSecurityRuleInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRulePatch;
-
-/**
- * An instance of this class provides access to all the operations defined in DnsSecurityRulesClient.
- */
-public interface DnsSecurityRulesClient {
- /**
- * Creates or updates a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 the {@link SyncPoller} for polling of describes a DNS security rule.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsSecurityRuleInner> beginCreateOrUpdate(String resourceGroupName,
- String dnsResolverPolicyName, String dnsSecurityRuleName, DnsSecurityRuleInner parameters);
-
- /**
- * Creates or updates a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 the {@link SyncPoller} for polling of describes a DNS security rule.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsSecurityRuleInner> beginCreateOrUpdate(String resourceGroupName,
- String dnsResolverPolicyName, String dnsSecurityRuleName, DnsSecurityRuleInner parameters, String ifMatch,
- String ifNoneMatch, Context context);
-
- /**
- * Creates or updates a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 security rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsSecurityRuleInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsSecurityRuleName, DnsSecurityRuleInner parameters);
-
- /**
- * Creates or updates a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. 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 security rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsSecurityRuleInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- String dnsSecurityRuleName, DnsSecurityRuleInner parameters, String ifMatch, String ifNoneMatch,
- Context context);
-
- /**
- * Updates a DNS security rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 the {@link SyncPoller} for polling of describes a DNS security rule.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsSecurityRuleInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, String dnsSecurityRuleName, DnsSecurityRulePatch parameters);
-
- /**
- * Updates a DNS security rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of describes a DNS security rule.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DnsSecurityRuleInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, String dnsSecurityRuleName, DnsSecurityRulePatch parameters, String ifMatch,
- Context context);
-
- /**
- * Updates a DNS security rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 security rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsSecurityRuleInner update(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName,
- DnsSecurityRulePatch parameters);
-
- /**
- * Updates a DNS security rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 security rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsSecurityRuleInner update(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName,
- DnsSecurityRulePatch parameters, String ifMatch, Context context);
-
- /**
- * Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName,
- String dnsSecurityRuleName);
-
- /**
- * Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverPolicyName,
- String dnsSecurityRuleName, String ifMatch, Context context);
-
- /**
- * Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 dnsResolverPolicyName, String dnsSecurityRuleName);
-
- /**
- * Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @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 dnsResolverPolicyName, String dnsSecurityRuleName, String ifMatch,
- Context context);
-
- /**
- * Gets properties of a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 properties of a DNS security rule for a DNS resolver policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String dnsResolverPolicyName,
- String dnsSecurityRuleName, Context context);
-
- /**
- * Gets properties of a DNS security rule for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param dnsSecurityRuleName The name of the DNS security rule.
- * @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 properties of a DNS security rule for a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsSecurityRuleInner get(String resourceGroupName, String dnsResolverPolicyName, String dnsSecurityRuleName);
-
- /**
- * Lists DNS security rules for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @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 an enumeration operation on DNS security rules within a DNS resolver policy as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String dnsResolverPolicyName);
-
- /**
- * Lists DNS security rules for a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @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 an enumeration operation on DNS security rules within a DNS resolver policy as paginated
- * response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String dnsResolverPolicyName, Integer top,
- Context context);
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetInner.java
index 2aeba5108b93..d1698e130d44 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetInner.java
@@ -33,7 +33,7 @@ public final class DnsForwardingRulesetInner extends Resource {
private DnsForwardingRulesetProperties innerProperties = new DnsForwardingRulesetProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -77,7 +77,7 @@ private DnsForwardingRulesetProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListInner.java
deleted file mode 100644
index afe8f07ae003..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListInner.java
+++ /dev/null
@@ -1,248 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Describes a DNS resolver domain list.
- */
-@Fluent
-public final class DnsResolverDomainListInner extends Resource {
- /*
- * ETag of the DNS resolver domain list.
- */
- private String etag;
-
- /*
- * Properties of the DNS resolver domain list.
- */
- private DnsResolverDomainListProperties innerProperties = new DnsResolverDomainListProperties();
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of DnsResolverDomainListInner class.
- */
- public DnsResolverDomainListInner() {
- }
-
- /**
- * Get the etag property: ETag of the DNS resolver domain list.
- *
- * @return the etag value.
- */
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the innerProperties property: Properties of the DNS resolver domain list.
- *
- * @return the innerProperties value.
- */
- private DnsResolverDomainListProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverDomainListInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverDomainListInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the domains property: The domains in the domain list.
- *
- * @return the domains value.
- */
- public List domains() {
- return this.innerProperties() == null ? null : this.innerProperties().domains();
- }
-
- /**
- * Set the domains property: The domains in the domain list.
- *
- * @param domains the domains value to set.
- * @return the DnsResolverDomainListInner object itself.
- */
- public DnsResolverDomainListInner withDomains(List domains) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsResolverDomainListProperties();
- }
- this.innerProperties().withDomains(domains);
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver domain list. This is a
- * read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the resourceGuid property: The resourceGuid property of the DNS resolver domain list resource.
- *
- * @return the resourceGuid value.
- */
- public String resourceGuid() {
- return this.innerProperties() == null ? null : this.innerProperties().resourceGuid();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model DnsResolverDomainListInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverDomainListInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverDomainListInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverDomainListInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsResolverDomainListInner.
- */
- public static DnsResolverDomainListInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverDomainListInner deserializedDnsResolverDomainListInner = new DnsResolverDomainListInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedDnsResolverDomainListInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.innerProperties
- = DnsResolverDomainListProperties.fromJson(reader);
- } else if ("etag".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.etag = reader.getString();
- } else if ("systemData".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverDomainListInner;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListPatchProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListPatchProperties.java
deleted file mode 100644
index 1c26ccda650b..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListPatchProperties.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Represents the updatable properties of a DNS resolver domain list.
- */
-@Fluent
-public final class DnsResolverDomainListPatchProperties
- implements JsonSerializable {
- /*
- * The domains in the domain list.
- */
- private List domains;
-
- /**
- * Creates an instance of DnsResolverDomainListPatchProperties class.
- */
- public DnsResolverDomainListPatchProperties() {
- }
-
- /**
- * Get the domains property: The domains in the domain list.
- *
- * @return the domains value.
- */
- public List domains() {
- return this.domains;
- }
-
- /**
- * Set the domains property: The domains in the domain list.
- *
- * @param domains the domains value to set.
- * @return the DnsResolverDomainListPatchProperties object itself.
- */
- public DnsResolverDomainListPatchProperties withDomains(List domains) {
- this.domains = domains;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("domains", this.domains, (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverDomainListPatchProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverDomainListPatchProperties if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the DnsResolverDomainListPatchProperties.
- */
- public static DnsResolverDomainListPatchProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverDomainListPatchProperties deserializedDnsResolverDomainListPatchProperties
- = new DnsResolverDomainListPatchProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("domains".equals(fieldName)) {
- List domains = reader.readArray(reader1 -> reader1.getString());
- deserializedDnsResolverDomainListPatchProperties.domains = domains;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverDomainListPatchProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListProperties.java
deleted file mode 100644
index ad79266e323f..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListProperties.java
+++ /dev/null
@@ -1,141 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Represents the properties of a DNS resolver domain list.
- */
-@Fluent
-public final class DnsResolverDomainListProperties implements JsonSerializable {
- /*
- * The domains in the domain list.
- */
- private List domains;
-
- /*
- * The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to
- * set this value will be ignored.
- */
- private ProvisioningState provisioningState;
-
- /*
- * The resourceGuid property of the DNS resolver domain list resource.
- */
- private String resourceGuid;
-
- /**
- * Creates an instance of DnsResolverDomainListProperties class.
- */
- public DnsResolverDomainListProperties() {
- }
-
- /**
- * Get the domains property: The domains in the domain list.
- *
- * @return the domains value.
- */
- public List domains() {
- return this.domains;
- }
-
- /**
- * Set the domains property: The domains in the domain list.
- *
- * @param domains the domains value to set.
- * @return the DnsResolverDomainListProperties object itself.
- */
- public DnsResolverDomainListProperties withDomains(List domains) {
- this.domains = domains;
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver domain list. This is a
- * read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the resourceGuid property: The resourceGuid property of the DNS resolver domain list resource.
- *
- * @return the resourceGuid value.
- */
- public String resourceGuid() {
- return this.resourceGuid;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (domains() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property domains in model DnsResolverDomainListProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverDomainListProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("domains", this.domains, (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverDomainListProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverDomainListProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsResolverDomainListProperties.
- */
- public static DnsResolverDomainListProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverDomainListProperties deserializedDnsResolverDomainListProperties
- = new DnsResolverDomainListProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("domains".equals(fieldName)) {
- List domains = reader.readArray(reader1 -> reader1.getString());
- deserializedDnsResolverDomainListProperties.domains = domains;
- } else if ("provisioningState".equals(fieldName)) {
- deserializedDnsResolverDomainListProperties.provisioningState
- = ProvisioningState.fromString(reader.getString());
- } else if ("resourceGuid".equals(fieldName)) {
- deserializedDnsResolverDomainListProperties.resourceGuid = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverDomainListProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverInner.java
index 41799f3d7f87..30710c2db57e 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverInner.java
@@ -33,7 +33,7 @@ public final class DnsResolverInner extends Resource {
private DnsResolverProperties innerProperties = new DnsResolverProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -77,7 +77,7 @@ private DnsResolverProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyInner.java
deleted file mode 100644
index 64bb31a64bf2..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyInner.java
+++ /dev/null
@@ -1,216 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Describes a DNS resolver policy.
- */
-@Fluent
-public final class DnsResolverPolicyInner extends Resource {
- /*
- * ETag of the DNS resolver policy.
- */
- private String etag;
-
- /*
- * Properties of the DNS resolver policy.
- */
- private DnsResolverPolicyProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of DnsResolverPolicyInner class.
- */
- public DnsResolverPolicyInner() {
- }
-
- /**
- * Get the etag property: ETag of the DNS resolver policy.
- *
- * @return the etag value.
- */
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the innerProperties property: Properties of the DNS resolver policy.
- *
- * @return the innerProperties value.
- */
- private DnsResolverPolicyProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverPolicyInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverPolicyInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver policy. This is a
- * read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the resourceGuid property: The resourceGuid property of the DNS resolver policy resource.
- *
- * @return the resourceGuid value.
- */
- public String resourceGuid() {
- return this.innerProperties() == null ? null : this.innerProperties().resourceGuid();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverPolicyInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverPolicyInner if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsResolverPolicyInner.
- */
- public static DnsResolverPolicyInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverPolicyInner deserializedDnsResolverPolicyInner = new DnsResolverPolicyInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedDnsResolverPolicyInner.withTags(tags);
- } else if ("etag".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.etag = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.innerProperties = DnsResolverPolicyProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedDnsResolverPolicyInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverPolicyInner;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyProperties.java
deleted file mode 100644
index 414be94a5b72..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyProperties.java
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-
-/**
- * Represents the properties of a DNS resolver policy.
- */
-@Immutable
-public final class DnsResolverPolicyProperties implements JsonSerializable {
- /*
- * The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set
- * this value will be ignored.
- */
- private ProvisioningState provisioningState;
-
- /*
- * The resourceGuid property of the DNS resolver policy resource.
- */
- private String resourceGuid;
-
- /**
- * Creates an instance of DnsResolverPolicyProperties class.
- */
- public DnsResolverPolicyProperties() {
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver policy. This is a
- * read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the resourceGuid property: The resourceGuid property of the DNS resolver policy resource.
- *
- * @return the resourceGuid value.
- */
- public String resourceGuid() {
- return this.resourceGuid;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverPolicyProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverPolicyProperties if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the DnsResolverPolicyProperties.
- */
- public static DnsResolverPolicyProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverPolicyProperties deserializedDnsResolverPolicyProperties = new DnsResolverPolicyProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("provisioningState".equals(fieldName)) {
- deserializedDnsResolverPolicyProperties.provisioningState
- = ProvisioningState.fromString(reader.getString());
- } else if ("resourceGuid".equals(fieldName)) {
- deserializedDnsResolverPolicyProperties.resourceGuid = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverPolicyProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkInner.java
deleted file mode 100644
index 177a2f383415..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkInner.java
+++ /dev/null
@@ -1,241 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SubResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Describes a DNS resolver policy virtual network link.
- */
-@Fluent
-public final class DnsResolverPolicyVirtualNetworkLinkInner extends Resource {
- /*
- * ETag of the DNS resolver policy virtual network link.
- */
- private String etag;
-
- /*
- * Properties of the DNS resolver policy virtual network link.
- */
- private DnsResolverPolicyVirtualNetworkLinkProperties innerProperties
- = new DnsResolverPolicyVirtualNetworkLinkProperties();
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of DnsResolverPolicyVirtualNetworkLinkInner class.
- */
- public DnsResolverPolicyVirtualNetworkLinkInner() {
- }
-
- /**
- * Get the etag property: ETag of the DNS resolver policy virtual network link.
- *
- * @return the etag value.
- */
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the innerProperties property: Properties of the DNS resolver policy virtual network link.
- *
- * @return the innerProperties value.
- */
- private DnsResolverPolicyVirtualNetworkLinkProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverPolicyVirtualNetworkLinkInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsResolverPolicyVirtualNetworkLinkInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.
- *
- * @return the virtualNetwork value.
- */
- public SubResource virtualNetwork() {
- return this.innerProperties() == null ? null : this.innerProperties().virtualNetwork();
- }
-
- /**
- * Set the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.
- *
- * @param virtualNetwork the virtualNetwork value to set.
- * @return the DnsResolverPolicyVirtualNetworkLinkInner object itself.
- */
- public DnsResolverPolicyVirtualNetworkLinkInner withVirtualNetwork(SubResource virtualNetwork) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsResolverPolicyVirtualNetworkLinkProperties();
- }
- this.innerProperties().withVirtualNetwork(virtualNetwork);
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver policy virtual network
- * link. This is a read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model DnsResolverPolicyVirtualNetworkLinkInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverPolicyVirtualNetworkLinkInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverPolicyVirtualNetworkLinkInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverPolicyVirtualNetworkLinkInner if the JsonReader was pointing to an instance of
- * it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsResolverPolicyVirtualNetworkLinkInner.
- */
- public static DnsResolverPolicyVirtualNetworkLinkInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverPolicyVirtualNetworkLinkInner deserializedDnsResolverPolicyVirtualNetworkLinkInner
- = new DnsResolverPolicyVirtualNetworkLinkInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.innerProperties
- = DnsResolverPolicyVirtualNetworkLinkProperties.fromJson(reader);
- } else if ("etag".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.etag = reader.getString();
- } else if ("systemData".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverPolicyVirtualNetworkLinkInner;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkProperties.java
deleted file mode 100644
index d98d10ff57f1..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverPolicyVirtualNetworkLinkProperties.java
+++ /dev/null
@@ -1,126 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-
-/**
- * Represents the properties of a DNS resolver policy virtual network link.
- */
-@Fluent
-public final class DnsResolverPolicyVirtualNetworkLinkProperties
- implements JsonSerializable {
- /*
- * The reference to the virtual network. This cannot be changed after creation.
- */
- private SubResource virtualNetwork;
-
- /*
- * The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and
- * any attempt to set this value will be ignored.
- */
- private ProvisioningState provisioningState;
-
- /**
- * Creates an instance of DnsResolverPolicyVirtualNetworkLinkProperties class.
- */
- public DnsResolverPolicyVirtualNetworkLinkProperties() {
- }
-
- /**
- * Get the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.
- *
- * @return the virtualNetwork value.
- */
- public SubResource virtualNetwork() {
- return this.virtualNetwork;
- }
-
- /**
- * Set the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.
- *
- * @param virtualNetwork the virtualNetwork value to set.
- * @return the DnsResolverPolicyVirtualNetworkLinkProperties object itself.
- */
- public DnsResolverPolicyVirtualNetworkLinkProperties withVirtualNetwork(SubResource virtualNetwork) {
- this.virtualNetwork = virtualNetwork;
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS resolver policy virtual network
- * link. This is a read-only property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (virtualNetwork() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property virtualNetwork in model DnsResolverPolicyVirtualNetworkLinkProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverPolicyVirtualNetworkLinkProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("virtualNetwork", this.virtualNetwork);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsResolverPolicyVirtualNetworkLinkProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsResolverPolicyVirtualNetworkLinkProperties if the JsonReader was pointing to an
- * instance of it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsResolverPolicyVirtualNetworkLinkProperties.
- */
- public static DnsResolverPolicyVirtualNetworkLinkProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsResolverPolicyVirtualNetworkLinkProperties deserializedDnsResolverPolicyVirtualNetworkLinkProperties
- = new DnsResolverPolicyVirtualNetworkLinkProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("virtualNetwork".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkProperties.virtualNetwork
- = SubResource.fromJson(reader);
- } else if ("provisioningState".equals(fieldName)) {
- deserializedDnsResolverPolicyVirtualNetworkLinkProperties.provisioningState
- = ProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsResolverPolicyVirtualNetworkLinkProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleInner.java
deleted file mode 100644
index 758794a34fb2..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleInner.java
+++ /dev/null
@@ -1,310 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SubResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Describes a DNS security rule.
- */
-@Fluent
-public final class DnsSecurityRuleInner extends Resource {
- /*
- * ETag of the DNS security rule.
- */
- private String etag;
-
- /*
- * Properties of the DNS security rule.
- */
- private DnsSecurityRuleProperties innerProperties = new DnsSecurityRuleProperties();
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of DnsSecurityRuleInner class.
- */
- public DnsSecurityRuleInner() {
- }
-
- /**
- * Get the etag property: ETag of the DNS security rule.
- *
- * @return the etag value.
- */
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the innerProperties property: Properties of the DNS security rule.
- *
- * @return the innerProperties value.
- */
- private DnsSecurityRuleProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsSecurityRuleInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public DnsSecurityRuleInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the priority property: The priority of the DNS security rule.
- *
- * @return the priority value.
- */
- public int priority() {
- return this.innerProperties() == null ? 0 : this.innerProperties().priority();
- }
-
- /**
- * Set the priority property: The priority of the DNS security rule.
- *
- * @param priority the priority value to set.
- * @return the DnsSecurityRuleInner object itself.
- */
- public DnsSecurityRuleInner withPriority(int priority) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsSecurityRuleProperties();
- }
- this.innerProperties().withPriority(priority);
- return this;
- }
-
- /**
- * Get the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @return the action value.
- */
- public DnsSecurityRuleAction action() {
- return this.innerProperties() == null ? null : this.innerProperties().action();
- }
-
- /**
- * Set the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @param action the action value to set.
- * @return the DnsSecurityRuleInner object itself.
- */
- public DnsSecurityRuleInner withAction(DnsSecurityRuleAction action) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsSecurityRuleProperties();
- }
- this.innerProperties().withAction(action);
- return this;
- }
-
- /**
- * Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @return the dnsResolverDomainLists value.
- */
- public List dnsResolverDomainLists() {
- return this.innerProperties() == null ? null : this.innerProperties().dnsResolverDomainLists();
- }
-
- /**
- * Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @param dnsResolverDomainLists the dnsResolverDomainLists value to set.
- * @return the DnsSecurityRuleInner object itself.
- */
- public DnsSecurityRuleInner withDnsResolverDomainLists(List dnsResolverDomainLists) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsSecurityRuleProperties();
- }
- this.innerProperties().withDnsResolverDomainLists(dnsResolverDomainLists);
- return this;
- }
-
- /**
- * Get the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @return the dnsSecurityRuleState value.
- */
- public DnsSecurityRuleState dnsSecurityRuleState() {
- return this.innerProperties() == null ? null : this.innerProperties().dnsSecurityRuleState();
- }
-
- /**
- * Set the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @param dnsSecurityRuleState the dnsSecurityRuleState value to set.
- * @return the DnsSecurityRuleInner object itself.
- */
- public DnsSecurityRuleInner withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DnsSecurityRuleProperties();
- }
- this.innerProperties().withDnsSecurityRuleState(dnsSecurityRuleState);
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS security rule. This is a read-only
- * property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model DnsSecurityRuleInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsSecurityRuleInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsSecurityRuleInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsSecurityRuleInner if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsSecurityRuleInner.
- */
- public static DnsSecurityRuleInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsSecurityRuleInner deserializedDnsSecurityRuleInner = new DnsSecurityRuleInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedDnsSecurityRuleInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.innerProperties = DnsSecurityRuleProperties.fromJson(reader);
- } else if ("etag".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.etag = reader.getString();
- } else if ("systemData".equals(fieldName)) {
- deserializedDnsSecurityRuleInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsSecurityRuleInner;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRulePatchProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRulePatchProperties.java
deleted file mode 100644
index 113cc7f19fc8..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRulePatchProperties.java
+++ /dev/null
@@ -1,190 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.SubResource;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Represents the updatable properties of a DNS security rule.
- */
-@Fluent
-public final class DnsSecurityRulePatchProperties implements JsonSerializable {
- /*
- * The action to take on DNS requests that match the DNS security rule.
- */
- private DnsSecurityRuleAction action;
-
- /*
- * DNS resolver policy domains lists that the DNS security rule applies to.
- */
- private List dnsResolverDomainLists;
-
- /*
- * The state of DNS security rule.
- */
- private DnsSecurityRuleState dnsSecurityRuleState;
-
- /*
- * The priority of the DNS security rule.
- */
- private Integer priority;
-
- /**
- * Creates an instance of DnsSecurityRulePatchProperties class.
- */
- public DnsSecurityRulePatchProperties() {
- }
-
- /**
- * Get the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @return the action value.
- */
- public DnsSecurityRuleAction action() {
- return this.action;
- }
-
- /**
- * Set the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @param action the action value to set.
- * @return the DnsSecurityRulePatchProperties object itself.
- */
- public DnsSecurityRulePatchProperties withAction(DnsSecurityRuleAction action) {
- this.action = action;
- return this;
- }
-
- /**
- * Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @return the dnsResolverDomainLists value.
- */
- public List dnsResolverDomainLists() {
- return this.dnsResolverDomainLists;
- }
-
- /**
- * Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @param dnsResolverDomainLists the dnsResolverDomainLists value to set.
- * @return the DnsSecurityRulePatchProperties object itself.
- */
- public DnsSecurityRulePatchProperties withDnsResolverDomainLists(List dnsResolverDomainLists) {
- this.dnsResolverDomainLists = dnsResolverDomainLists;
- return this;
- }
-
- /**
- * Get the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @return the dnsSecurityRuleState value.
- */
- public DnsSecurityRuleState dnsSecurityRuleState() {
- return this.dnsSecurityRuleState;
- }
-
- /**
- * Set the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @param dnsSecurityRuleState the dnsSecurityRuleState value to set.
- * @return the DnsSecurityRulePatchProperties object itself.
- */
- public DnsSecurityRulePatchProperties withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState) {
- this.dnsSecurityRuleState = dnsSecurityRuleState;
- return this;
- }
-
- /**
- * Get the priority property: The priority of the DNS security rule.
- *
- * @return the priority value.
- */
- public Integer priority() {
- return this.priority;
- }
-
- /**
- * Set the priority property: The priority of the DNS security rule.
- *
- * @param priority the priority value to set.
- * @return the DnsSecurityRulePatchProperties object itself.
- */
- public DnsSecurityRulePatchProperties withPriority(Integer priority) {
- this.priority = priority;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (action() != null) {
- action().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("action", this.action);
- jsonWriter.writeArrayField("dnsResolverDomainLists", this.dnsResolverDomainLists,
- (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("dnsSecurityRuleState",
- this.dnsSecurityRuleState == null ? null : this.dnsSecurityRuleState.toString());
- jsonWriter.writeNumberField("priority", this.priority);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsSecurityRulePatchProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsSecurityRulePatchProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the DnsSecurityRulePatchProperties.
- */
- public static DnsSecurityRulePatchProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsSecurityRulePatchProperties deserializedDnsSecurityRulePatchProperties
- = new DnsSecurityRulePatchProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("action".equals(fieldName)) {
- deserializedDnsSecurityRulePatchProperties.action = DnsSecurityRuleAction.fromJson(reader);
- } else if ("dnsResolverDomainLists".equals(fieldName)) {
- List dnsResolverDomainLists
- = reader.readArray(reader1 -> SubResource.fromJson(reader1));
- deserializedDnsSecurityRulePatchProperties.dnsResolverDomainLists = dnsResolverDomainLists;
- } else if ("dnsSecurityRuleState".equals(fieldName)) {
- deserializedDnsSecurityRulePatchProperties.dnsSecurityRuleState
- = DnsSecurityRuleState.fromString(reader.getString());
- } else if ("priority".equals(fieldName)) {
- deserializedDnsSecurityRulePatchProperties.priority = reader.getNullable(JsonReader::getInt);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsSecurityRulePatchProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleProperties.java
deleted file mode 100644
index 540ebd07d5a9..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsSecurityRuleProperties.java
+++ /dev/null
@@ -1,222 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Represents the properties of a DNS security rule.
- */
-@Fluent
-public final class DnsSecurityRuleProperties implements JsonSerializable {
- /*
- * The priority of the DNS security rule.
- */
- private int priority;
-
- /*
- * The action to take on DNS requests that match the DNS security rule.
- */
- private DnsSecurityRuleAction action;
-
- /*
- * DNS resolver policy domains lists that the DNS security rule applies to.
- */
- private List dnsResolverDomainLists;
-
- /*
- * The state of DNS security rule.
- */
- private DnsSecurityRuleState dnsSecurityRuleState;
-
- /*
- * The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this
- * value will be ignored.
- */
- private ProvisioningState provisioningState;
-
- /**
- * Creates an instance of DnsSecurityRuleProperties class.
- */
- public DnsSecurityRuleProperties() {
- }
-
- /**
- * Get the priority property: The priority of the DNS security rule.
- *
- * @return the priority value.
- */
- public int priority() {
- return this.priority;
- }
-
- /**
- * Set the priority property: The priority of the DNS security rule.
- *
- * @param priority the priority value to set.
- * @return the DnsSecurityRuleProperties object itself.
- */
- public DnsSecurityRuleProperties withPriority(int priority) {
- this.priority = priority;
- return this;
- }
-
- /**
- * Get the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @return the action value.
- */
- public DnsSecurityRuleAction action() {
- return this.action;
- }
-
- /**
- * Set the action property: The action to take on DNS requests that match the DNS security rule.
- *
- * @param action the action value to set.
- * @return the DnsSecurityRuleProperties object itself.
- */
- public DnsSecurityRuleProperties withAction(DnsSecurityRuleAction action) {
- this.action = action;
- return this;
- }
-
- /**
- * Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @return the dnsResolverDomainLists value.
- */
- public List dnsResolverDomainLists() {
- return this.dnsResolverDomainLists;
- }
-
- /**
- * Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
- *
- * @param dnsResolverDomainLists the dnsResolverDomainLists value to set.
- * @return the DnsSecurityRuleProperties object itself.
- */
- public DnsSecurityRuleProperties withDnsResolverDomainLists(List dnsResolverDomainLists) {
- this.dnsResolverDomainLists = dnsResolverDomainLists;
- return this;
- }
-
- /**
- * Get the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @return the dnsSecurityRuleState value.
- */
- public DnsSecurityRuleState dnsSecurityRuleState() {
- return this.dnsSecurityRuleState;
- }
-
- /**
- * Set the dnsSecurityRuleState property: The state of DNS security rule.
- *
- * @param dnsSecurityRuleState the dnsSecurityRuleState value to set.
- * @return the DnsSecurityRuleProperties object itself.
- */
- public DnsSecurityRuleProperties withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState) {
- this.dnsSecurityRuleState = dnsSecurityRuleState;
- return this;
- }
-
- /**
- * Get the provisioningState property: The current provisioning state of the DNS security rule. This is a read-only
- * property and any attempt to set this value will be ignored.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (action() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property action in model DnsSecurityRuleProperties"));
- } else {
- action().validate();
- }
- if (dnsResolverDomainLists() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property dnsResolverDomainLists in model DnsSecurityRuleProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsSecurityRuleProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeIntField("priority", this.priority);
- jsonWriter.writeJsonField("action", this.action);
- jsonWriter.writeArrayField("dnsResolverDomainLists", this.dnsResolverDomainLists,
- (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("dnsSecurityRuleState",
- this.dnsSecurityRuleState == null ? null : this.dnsSecurityRuleState.toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of DnsSecurityRuleProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of DnsSecurityRuleProperties if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the DnsSecurityRuleProperties.
- */
- public static DnsSecurityRuleProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- DnsSecurityRuleProperties deserializedDnsSecurityRuleProperties = new DnsSecurityRuleProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("priority".equals(fieldName)) {
- deserializedDnsSecurityRuleProperties.priority = reader.getInt();
- } else if ("action".equals(fieldName)) {
- deserializedDnsSecurityRuleProperties.action = DnsSecurityRuleAction.fromJson(reader);
- } else if ("dnsResolverDomainLists".equals(fieldName)) {
- List dnsResolverDomainLists
- = reader.readArray(reader1 -> SubResource.fromJson(reader1));
- deserializedDnsSecurityRuleProperties.dnsResolverDomainLists = dnsResolverDomainLists;
- } else if ("dnsSecurityRuleState".equals(fieldName)) {
- deserializedDnsSecurityRuleProperties.dnsSecurityRuleState
- = DnsSecurityRuleState.fromString(reader.getString());
- } else if ("provisioningState".equals(fieldName)) {
- deserializedDnsSecurityRuleProperties.provisioningState
- = ProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedDnsSecurityRuleProperties;
- });
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleInner.java
index e5e198ebdbcd..7f2dce472996 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleInner.java
@@ -34,7 +34,7 @@ public final class ForwardingRuleInner extends ProxyResource {
private ForwardingRuleProperties innerProperties = new ForwardingRuleProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -78,7 +78,7 @@ private ForwardingRuleProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointInner.java
index 5430ce6c870f..aefcffade1f3 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointInner.java
@@ -33,7 +33,7 @@ public final class InboundEndpointInner extends Resource {
private InboundEndpointProperties innerProperties = new InboundEndpointProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -77,7 +77,7 @@ private InboundEndpointProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointInner.java
index bcbb4387da03..c185c55f019f 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointInner.java
@@ -32,7 +32,7 @@ public final class OutboundEndpointInner extends Resource {
private OutboundEndpointProperties innerProperties = new OutboundEndpointProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -76,7 +76,7 @@ private OutboundEndpointProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkInner.java
index 662a01f6024e..b5408efd7f31 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkInner.java
@@ -32,7 +32,7 @@ public final class VirtualNetworkLinkInner extends ProxyResource {
private VirtualNetworkLinkProperties innerProperties = new VirtualNetworkLinkProperties();
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Metadata pertaining to creation and last modification of the resource.
*/
private SystemData systemData;
@@ -76,7 +76,7 @@ private VirtualNetworkLinkProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListImpl.java
deleted file mode 100644
index ed9835fe78df..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListImpl.java
+++ /dev/null
@@ -1,228 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.implementation;
-
-import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverDomainListInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainList;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListPatch;
-import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-public final class DnsResolverDomainListImpl
- implements DnsResolverDomainList, DnsResolverDomainList.Definition, DnsResolverDomainList.Update {
- private DnsResolverDomainListInner innerObject;
-
- private final com.azure.resourcemanager.dnsresolver.DnsResolverManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public String location() {
- return this.innerModel().location();
- }
-
- public Map tags() {
- Map inner = this.innerModel().tags();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
- }
-
- public String etag() {
- return this.innerModel().etag();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public List domains() {
- List inner = this.innerModel().domains();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public String resourceGuid() {
- return this.innerModel().resourceGuid();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public DnsResolverDomainListInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.dnsresolver.DnsResolverManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String dnsResolverDomainListName;
-
- private String createIfMatch;
-
- private String createIfNoneMatch;
-
- private String updateIfMatch;
-
- private DnsResolverDomainListPatch updateParameters;
-
- public DnsResolverDomainListImpl withExistingResourceGroup(String resourceGroupName) {
- this.resourceGroupName = resourceGroupName;
- return this;
- }
-
- public DnsResolverDomainList create() {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .createOrUpdate(resourceGroupName, dnsResolverDomainListName, this.innerModel(), createIfMatch,
- createIfNoneMatch, Context.NONE);
- return this;
- }
-
- public DnsResolverDomainList create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .createOrUpdate(resourceGroupName, dnsResolverDomainListName, this.innerModel(), createIfMatch,
- createIfNoneMatch, context);
- return this;
- }
-
- DnsResolverDomainListImpl(String name, com.azure.resourcemanager.dnsresolver.DnsResolverManager serviceManager) {
- this.innerObject = new DnsResolverDomainListInner();
- this.serviceManager = serviceManager;
- this.dnsResolverDomainListName = name;
- this.createIfMatch = null;
- this.createIfNoneMatch = null;
- }
-
- public DnsResolverDomainListImpl update() {
- this.updateIfMatch = null;
- this.updateParameters = new DnsResolverDomainListPatch();
- return this;
- }
-
- public DnsResolverDomainList apply() {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .update(resourceGroupName, dnsResolverDomainListName, updateParameters, updateIfMatch, Context.NONE);
- return this;
- }
-
- public DnsResolverDomainList apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .update(resourceGroupName, dnsResolverDomainListName, updateParameters, updateIfMatch, context);
- return this;
- }
-
- DnsResolverDomainListImpl(DnsResolverDomainListInner innerObject,
- com.azure.resourcemanager.dnsresolver.DnsResolverManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.dnsResolverDomainListName
- = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dnsResolverDomainLists");
- }
-
- public DnsResolverDomainList refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, Context.NONE)
- .getValue();
- return this;
- }
-
- public DnsResolverDomainList refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getDnsResolverDomainLists()
- .getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, context)
- .getValue();
- return this;
- }
-
- public DnsResolverDomainListImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public DnsResolverDomainListImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public DnsResolverDomainListImpl withDomains(List domains) {
- if (isInCreateMode()) {
- this.innerModel().withDomains(domains);
- return this;
- } else {
- this.updateParameters.withDomains(domains);
- return this;
- }
- }
-
- public DnsResolverDomainListImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateParameters.withTags(tags);
- return this;
- }
- }
-
- public DnsResolverDomainListImpl withIfMatch(String ifMatch) {
- if (isInCreateMode()) {
- this.createIfMatch = ifMatch;
- return this;
- } else {
- this.updateIfMatch = ifMatch;
- return this;
- }
- }
-
- public DnsResolverDomainListImpl withIfNoneMatch(String ifNoneMatch) {
- this.createIfNoneMatch = ifNoneMatch;
- return this;
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsClientImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsClientImpl.java
deleted file mode 100644
index 3f96c6d7d4be..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsClientImpl.java
+++ /dev/null
@@ -1,1572 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverDomainListsClient;
-import com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverDomainListInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListPatch;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListResult;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in DnsResolverDomainListsClient.
- */
-public final class DnsResolverDomainListsClientImpl implements DnsResolverDomainListsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final DnsResolverDomainListsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final DnsResolverManagementClientImpl client;
-
- /**
- * Initializes an instance of DnsResolverDomainListsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- DnsResolverDomainListsClientImpl(DnsResolverManagementClientImpl client) {
- this.service = RestProxy.create(DnsResolverDomainListsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for DnsResolverManagementClientDnsResolverDomainLists to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "DnsResolverManagemen")
- public interface DnsResolverDomainListsService {
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverDomainListName") String dnsResolverDomainListName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("If-None-Match") String ifNoneMatch,
- @BodyParam("application/json") DnsResolverDomainListInner parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverDomainListName") String dnsResolverDomainListName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @BodyParam("application/json") DnsResolverDomainListPatch parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverDomainListName") String dnsResolverDomainListName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverDomainListName") String dnsResolverDomainListName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, ifNoneMatch,
- parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, ifNoneMatch, parameters, accept, context);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters,
- String ifMatch, String ifNoneMatch) {
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters,
- String ifMatch, String ifNoneMatch, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class, context);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverDomainListInner> beginCreateOrUpdate(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverDomainListInner> beginCreateOrUpdate(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListInner parameters,
- String ifMatch, String ifNoneMatch, Context context) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch,
- context)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch) {
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch,
- Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch,
- context).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverDomainListInner createOrUpdate(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return createOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch)
- .block();
- }
-
- /**
- * Creates or updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverDomainListInner createOrUpdate(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListInner parameters, String ifMatch, String ifNoneMatch, Context context) {
- return createOrUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, ifNoneMatch,
- context).block();
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListPatch parameters, String ifMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, DnsResolverDomainListPatch parameters, String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, parameters, accept, context);
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListPatch parameters,
- String ifMatch) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListPatch parameters) {
- final String ifMatch = null;
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverDomainListInner> beginUpdateAsync(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListPatch parameters,
- String ifMatch, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverDomainListInner.class, DnsResolverDomainListInner.class, context);
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverDomainListInner>
- beginUpdate(String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListPatch parameters) {
- final String ifMatch = null;
- return this.beginUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch).getSyncPoller();
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverDomainListInner> beginUpdate(
- String resourceGroupName, String dnsResolverDomainListName, DnsResolverDomainListPatch parameters,
- String ifMatch, Context context) {
- return this.beginUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters, String ifMatch) {
- return beginUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters) {
- final String ifMatch = null;
- return beginUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters, String ifMatch, Context context) {
- return beginUpdateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverDomainListInner update(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters) {
- final String ifMatch = null;
- return updateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch).block();
- }
-
- /**
- * Updates a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverDomainListInner update(String resourceGroupName, String dnsResolverDomainListName,
- DnsResolverDomainListPatch parameters, String ifMatch, Context context) {
- return updateAsync(resourceGroupName, dnsResolverDomainListName, parameters, ifMatch, context).block();
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, String ifMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverDomainListName, this.client.getApiVersion(), ifMatch, accept, context);
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String dnsResolverDomainListName, String ifMatch) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverDomainListName, ifMatch);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String dnsResolverDomainListName) {
- final String ifMatch = null;
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverDomainListName, ifMatch);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String dnsResolverDomainListName, String ifMatch, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverDomainListName, ifMatch, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverDomainListName) {
- final String ifMatch = null;
- return this.beginDeleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch).getSyncPoller();
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String dnsResolverDomainListName,
- String ifMatch, Context context) {
- return this.beginDeleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch, context).getSyncPoller();
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String dnsResolverDomainListName, String ifMatch) {
- return beginDeleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String dnsResolverDomainListName) {
- final String ifMatch = null;
- return beginDeleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String dnsResolverDomainListName, String ifMatch,
- Context context) {
- return beginDeleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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)
- public void delete(String resourceGroupName, String dnsResolverDomainListName) {
- final String ifMatch = null;
- deleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch).block();
- }
-
- /**
- * Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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)
- public void delete(String resourceGroupName, String dnsResolverDomainListName, String ifMatch, Context context) {
- deleteAsync(resourceGroupName, dnsResolverDomainListName, ifMatch, context).block();
- }
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties of a DNS resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsResolverDomainListName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties of a DNS resolver domain list along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String dnsResolverDomainListName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverDomainListName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsResolverDomainListName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverDomainListName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties of a DNS resolver domain list on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getByResourceGroupAsync(String resourceGroupName,
- String dnsResolverDomainListName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, dnsResolverDomainListName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties of a DNS resolver domain list along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsResolverDomainListName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, dnsResolverDomainListName, context).block();
- }
-
- /**
- * Gets properties of a DNS resolver domain list.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverDomainListName The name of the DNS resolver domain list.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties of a DNS resolver domain list.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverDomainListInner getByResourceGroup(String resourceGroupName, String dnsResolverDomainListName) {
- return getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, Context.NONE).getValue();
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- Integer top) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), top, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), top, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- final Integer top = null;
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top,
- Context context) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, context),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- final Integer top = null;
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top));
- }
-
- /**
- * Lists DNS resolver domain lists within a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
- Context context) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, context));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(Integer top) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- this.client.getApiVersion(), top, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), top, accept,
- context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(Integer top) {
- return new PagedFlux<>(() -> listSinglePageAsync(top), nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- final Integer top = null;
- return new PagedFlux<>(() -> listSinglePageAsync(top), nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(Integer top, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(top, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- final Integer top = null;
- return new PagedIterable<>(listAsync(top));
- }
-
- /**
- * Lists DNS resolver domain lists in all resource groups of a subscription.
- *
- * @param top The maximum number of results to return. If not specified, returns up to 100 results.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(Integer top, Context context) {
- return new PagedIterable<>(listAsync(top, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 an enumeration operation on DNS resolver domain lists along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsImpl.java
deleted file mode 100644
index 65fc03af4614..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverDomainListsImpl.java
+++ /dev/null
@@ -1,151 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverDomainListsClient;
-import com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverDomainListInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainList;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainLists;
-
-public final class DnsResolverDomainListsImpl implements DnsResolverDomainLists {
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverDomainListsImpl.class);
-
- private final DnsResolverDomainListsClient innerClient;
-
- private final com.azure.resourcemanager.dnsresolver.DnsResolverManager serviceManager;
-
- public DnsResolverDomainListsImpl(DnsResolverDomainListsClient innerClient,
- com.azure.resourcemanager.dnsresolver.DnsResolverManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public void delete(String resourceGroupName, String dnsResolverDomainListName) {
- this.serviceClient().delete(resourceGroupName, dnsResolverDomainListName);
- }
-
- public void delete(String resourceGroupName, String dnsResolverDomainListName, String ifMatch, Context context) {
- this.serviceClient().delete(resourceGroupName, dnsResolverDomainListName, ifMatch, context);
- }
-
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsResolverDomainListName, Context context) {
- Response inner = this.serviceClient()
- .getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new DnsResolverDomainListImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public DnsResolverDomainList getByResourceGroup(String resourceGroupName, String dnsResolverDomainListName) {
- DnsResolverDomainListInner inner
- = this.serviceClient().getByResourceGroup(resourceGroupName, dnsResolverDomainListName);
- if (inner != null) {
- return new DnsResolverDomainListImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new DnsResolverDomainListImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
- Context context) {
- PagedIterable inner
- = this.serviceClient().listByResourceGroup(resourceGroupName, top, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new DnsResolverDomainListImpl(inner1, this.manager()));
- }
-
- public PagedIterable list() {
- PagedIterable inner = this.serviceClient().list();
- return ResourceManagerUtils.mapPage(inner, inner1 -> new DnsResolverDomainListImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(Integer top, Context context) {
- PagedIterable inner = this.serviceClient().list(top, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new DnsResolverDomainListImpl(inner1, this.manager()));
- }
-
- public DnsResolverDomainList getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String dnsResolverDomainListName = ResourceManagerUtils.getValueFromIdByName(id, "dnsResolverDomainLists");
- if (dnsResolverDomainListName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'dnsResolverDomainLists'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, Context.NONE)
- .getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String dnsResolverDomainListName = ResourceManagerUtils.getValueFromIdByName(id, "dnsResolverDomainLists");
- if (dnsResolverDomainListName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'dnsResolverDomainLists'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, dnsResolverDomainListName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String dnsResolverDomainListName = ResourceManagerUtils.getValueFromIdByName(id, "dnsResolverDomainLists");
- if (dnsResolverDomainListName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'dnsResolverDomainLists'.", id)));
- }
- String localIfMatch = null;
- this.delete(resourceGroupName, dnsResolverDomainListName, localIfMatch, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, String ifMatch, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String dnsResolverDomainListName = ResourceManagerUtils.getValueFromIdByName(id, "dnsResolverDomainLists");
- if (dnsResolverDomainListName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'dnsResolverDomainLists'.", id)));
- }
- this.delete(resourceGroupName, dnsResolverDomainListName, ifMatch, context);
- }
-
- private DnsResolverDomainListsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.dnsresolver.DnsResolverManager manager() {
- return this.serviceManager;
- }
-
- public DnsResolverDomainListImpl define(String name) {
- return new DnsResolverDomainListImpl(name, this.manager());
- }
-}
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientBuilder.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientBuilder.java
index fa02eec4c469..a2b124e24e79 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientBuilder.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientBuilder.java
@@ -20,12 +20,12 @@
@ServiceClientBuilder(serviceClients = { DnsResolverManagementClientImpl.class })
public final class DnsResolverManagementClientBuilder {
/*
- * The ID of the target subscription. The value must be an UUID.
+ * The ID of the target subscription.
*/
private String subscriptionId;
/**
- * Sets The ID of the target subscription. The value must be an UUID.
+ * Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
* @return the DnsResolverManagementClientBuilder.
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientImpl.java
index 22322499d9aa..b8f6ad4e772c 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientImpl.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverManagementClientImpl.java
@@ -24,12 +24,8 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.dnsresolver.fluent.DnsForwardingRulesetsClient;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverDomainListsClient;
import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverManagementClient;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverPoliciesClient;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverPolicyVirtualNetworkLinksClient;
import com.azure.resourcemanager.dnsresolver.fluent.DnsResolversClient;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsSecurityRulesClient;
import com.azure.resourcemanager.dnsresolver.fluent.ForwardingRulesClient;
import com.azure.resourcemanager.dnsresolver.fluent.InboundEndpointsClient;
import com.azure.resourcemanager.dnsresolver.fluent.OutboundEndpointsClient;
@@ -49,12 +45,12 @@
@ServiceClient(builder = DnsResolverManagementClientBuilder.class)
public final class DnsResolverManagementClientImpl implements DnsResolverManagementClient {
/**
- * The ID of the target subscription. The value must be an UUID.
+ * The ID of the target subscription.
*/
private final String subscriptionId;
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -216,62 +212,6 @@ public VirtualNetworkLinksClient getVirtualNetworkLinks() {
return this.virtualNetworkLinks;
}
- /**
- * The DnsResolverPoliciesClient object to access its operations.
- */
- private final DnsResolverPoliciesClient dnsResolverPolicies;
-
- /**
- * Gets the DnsResolverPoliciesClient object to access its operations.
- *
- * @return the DnsResolverPoliciesClient object.
- */
- public DnsResolverPoliciesClient getDnsResolverPolicies() {
- return this.dnsResolverPolicies;
- }
-
- /**
- * The DnsSecurityRulesClient object to access its operations.
- */
- private final DnsSecurityRulesClient dnsSecurityRules;
-
- /**
- * Gets the DnsSecurityRulesClient object to access its operations.
- *
- * @return the DnsSecurityRulesClient object.
- */
- public DnsSecurityRulesClient getDnsSecurityRules() {
- return this.dnsSecurityRules;
- }
-
- /**
- * The DnsResolverPolicyVirtualNetworkLinksClient object to access its operations.
- */
- private final DnsResolverPolicyVirtualNetworkLinksClient dnsResolverPolicyVirtualNetworkLinks;
-
- /**
- * Gets the DnsResolverPolicyVirtualNetworkLinksClient object to access its operations.
- *
- * @return the DnsResolverPolicyVirtualNetworkLinksClient object.
- */
- public DnsResolverPolicyVirtualNetworkLinksClient getDnsResolverPolicyVirtualNetworkLinks() {
- return this.dnsResolverPolicyVirtualNetworkLinks;
- }
-
- /**
- * The DnsResolverDomainListsClient object to access its operations.
- */
- private final DnsResolverDomainListsClient dnsResolverDomainLists;
-
- /**
- * Gets the DnsResolverDomainListsClient object to access its operations.
- *
- * @return the DnsResolverDomainListsClient object.
- */
- public DnsResolverDomainListsClient getDnsResolverDomainLists() {
- return this.dnsResolverDomainLists;
- }
-
/**
* Initializes an instance of DnsResolverManagementClient client.
*
@@ -279,7 +219,7 @@ public DnsResolverDomainListsClient getDnsResolverDomainLists() {
* @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 The ID of the target subscription. The value must be an UUID.
+ * @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
DnsResolverManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
@@ -289,17 +229,13 @@ public DnsResolverDomainListsClient getDnsResolverDomainLists() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-07-01-preview";
+ this.apiVersion = "2022-07-01";
this.dnsResolvers = new DnsResolversClientImpl(this);
this.inboundEndpoints = new InboundEndpointsClientImpl(this);
this.outboundEndpoints = new OutboundEndpointsClientImpl(this);
this.dnsForwardingRulesets = new DnsForwardingRulesetsClientImpl(this);
this.forwardingRules = new ForwardingRulesClientImpl(this);
this.virtualNetworkLinks = new VirtualNetworkLinksClientImpl(this);
- this.dnsResolverPolicies = new DnsResolverPoliciesClientImpl(this);
- this.dnsSecurityRules = new DnsSecurityRulesClientImpl(this);
- this.dnsResolverPolicyVirtualNetworkLinks = new DnsResolverPolicyVirtualNetworkLinksClientImpl(this);
- this.dnsResolverDomainLists = new DnsResolverDomainListsClientImpl(this);
}
/**
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverPoliciesClientImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverPoliciesClientImpl.java
deleted file mode 100644
index b632112473ac..000000000000
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsResolverPoliciesClientImpl.java
+++ /dev/null
@@ -1,1786 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.dnsresolver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.SubResource;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.dnsresolver.fluent.DnsResolverPoliciesClient;
-import com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverPolicyInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyListResult;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyPatch;
-import com.azure.resourcemanager.dnsresolver.models.SubResourceListResult;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in DnsResolverPoliciesClient.
- */
-public final class DnsResolverPoliciesClientImpl implements DnsResolverPoliciesClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final DnsResolverPoliciesService service;
-
- /**
- * The service client containing this operation class.
- */
- private final DnsResolverManagementClientImpl client;
-
- /**
- * Initializes an instance of DnsResolverPoliciesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- DnsResolverPoliciesClientImpl(DnsResolverManagementClientImpl client) {
- this.service = RestProxy.create(DnsResolverPoliciesService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for DnsResolverManagementClientDnsResolverPolicies to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "DnsResolverManagemen")
- public interface DnsResolverPoliciesService {
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverPolicyName") String dnsResolverPolicyName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("If-None-Match") String ifNoneMatch,
- @BodyParam("application/json") DnsResolverPolicyInner parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverPolicyName") String dnsResolverPolicyName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @BodyParam("application/json") DnsResolverPolicyPatch parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverPolicyName") String dnsResolverPolicyName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsResolverPolicyName") String dnsResolverPolicyName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByVirtualNetwork(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByVirtualNetworkNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, ifNoneMatch, parameters,
- accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, ifNoneMatch, parameters, accept, context);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch,
- String ifNoneMatch) {
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch,
- String ifNoneMatch, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
- dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class, context);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverPolicyInner>
- beginCreateOrUpdate(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return this.beginCreateOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverPolicyInner> beginCreateOrUpdate(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyInner parameters, String ifMatch,
- String ifNoneMatch, Context context) {
- return this
- .beginCreateOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch,
- context)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch) {
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch,
- context).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters) {
- final String ifMatch = null;
- final String ifNoneMatch = null;
- return createOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch).block();
- }
-
- /**
- * Creates or updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new resource to be created, but to prevent updating an existing
- * resource. Other values will be ignored.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverPolicyInner createOrUpdate(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyInner parameters, String ifMatch, String ifNoneMatch, Context context) {
- return createOrUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, ifNoneMatch, context)
- .block();
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, parameters, accept, context);
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner> beginUpdateAsync(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner>
- beginUpdateAsync(String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters) {
- final String ifMatch = null;
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DnsResolverPolicyInner> beginUpdateAsync(
- String resourceGroupName, String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DnsResolverPolicyInner.class, DnsResolverPolicyInner.class, context);
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverPolicyInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters) {
- final String ifMatch = null;
- return this.beginUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch).getSyncPoller();
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link SyncPoller} for polling of describes a DNS resolver policy.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DnsResolverPolicyInner> beginUpdate(String resourceGroupName,
- String dnsResolverPolicyName, DnsResolverPolicyPatch parameters, String ifMatch, Context context) {
- return this.beginUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters, String ifMatch) {
- return beginUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters) {
- final String ifMatch = null;
- return beginUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters, String ifMatch, Context context) {
- return beginUpdateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters) {
- final String ifMatch = null;
- return updateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch).block();
- }
-
- /**
- * Updates a DNS resolver policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param parameters Parameters supplied to the Update operation.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 resolver policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsResolverPolicyInner update(String resourceGroupName, String dnsResolverPolicyName,
- DnsResolverPolicyPatch parameters, String ifMatch, Context context) {
- return updateAsync(resourceGroupName, dnsResolverPolicyName, parameters, ifMatch, context).block();
- }
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, String ifMatch) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dnsResolverPolicyName, String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsResolverPolicyName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dnsResolverPolicyName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsResolverPolicyName, this.client.getApiVersion(), ifMatch, accept, context);
- }
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dnsResolverPolicyName,
- String ifMatch) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverPolicyName, ifMatch);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String dnsResolverPolicyName) {
- final String ifMatch = null;
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverPolicyName, ifMatch);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Deletes a DNS resolver policy. WARNING: This operation cannot be undone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverPolicyName The name of the DNS resolver policy.
- * @param ifMatch ETag of the resource. Omit this value to always overwrite the current resource. Specify the
- * last-seen ETag value to prevent accidentally overwriting any concurrent changes.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dnsResolverPolicyName,
- String ifMatch, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dnsResolverPolicyName, ifMatch, context);
- return this.client.