diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
index cc29420bbb37..4fb46f871b93 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/CHANGELOG.md
@@ -1,14 +1,143 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.2.0-beta.1 (2025-10-07)
-### Features Added
+- Azure Resource Manager Dns Resolver client library for Java. This package contains Microsoft Azure SDK for Dns Resolver Management SDK. The DNS Resolver Management Client. Package api-version 2025-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.DnsResolverPolicyListResult` was removed
-### Other Changes
+#### `models.VirtualNetworkLinkListResult` was removed
+
+#### `models.VirtualNetworkDnsForwardingRulesetListResult` was removed
+
+#### `models.OutboundEndpointListResult` was removed
+
+#### `models.DnsResolverDomainListResult` was removed
+
+#### `models.DnsSecurityRuleListResult` was removed
+
+#### `models.SubResourceListResult` was removed
+
+#### `models.ForwardingRuleListResult` was removed
+
+#### `models.DnsForwardingRulesetListResult` was removed
+
+#### `models.DnsResolverPolicyVirtualNetworkLinkListResult` was removed
+
+#### `models.DnsResolverListResult` was removed
+
+#### `models.InboundEndpointListResult` was removed
+
+#### `models.VirtualNetworkLinkPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsSecurityRuleAction` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolvers` was modified
+
+* `delete(java.lang.String,java.lang.String)` was removed
+
+#### `models.OutboundEndpointPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsForwardingRulesets` was modified
+
+* `delete(java.lang.String,java.lang.String)` was removed
+
+#### `models.DnsResolverPolicies` was modified
+
+* `delete(java.lang.String,java.lang.String)` was removed
+
+#### `models.TargetDnsServer` was modified
+
+* `validate()` was removed
+
+#### `models.IpConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.DnsSecurityRulePatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolverDomainLists` was modified
+
+* `delete(java.lang.String,java.lang.String)` was removed
+
+#### `models.DnsResolverDomainListPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolverPolicyPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsForwardingRulesetPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolverDomainListBulk` was modified
+
+* `validate()` was removed
+
+#### `models.InboundEndpointPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolverPolicyVirtualNetworkLinkPatch` was modified
+
+* `validate()` was removed
+
+#### `models.DnsResolverPatch` was modified
+
+* `validate()` was removed
+
+#### `models.ForwardingRulePatch` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.ManagedDomainList` was added
+
+#### `models.DnsSecurityRule$Definition` was modified
+
+* `withManagedDomainLists(java.util.List)` was added
+
+#### `models.DnsResolvers` was modified
+
+* `deleteByResourceGroup(java.lang.String,java.lang.String)` was added
+
+#### `models.DnsForwardingRulesets` was modified
+
+* `deleteByResourceGroup(java.lang.String,java.lang.String)` was added
+
+#### `models.DnsResolverPolicies` was modified
+
+* `deleteByResourceGroup(java.lang.String,java.lang.String)` was added
+
+#### `models.DnsSecurityRule$Update` was modified
+
+* `withManagedDomainLists(java.util.List)` was added
+
+#### `models.DnsSecurityRule` was modified
+
+* `managedDomainLists()` was added
+
+#### `models.DnsSecurityRulePatch` was modified
+
+* `managedDomainLists()` was added
+* `withManagedDomainLists(java.util.List)` was added
+
+#### `models.DnsResolverDomainLists` was modified
+
+* `deleteByResourceGroup(java.lang.String,java.lang.String)` was added
## 1.1.0 (2025-06-16)
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
index 1a323a39e49b..250e1979316e 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager DnsResolver client library for Java
+# Azure Resource Manager Dns Resolver client library for Java
-Azure Resource Manager DnsResolver client library for Java.
+Azure Resource Manager Dns Resolver client library for Java.
-This package contains Microsoft Azure SDK for DnsResolver Management SDK. DNS Resolver Client. Package tag package-2025-05. 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 Dns Resolver Management SDK. The DNS Resolver Management Client. Package api-version 2025-10-01-preview. 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.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
index c31241f47d54..94aba172f8ce 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/SAMPLE.md
@@ -91,24 +91,46 @@
### DnsForwardingRulesets_CreateOrUpdate
```java
+import com.azure.core.management.SubResource;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for InboundEndpoints Get.
+ * Samples for DnsForwardingRulesets CreateOrUpdate.
*/
-public final class InboundEndpointsGetSamples {
+public final class DnsForwardingRulesetsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/InboundEndpoint_Get.json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_Put.json
*/
/**
- * Sample code: Retrieve inbound endpoint for DNS resolver.
+ * Sample code: Upsert DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- retrieveInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.inboundEndpoints()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint",
- com.azure.core.util.Context.NONE);
+ 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;
}
}
```
@@ -121,8 +143,7 @@ public final class InboundEndpointsGetSamples {
*/
public final class DnsForwardingRulesetsDeleteSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsForwardingRuleset_Delete.json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_Delete.json
*/
/**
* Sample code: Delete DNS forwarding ruleset.
@@ -140,23 +161,20 @@ public final class DnsForwardingRulesetsDeleteSamples {
```java
/**
- * Samples for VirtualNetworkLinks Delete.
+ * Samples for DnsForwardingRulesets GetByResourceGroup.
*/
-public final class VirtualNetworkLinksDeleteSamples {
+public final class DnsForwardingRulesetsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/VirtualNetworkLink_Delete
- * .json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_Get.json
*/
/**
- * Sample code: Delete virtual network link to a DNS forwarding ruleset.
+ * Sample code: Retrieve DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void deleteVirtualNetworkLinkToADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.virtualNetworkLinks()
- .delete("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink", null,
+ public static void retrieveDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
com.azure.core.util.Context.NONE);
}
}
@@ -166,23 +184,20 @@ public final class VirtualNetworkLinksDeleteSamples {
```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/stable/2025-05-01/examples/
- * DnsResolverPolicyVirtualNetworkLink_Delete.json
+ * x-ms-original-file: 2025-10-01-preview/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);
}
}
```
@@ -191,22 +206,21 @@ public final class DnsResolverPolicyVirtualNetworkLinksDeleteSamples {
```java
/**
- * Samples for InboundEndpoints List.
+ * Samples for DnsForwardingRulesets ListByResourceGroup.
*/
-public final class InboundEndpointsListSamples {
+public final class DnsForwardingRulesetsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/InboundEndpoint_List.json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_ListByResourceGroup.json
*/
/**
- * Sample code: List inbound endpoints by DNS resolver.
+ * Sample code: List DNS forwarding rulesets by resource group.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- listInboundEndpointsByDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.inboundEndpoints()
- .list("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
+ listDNSForwardingRulesetsByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -215,23 +229,21 @@ public final class InboundEndpointsListSamples {
```java
/**
- * Samples for VirtualNetworkLinks Get.
+ * Samples for DnsForwardingRulesets ListByVirtualNetwork.
*/
-public final class VirtualNetworkLinksGetSamples {
+public final class DnsForwardingRulesetsListByVirtualNetworkSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/VirtualNetworkLink_Get.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_ListByVirtualNetwork.json
*/
/**
- * Sample code: Retrieve virtual network link to a DNS forwarding ruleset.
+ * Sample code: List DNS forwarding rulesets by virtual network.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveVirtualNetworkLinkToADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.virtualNetworkLinks()
- .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink",
+ public static void
+ listDNSForwardingRulesetsByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsForwardingRulesets()
+ .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
com.azure.core.util.Context.NONE);
}
}
@@ -240,51 +252,25 @@ public final class VirtualNetworkLinksGetSamples {
### DnsForwardingRulesets_Update
```java
-/**
- * Samples for DnsForwardingRulesets List.
- */
-public final class DnsForwardingRulesetsListSamples {
- /*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/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);
- }
-}
-```
-
-### DnsResolverDomainLists_Bulk
-
-```java
-import com.azure.resourcemanager.dnsresolver.models.OutboundEndpoint;
+import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRuleset;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for OutboundEndpoints Update.
+ * Samples for DnsForwardingRulesets Update.
*/
-public final class OutboundEndpointsUpdateSamples {
+public final class DnsForwardingRulesetsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/OutboundEndpoint_Patch.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsForwardingRuleset_Patch.json
*/
/**
- * Sample code: Update outbound endpoint for DNS resolver.
+ * Sample code: Update DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- updateOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- OutboundEndpoint resource = manager.outboundEndpoints()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleOutboundEndpoint",
+ 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();
@@ -304,127 +290,96 @@ public final class OutboundEndpointsUpdateSamples {
}
```
-### DnsResolverDomainLists_CreateOrUpdate
+### DnsResolverDomainLists_Bulk
```java
+import com.azure.resourcemanager.dnsresolver.models.Action;
+import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListBulk;
+
/**
- * Samples for InboundEndpoints Delete.
+ * Samples for DnsResolverDomainLists Bulk.
*/
-public final class InboundEndpointsDeleteSamples {
+public final class DnsResolverDomainListsBulkSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/InboundEndpoint_Delete.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_BulkUpload.json
*/
/**
- * Sample code: Delete inbound endpoint for DNS resolver.
+ * Sample code: Upload DNS resolver domain list domains.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- deleteInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.inboundEndpoints()
- .delete("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint", null,
- com.azure.core.util.Context.NONE);
+ uploadDNSResolverDomainListDomains(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .bulk("sampleResourceGroup", "sampleDnsResolverDomainList", new DnsResolverDomainListBulk().withStorageUrl(
+ "https://sampleStorageAccount.blob.core.windows.net/sample-container/sampleBlob.txt?sv=2022-11-02&sr=b&sig=39Up9jzHkxhUIhFEjEh9594DJxe7w6cIRCgOV6ICGS0%3A377&sp=rcw")
+ .withAction(Action.UPLOAD), null, null, com.azure.core.util.Context.NONE);
}
-}
-```
-### DnsResolverDomainLists_Delete
-
-```java
-/**
- * Samples for DnsResolvers List.
- */
-public final class DnsResolversListSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolver_ListBySubscription.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_BulkDownload.json
*/
/**
- * Sample code: List DNS resolvers by subscription.
+ * Sample code: Download DNS resolver domain list domains.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- listDNSResolversBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers().list(null, com.azure.core.util.Context.NONE);
+ downloadDNSResolverDomainListDomains(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .bulk("sampleResourceGroup", "sampleDnsResolverDomainList", new DnsResolverDomainListBulk().withStorageUrl(
+ "https://sampleStorageAccount.blob.core.windows.net/sample-container/sampleBlob.txt?sv=2022-11-02&sr=b&sig=39Up9jzHkxhUIhFEjEh9594DJxe7w6cIRCgOV6ICGS0%3A377&sp=rcw")
+ .withAction(Action.DOWNLOAD), null, null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverDomainLists_GetByResourceGroup
+### DnsResolverDomainLists_CreateOrUpdate
```java
-import com.azure.core.management.SubResource;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolvers CreateOrUpdate.
+ * Samples for DnsResolverDomainLists CreateOrUpdate.
*/
-public final class DnsResolversCreateOrUpdateSamples {
+public final class DnsResolverDomainListsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolver_Put.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_BulkDomains_Put.json
*/
/**
- * Sample code: Upsert DNS resolver.
+ * Sample code: Upsert DNS resolver domain list with bulk number of domains.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void upsertDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers()
- .define("sampleDnsResolver")
+ public static void upsertDNSResolverDomainListWithBulkNumberOfDomains(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .define("sampleDnsResolverDomainList")
.withRegion("westus2")
.withExistingResourceGroup("sampleResourceGroup")
- .withVirtualNetwork(new SubResource().withId(
- "/subscriptions/cbb1387e-4b03-44f2-ad41-58d4677b9873/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
.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_List
-
-```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicy;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for DnsResolverPolicies Update.
- */
-public final class DnsResolverPoliciesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverPolicy_Patch.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_Put.json
*/
/**
- * Sample code: Update DNS resolver policy.
+ * Sample code: Upsert DNS resolver domain list with less than 1000 domains.
*
* @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 upsertDNSResolverDomainListWithLessThan1000Domains(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .define("sampleDnsResolverDomainList")
+ .withRegion("westus2")
+ .withExistingResourceGroup("sampleResourceGroup")
+ .withTags(mapOf("key1", "fakeTokenPlaceholder"))
+ .withDomains(Arrays.asList("contoso.com"))
+ .create();
}
// Use "Map.of" if available
@@ -441,202 +396,140 @@ public final class DnsResolverPoliciesUpdateSamples {
}
```
-### DnsResolverDomainLists_ListByResourceGroup
+### DnsResolverDomainLists_Delete
```java
/**
- * Samples for ForwardingRules Get.
+ * Samples for DnsResolverDomainLists Delete.
*/
-public final class ForwardingRulesGetSamples {
+public final class DnsResolverDomainListsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/ForwardingRule_Get.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_Delete.json
*/
/**
- * Sample code: Retrieve forwarding rule in a DNS forwarding ruleset.
+ * Sample code: Delete DNS resolver domain list.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveForwardingRuleInADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.forwardingRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule",
- com.azure.core.util.Context.NONE);
+ public static void deleteDNSResolverDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .delete("sampleResourceGroup", "sampleDnsResolverDomainList", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverDomainLists_Update
+### DnsResolverDomainLists_GetByResourceGroup
```java
-import com.azure.resourcemanager.dnsresolver.models.Action;
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainListBulk;
-
/**
- * Samples for DnsResolverDomainLists Bulk.
+ * Samples for DnsResolverDomainLists GetByResourceGroup.
*/
-public final class DnsResolverDomainListsBulkSamples {
+public final class DnsResolverDomainListsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_BulkUpload.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_BulkDomains_Get.json
*/
/**
- * Sample code: Upload DNS resolver domain list domains.
+ * Sample code: Retrieve DNS resolver domain list with bulk number of domains.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- uploadDNSResolverDomainListDomains(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ public static void retrieveDNSResolverDomainListWithBulkNumberOfDomains(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
manager.dnsResolverDomainLists()
- .bulk("sampleResourceGroup", "sampleDnsResolverDomainList", new DnsResolverDomainListBulk().withStorageUrl(
- "https://sampleStorageAccount.blob.core.windows.net/sample-container/sampleBlob.txt?sv=2022-11-02&sr=b&sig=39Up9jzHkxhUIhFEjEh9594DJxe7w6cIRCgOV6ICGS0%3A377&sp=rcw")
- .withAction(Action.UPLOAD), null, null, com.azure.core.util.Context.NONE);
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_BulkDownload.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_Get.json
*/
/**
- * Sample code: Download DNS resolver domain list domains.
+ * Sample code: Retrieve DNS resolver domain list with less than 1000 domains.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- downloadDNSResolverDomainListDomains(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ public static void retrieveDNSResolverDomainListWithLessThan1000Domains(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
manager.dnsResolverDomainLists()
- .bulk("sampleResourceGroup", "sampleDnsResolverDomainList", new DnsResolverDomainListBulk().withStorageUrl(
- "https://sampleStorageAccount.blob.core.windows.net/sample-container/sampleBlob.txt?sv=2022-11-02&sr=b&sig=39Up9jzHkxhUIhFEjEh9594DJxe7w6cIRCgOV6ICGS0%3A377&sp=rcw")
- .withAction(Action.DOWNLOAD), null, null, com.azure.core.util.Context.NONE);
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicies_CreateOrUpdate
+### DnsResolverDomainLists_List
```java
-import com.azure.core.management.SubResource;
-import com.azure.resourcemanager.dnsresolver.models.ActionType;
-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.
+ * Samples for DnsResolverDomainLists List.
*/
-public final class DnsSecurityRulesCreateOrUpdateSamples {
+public final class DnsResolverDomainListsListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsSecurityRule_Put.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_ListBySubscription.json
*/
/**
- * Sample code: Upsert DNS security rule.
+ * Sample code: List DNS resolver domain lists by subscription.
*
* @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))
- .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;
+ public static void
+ listDNSResolverDomainListsBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicies_Delete
+### DnsResolverDomainLists_ListByResourceGroup
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyVirtualNetworkLink;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks Update.
+ * Samples for DnsResolverDomainLists ListByResourceGroup.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksUpdateSamples {
+public final class DnsResolverDomainListsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicyVirtualNetworkLink_Patch.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_ListByResourceGroup.json
*/
/**
- * Sample code: Update DNS resolver policy virtual network link.
+ * Sample code: List DNS resolver domain lists by resource group.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- updateDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsResolverPolicyVirtualNetworkLink resource = manager.dnsResolverPolicyVirtualNetworkLinks()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink",
- 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;
+ listDNSResolverDomainListsByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverDomainLists()
+ .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicies_GetByResourceGroup
+### DnsResolverDomainLists_Update
```java
-import com.azure.resourcemanager.dnsresolver.models.ForwardingRule;
-import com.azure.resourcemanager.dnsresolver.models.ForwardingRuleState;
+import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainList;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for ForwardingRules Update.
+ * Samples for DnsResolverDomainLists Update.
*/
-public final class ForwardingRulesUpdateSamples {
+public final class DnsResolverDomainListsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/ForwardingRule_Patch.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverDomainList_Patch.json
*/
/**
- * Sample code: Update forwarding rule in a DNS forwarding ruleset.
+ * Sample code: Update DNS resolver domain list.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- updateForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- ForwardingRule resource = manager.forwardingRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule",
+ 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()
- .withMetadata(mapOf("additionalProp2", "value2"))
- .withForwardingRuleState(ForwardingRuleState.DISABLED)
+ .withTags(mapOf("key1", "fakeTokenPlaceholder"))
+ .withDomains(Arrays.asList("contoso.com"))
.apply();
}
@@ -654,34 +547,31 @@ public final class ForwardingRulesUpdateSamples {
}
```
-### DnsResolverPolicies_List
+### DnsResolverPolicies_CreateOrUpdate
```java
-import com.azure.resourcemanager.dnsresolver.models.VirtualNetworkLink;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for VirtualNetworkLinks Update.
+ * Samples for DnsResolverPolicies CreateOrUpdate.
*/
-public final class VirtualNetworkLinksUpdateSamples {
+public final class DnsResolverPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/VirtualNetworkLink_Patch.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_Put.json
*/
/**
- * Sample code: Update virtual network link to a DNS forwarding ruleset.
+ * Sample code: Upsert DNS resolver policy.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void updateVirtualNetworkLinkToADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- VirtualNetworkLink resource = manager.virtualNetworkLinks()
- .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withMetadata(mapOf("additionalProp1", "value1")).apply();
+ 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
@@ -698,178 +588,144 @@ public final class VirtualNetworkLinksUpdateSamples {
}
```
-### DnsResolverPolicies_ListByResourceGroup
+### DnsResolverPolicies_Delete
```java
/**
- * Samples for DnsResolvers Delete.
+ * Samples for DnsResolverPolicies Delete.
*/
-public final class DnsResolversDeleteSamples {
+public final class DnsResolverPoliciesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolver_Delete.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_Delete.json
*/
/**
- * Sample code: Delete DNS resolver.
+ * Sample code: Delete DNS resolver policy.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void deleteDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers()
- .delete("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
+ public static void deleteDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicies()
+ .delete("sampleResourceGroup", "sampleDnsResolverPolicy", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicies_ListByVirtualNetwork
+### DnsResolverPolicies_GetByResourceGroup
```java
/**
- * Samples for DnsForwardingRulesets GetByResourceGroup.
+ * Samples for DnsResolverPolicies GetByResourceGroup.
*/
-public final class DnsForwardingRulesetsGetByResourceGroupSamples {
+public final class DnsResolverPoliciesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsForwardingRuleset_Get.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_Get.json
*/
/**
- * Sample code: Retrieve DNS forwarding ruleset.
+ * Sample code: Retrieve DNS resolver policy.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveDNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset",
+ public static void retrieveDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicies()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy",
com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicies_Update
+### DnsResolverPolicies_List
```java
/**
- * Samples for VirtualNetworkLinks List.
+ * Samples for DnsResolverPolicies List.
*/
-public final class VirtualNetworkLinksListSamples {
+public final class DnsResolverPoliciesListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/VirtualNetworkLink_List.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_ListBySubscription.json
*/
/**
- * Sample code: List virtual network links to a DNS forwarding ruleset.
+ * Sample code: List DNS resolver policies by subscription.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void listVirtualNetworkLinksToADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.virtualNetworkLinks()
- .list("sampleResourceGroup", "sampleDnsForwardingRuleset", null, com.azure.core.util.Context.NONE);
+ public static void
+ listDNSResolverPoliciesBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicies().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_CreateOrUpdate
+### DnsResolverPolicies_ListByResourceGroup
```java
/**
- * Samples for DnsResolvers GetByResourceGroup.
+ * Samples for DnsResolverPolicies ListByResourceGroup.
*/
-public final class DnsResolversGetByResourceGroupSamples {
+public final class DnsResolverPoliciesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolver_Get.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_ListByResourceGroup.json
*/
/**
- * Sample code: Retrieve DNS resolver.
+ * Sample code: List DNS resolver policies by resource group.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolver",
- com.azure.core.util.Context.NONE);
+ public static void
+ listDNSResolverPoliciesByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicies()
+ .listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Delete
+### DnsResolverPolicies_ListByVirtualNetwork
```java
/**
- * Samples for DnsResolverDomainLists GetByResourceGroup.
+ * Samples for DnsResolverPolicies ListByVirtualNetwork.
*/
-public final class DnsResolverDomainListsGetByResourceGroupSamples {
- /*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_BulkDomains_Get.json
- */
- /**
- * Sample code: Retrieve DNS resolver domain list with bulk number of domains.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void retrieveDNSResolverDomainListWithBulkNumberOfDomains(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
- com.azure.core.util.Context.NONE);
- }
-
+public final class DnsResolverPoliciesListByVirtualNetworkSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverDomainList_Get
- * .json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_ListByVirtualNetwork.json
*/
/**
- * Sample code: Retrieve DNS resolver domain list with less than 1000 domains.
+ * Sample code: List DNS resolver policies by virtual network.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveDNSResolverDomainListWithLessThan1000Domains(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverDomainList",
- com.azure.core.util.Context.NONE);
+ public static void
+ listDNSResolverPoliciesByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicies()
+ .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Get
+### DnsResolverPolicies_Update
```java
-import com.azure.core.management.SubResource;
-import java.util.Arrays;
+import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicy;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsForwardingRulesets CreateOrUpdate.
+ * Samples for DnsResolverPolicies Update.
*/
-public final class DnsForwardingRulesetsCreateOrUpdateSamples {
+public final class DnsResolverPoliciesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsForwardingRuleset_Put.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicy_Patch.json
*/
/**
- * Sample code: Upsert DNS forwarding ruleset.
+ * Sample code: Update DNS resolver policy.
*
* @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();
+ 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();
}
// Use "Map.of" if available
@@ -886,38 +742,33 @@ public final class DnsForwardingRulesetsCreateOrUpdateSamples {
}
```
-### DnsResolverPolicyVirtualNetworkLinks_List
+### DnsResolverPolicyVirtualNetworkLinks_CreateOrUpdate
```java
import com.azure.core.management.SubResource;
-import com.azure.resourcemanager.dnsresolver.models.IpAllocationMethod;
-import com.azure.resourcemanager.dnsresolver.models.IpConfiguration;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for InboundEndpoints CreateOrUpdate.
+ * Samples for DnsResolverPolicyVirtualNetworkLinks CreateOrUpdate.
*/
-public final class InboundEndpointsCreateOrUpdateSamples {
+public final class DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/InboundEndpoint_Put.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicyVirtualNetworkLink_Put.json
*/
/**
- * Sample code: Upsert inbound endpoint for DNS resolver.
+ * Sample code: Upsert DNS resolver policy virtual network link.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- upsertInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.inboundEndpoints()
- .define("sampleInboundEndpoint")
+ upsertDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicyVirtualNetworkLinks()
+ .define("sampleVirtualNetworkLink")
.withRegion("westus2")
- .withExistingDnsResolver("sampleResourceGroup", "sampleDnsResolver")
- .withIpConfigurations(Arrays.asList(new IpConfiguration().withSubnet(new SubResource().withId(
- "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork/subnets/sampleSubnet"))
- .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC)))
+ .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();
}
@@ -936,32 +787,31 @@ public final class InboundEndpointsCreateOrUpdateSamples {
}
```
-### DnsResolverPolicyVirtualNetworkLinks_Update
+### DnsResolverPolicyVirtualNetworkLinks_Delete
```java
/**
- * Samples for DnsForwardingRulesets ListByVirtualNetwork.
+ * Samples for DnsResolverPolicyVirtualNetworkLinks Delete.
*/
-public final class DnsForwardingRulesetsListByVirtualNetworkSamples {
+public final class DnsResolverPolicyVirtualNetworkLinksDeleteSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsForwardingRuleset_ListByVirtualNetwork.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicyVirtualNetworkLink_Delete.json
*/
/**
- * Sample code: List DNS forwarding rulesets by virtual network.
+ * Sample code: Delete DNS resolver policy virtual network link.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- listDNSForwardingRulesetsByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsForwardingRulesets()
- .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
+ deleteDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolverPolicyVirtualNetworkLinks()
+ .delete("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink", null,
com.azure.core.util.Context.NONE);
}
}
```
-### DnsResolvers_CreateOrUpdate
+### DnsResolverPolicyVirtualNetworkLinks_Get
```java
/**
@@ -969,8 +819,7 @@ public final class DnsForwardingRulesetsListByVirtualNetworkSamples {
*/
public final class DnsResolverPolicyVirtualNetworkLinksGetSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicyVirtualNetworkLink_Get.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicyVirtualNetworkLink_Get.json
*/
/**
* Sample code: Retrieve DNS resolver policy virtual network link.
@@ -986,39 +835,55 @@ public final class DnsResolverPolicyVirtualNetworkLinksGetSamples {
}
```
-### DnsResolvers_Delete
+### DnsResolverPolicyVirtualNetworkLinks_List
```java
-import com.azure.resourcemanager.dnsresolver.models.ForwardingRuleState;
-import com.azure.resourcemanager.dnsresolver.models.TargetDnsServer;
-import java.util.Arrays;
+/**
+ * Samples for DnsResolverPolicyVirtualNetworkLinks List.
+ */
+public final class DnsResolverPolicyVirtualNetworkLinksListSamples {
+ /*
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicyVirtualNetworkLink_List.json
+ */
+ /**
+ * Sample code: List DNS resolver policy virtual network links by DNS resolver policy.
+ *
+ * @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);
+ }
+}
+```
+
+### DnsResolverPolicyVirtualNetworkLinks_Update
+
+```java
+import com.azure.resourcemanager.dnsresolver.models.DnsResolverPolicyVirtualNetworkLink;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for ForwardingRules CreateOrUpdate.
+ * Samples for DnsResolverPolicyVirtualNetworkLinks Update.
*/
-public final class ForwardingRulesCreateOrUpdateSamples {
+public final class DnsResolverPolicyVirtualNetworkLinksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/ForwardingRule_Put.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolverPolicyVirtualNetworkLink_Patch.json
*/
/**
- * Sample code: Upsert forwarding rule in a DNS forwarding ruleset.
+ * Sample code: Update DNS resolver policy virtual network link.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- upsertForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.forwardingRules()
- .define("sampleForwardingRule")
- .withExistingDnsForwardingRuleset("sampleResourceGroup", "sampleDnsForwardingRuleset")
- .withDomainName("contoso.com.")
- .withTargetDnsServers(Arrays.asList(new TargetDnsServer().withIpAddress("10.0.0.1").withPort(53),
- new TargetDnsServer().withIpAddress("10.0.0.2").withPort(53)))
- .withMetadata(mapOf("additionalProp1", "value1"))
- .withForwardingRuleState(ForwardingRuleState.ENABLED)
- .create();
+ updateDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ DnsResolverPolicyVirtualNetworkLink resource = manager.dnsResolverPolicyVirtualNetworkLinks()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleVirtualNetworkLink",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
}
// Use "Map.of" if available
@@ -1035,7 +900,7 @@ public final class ForwardingRulesCreateOrUpdateSamples {
}
```
-### DnsResolvers_GetByResourceGroup
+### DnsResolvers_CreateOrUpdate
```java
import com.azure.core.management.SubResource;
@@ -1043,26 +908,24 @@ import java.util.HashMap;
import java.util.Map;
/**
- * Samples for OutboundEndpoints CreateOrUpdate.
+ * Samples for DnsResolvers CreateOrUpdate.
*/
-public final class OutboundEndpointsCreateOrUpdateSamples {
+public final class DnsResolversCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/OutboundEndpoint_Put.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_Put.json
*/
/**
- * Sample code: Upsert outbound endpoint for DNS resolver.
+ * Sample code: Upsert DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- upsertOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.outboundEndpoints()
- .define("sampleOutboundEndpoint")
+ public static void upsertDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers()
+ .define("sampleDnsResolver")
.withRegion("westus2")
- .withExistingDnsResolver("sampleResourceGroup", "sampleDnsResolver")
- .withSubnet(new SubResource().withId(
- "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork/subnets/sampleSubnet"))
+ .withExistingResourceGroup("sampleResourceGroup")
+ .withVirtualNetwork(new SubResource().withId(
+ "/subscriptions/cbb1387e-4b03-44f2-ad41-58d4677b9873/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
.withTags(mapOf("key1", "fakeTokenPlaceholder"))
.create();
}
@@ -1081,26 +944,69 @@ public final class OutboundEndpointsCreateOrUpdateSamples {
}
```
+### DnsResolvers_Delete
+
+```java
+/**
+ * Samples for DnsResolvers Delete.
+ */
+public final class DnsResolversDeleteSamples {
+ /*
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_Delete.json
+ */
+ /**
+ * Sample code: Delete DNS resolver.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void deleteDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers()
+ .delete("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DnsResolvers_GetByResourceGroup
+
+```java
+/**
+ * Samples for DnsResolvers GetByResourceGroup.
+ */
+public final class DnsResolversGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_Get.json
+ */
+ /**
+ * Sample code: Retrieve DNS resolver.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void retrieveDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolver",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### DnsResolvers_List
```java
/**
- * Samples for DnsForwardingRulesets ListByResourceGroup.
+ * Samples for DnsResolvers List.
*/
-public final class DnsForwardingRulesetsListByResourceGroupSamples {
+public final class DnsResolversListSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsForwardingRuleset_ListByResourceGroup.json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_ListBySubscription.json
*/
/**
- * Sample code: List DNS forwarding rulesets by resource group.
+ * Sample code: List DNS resolvers by subscription.
*
* @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);
+ listDNSResolversBySubscription(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers().list(null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1108,33 +1014,74 @@ public final class DnsForwardingRulesetsListByResourceGroupSamples {
### DnsResolvers_ListByResourceGroup
```java
-import com.azure.core.management.SubResource;
+/**
+ * Samples for DnsResolvers ListByResourceGroup.
+ */
+public final class DnsResolversListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List DNS resolvers by resource group.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void
+ listDNSResolversByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers().listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DnsResolvers_ListByVirtualNetwork
+
+```java
+/**
+ * Samples for DnsResolvers ListByVirtualNetwork.
+ */
+public final class DnsResolversListByVirtualNetworkSamples {
+ /*
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_ListByVirtualNetwork.json
+ */
+ /**
+ * Sample code: List DNS resolvers by virtual network.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void
+ listDNSResolversByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsResolvers()
+ .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DnsResolvers_Update
+
+```java
+import com.azure.resourcemanager.dnsresolver.models.DnsResolver;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for VirtualNetworkLinks CreateOrUpdate.
+ * Samples for DnsResolvers Update.
*/
-public final class VirtualNetworkLinksCreateOrUpdateSamples {
+public final class DnsResolversUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/VirtualNetworkLink_Put.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsResolver_Patch.json
*/
/**
- * Sample code: Upsert virtual network link to a DNS forwarding ruleset.
+ * Sample code: Update DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void upsertVirtualNetworkLinkToADNSForwardingRuleset(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.virtualNetworkLinks()
- .define("sampleVirtualNetworkLink")
- .withExistingDnsForwardingRuleset("sampleResourceGroup", "sampleDnsForwardingRuleset")
- .withVirtualNetwork(new SubResource().withId(
- "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
- .withMetadata(mapOf("additionalProp1", "value1"))
- .create();
+ public static void updateDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ DnsResolver resource = manager.dnsResolvers()
+ .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolver",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
}
// Use "Map.of" if available
@@ -1151,156 +1098,181 @@ public final class VirtualNetworkLinksCreateOrUpdateSamples {
}
```
-### DnsResolvers_ListByVirtualNetwork
+### DnsSecurityRules_CreateOrUpdate
```java
+import com.azure.core.management.SubResource;
+import com.azure.resourcemanager.dnsresolver.models.ActionType;
+import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction;
+import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
+import com.azure.resourcemanager.dnsresolver.models.ManagedDomainList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for DnsSecurityRules Get.
+ * Samples for DnsSecurityRules CreateOrUpdate.
*/
-public final class DnsSecurityRulesGetSamples {
+public final class DnsSecurityRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsSecurityRule_Get.json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_Put.json
*/
/**
- * Sample code: Retrieve DNS security rule for DNS resolver policy.
+ * Sample code: Upsert DNS security rule.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- retrieveDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ public static void upsertDNSSecurityRule(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
manager.dnsSecurityRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleDnsSecurityRule",
- com.azure.core.util.Context.NONE);
+ .define("sampleDnsSecurityRule")
+ .withRegion("westus2")
+ .withExistingDnsResolverPolicy("sampleResourceGroup", "sampleDnsResolverPolicy")
+ .withPriority(100)
+ .withAction(new DnsSecurityRuleAction().withActionType(ActionType.BLOCK))
+ .withTags(mapOf("key1", "fakeTokenPlaceholder"))
+ .withDnsResolverDomainLists(Arrays.asList(new SubResource().withId(
+ "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolverDomainLists/sampleDnsResolverDomainList")))
+ .withDnsSecurityRuleState(DnsSecurityRuleState.ENABLED)
+ .create();
}
-}
-```
-### DnsResolvers_Update
-
-```java
-/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks List.
- */
-public final class DnsResolverPolicyVirtualNetworkLinksListSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicyVirtualNetworkLink_List.json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_ManagedDomainList_Put.json
*/
/**
- * Sample code: List DNS resolver policy virtual network links by DNS resolver policy.
- *
- * @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);
+ * Sample code: Upsert DNS security rule with managed domain list.
+ *
+ * @param manager Entry point to DnsResolverManager.
+ */
+ public static void
+ upsertDNSSecurityRuleWithManagedDomainList(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsSecurityRules()
+ .define("sampleDnsSecurityRule")
+ .withRegion("westus2")
+ .withExistingDnsResolverPolicy("sampleResourceGroup", "sampleDnsResolverPolicy")
+ .withPriority(100)
+ .withAction(new DnsSecurityRuleAction().withActionType(ActionType.BLOCK))
+ .withTags(mapOf("key1", "fakeTokenPlaceholder"))
+ .withManagedDomainLists(Arrays.asList(ManagedDomainList.AZURE_DNS_THREAT_INTEL))
+ .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_CreateOrUpdate
+### DnsSecurityRules_Delete
```java
/**
- * Samples for DnsResolverPolicies ListByResourceGroup.
+ * Samples for DnsSecurityRules Delete.
*/
-public final class DnsResolverPoliciesListByResourceGroupSamples {
+public final class DnsSecurityRulesDeleteSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicy_ListByResourceGroup.json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_Delete.json
*/
/**
- * Sample code: List DNS resolver policies by resource group.
+ * Sample code: Delete DNS security rule for DNS resolver policy.
*
* @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);
+ deleteDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsSecurityRules()
+ .delete("sampleResourceGroup", "sampleDnsDnsResolverPolicy", "sampleDnsSecurityRule", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### DnsSecurityRules_Delete
+### DnsSecurityRules_Get
```java
/**
- * Samples for ForwardingRules Delete.
+ * Samples for DnsSecurityRules Get.
*/
-public final class ForwardingRulesDeleteSamples {
+public final class DnsSecurityRulesGetSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/ForwardingRule_Delete.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_Get.json
*/
/**
- * Sample code: Delete forwarding rule in a DNS forwarding ruleset.
+ * Sample code: Retrieve DNS security rule for DNS resolver policy.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- deleteForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.forwardingRules()
- .deleteWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule", null,
+ retrieveDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsSecurityRules()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleDnsSecurityRule",
com.azure.core.util.Context.NONE);
}
}
```
-### DnsSecurityRules_Get
+### DnsSecurityRules_List
```java
/**
- * Samples for ForwardingRules List.
+ * Samples for DnsSecurityRules List.
*/
-public final class ForwardingRulesListSamples {
+public final class DnsSecurityRulesListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/ForwardingRule_List.json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_List.json
*/
/**
- * Sample code: List forwarding rules in a DNS forwarding ruleset.
+ * Sample code: List DNS security rules by DNS resolver policy.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- listForwardingRulesInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.forwardingRules()
- .list("sampleResourceGroup", "sampleDnsForwardingRuleset", null, com.azure.core.util.Context.NONE);
+ listDNSSecurityRulesByDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.dnsSecurityRules()
+ .list("sampleResourceGroup", "sampleDnsResolverPolicy", null, com.azure.core.util.Context.NONE);
}
}
```
-### DnsSecurityRules_List
+### 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 DnsResolverPolicies CreateOrUpdate.
+ * Samples for DnsSecurityRules Update.
*/
-public final class DnsResolverPoliciesCreateOrUpdateSamples {
+public final class DnsSecurityRulesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverPolicy_Put.
- * json
+ * x-ms-original-file: 2025-10-01-preview/DnsSecurityRule_Patch.json
*/
/**
- * Sample code: Upsert DNS resolver policy.
+ * Sample code: Update DNS security rule for 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")
+ 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"))
- .create();
+ .withDnsSecurityRuleState(DnsSecurityRuleState.DISABLED)
+ .apply();
}
// Use "Map.of" if available
@@ -1317,130 +1289,155 @@ public final class DnsResolverPoliciesCreateOrUpdateSamples {
}
```
-### DnsSecurityRules_Update
+### ForwardingRules_CreateOrUpdate
```java
+import com.azure.resourcemanager.dnsresolver.models.ForwardingRuleState;
+import com.azure.resourcemanager.dnsresolver.models.TargetDnsServer;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for DnsSecurityRules Delete.
+ * Samples for ForwardingRules CreateOrUpdate.
*/
-public final class DnsSecurityRulesDeleteSamples {
+public final class ForwardingRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsSecurityRule_Delete.
- * json
+ * x-ms-original-file: 2025-10-01-preview/ForwardingRule_Put.json
*/
/**
- * Sample code: Delete DNS security rule for DNS resolver policy.
+ * Sample code: Upsert forwarding rule in a DNS forwarding ruleset.
*
* @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);
+ upsertForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.forwardingRules()
+ .define("sampleForwardingRule")
+ .withExistingDnsForwardingRuleset("sampleResourceGroup", "sampleDnsForwardingRuleset")
+ .withDomainName("contoso.com.")
+ .withTargetDnsServers(Arrays.asList(new TargetDnsServer().withIpAddress("10.0.0.1").withPort(53),
+ new TargetDnsServer().withIpAddress("10.0.0.2").withPort(53)))
+ .withMetadata(mapOf("additionalProp1", "value1"))
+ .withForwardingRuleState(ForwardingRuleState.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;
}
}
```
-### ForwardingRules_CreateOrUpdate
+### ForwardingRules_Delete
```java
/**
- * Samples for DnsResolvers ListByVirtualNetwork.
+ * Samples for ForwardingRules Delete.
*/
-public final class DnsResolversListByVirtualNetworkSamples {
+public final class ForwardingRulesDeleteSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolver_ListByVirtualNetwork.json
+ * x-ms-original-file: 2025-10-01-preview/ForwardingRule_Delete.json
*/
/**
- * Sample code: List DNS resolvers by virtual network.
+ * Sample code: Delete forwarding rule in a DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- listDNSResolversByVirtualNetwork(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers()
- .listByVirtualNetwork("sampleResourceGroup", "sampleVirtualNetwork", null,
+ deleteForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.forwardingRules()
+ .deleteWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule", null,
com.azure.core.util.Context.NONE);
}
}
```
-### ForwardingRules_Delete
+### ForwardingRules_Get
```java
/**
- * Samples for DnsResolverPolicies List.
+ * Samples for ForwardingRules Get.
*/
-public final class DnsResolverPoliciesListSamples {
+public final class ForwardingRulesGetSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicy_ListBySubscription.json
+ * x-ms-original-file: 2025-10-01-preview/ForwardingRule_Get.json
*/
/**
- * Sample code: List DNS resolver policies by subscription.
+ * Sample code: Retrieve forwarding rule in a DNS forwarding ruleset.
*
* @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);
+ public static void retrieveForwardingRuleInADNSForwardingRuleset(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.forwardingRules()
+ .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ForwardingRules_Get
+### ForwardingRules_List
```java
/**
- * Samples for DnsResolverDomainLists ListByResourceGroup.
+ * Samples for ForwardingRules List.
*/
-public final class DnsResolverDomainListsListByResourceGroupSamples {
+public final class ForwardingRulesListSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_ListByResourceGroup.json
+ * x-ms-original-file: 2025-10-01-preview/ForwardingRule_List.json
*/
/**
- * Sample code: List DNS resolver domain lists by resource group.
+ * Sample code: List forwarding rules in a DNS forwarding ruleset.
*
* @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);
+ listForwardingRulesInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.forwardingRules()
+ .list("sampleResourceGroup", "sampleDnsForwardingRuleset", null, com.azure.core.util.Context.NONE);
}
}
```
-### ForwardingRules_List
+### ForwardingRules_Update
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolver;
+import com.azure.resourcemanager.dnsresolver.models.ForwardingRule;
+import com.azure.resourcemanager.dnsresolver.models.ForwardingRuleState;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolvers Update.
+ * Samples for ForwardingRules Update.
*/
-public final class DnsResolversUpdateSamples {
+public final class ForwardingRulesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolver_Patch.json
+ * x-ms-original-file: 2025-10-01-preview/ForwardingRule_Patch.json
*/
/**
- * Sample code: Update DNS resolver.
+ * Sample code: Update forwarding rule in a DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void updateDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsResolver resource = manager.dnsResolvers()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolver",
+ public static void
+ updateForwardingRuleInADNSForwardingRuleset(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ ForwardingRule resource = manager.forwardingRules()
+ .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleForwardingRule",
com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
+ resource.update()
+ .withMetadata(mapOf("additionalProp2", "value2"))
+ .withForwardingRuleState(ForwardingRuleState.DISABLED)
+ .apply();
}
// Use "Map.of" if available
@@ -1457,36 +1454,39 @@ public final class DnsResolversUpdateSamples {
}
```
-### ForwardingRules_Update
+### InboundEndpoints_CreateOrUpdate
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsResolverDomainList;
+import com.azure.core.management.SubResource;
+import com.azure.resourcemanager.dnsresolver.models.IpAllocationMethod;
+import com.azure.resourcemanager.dnsresolver.models.IpConfiguration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolverDomainLists Update.
+ * Samples for InboundEndpoints CreateOrUpdate.
*/
-public final class DnsResolverDomainListsUpdateSamples {
+public final class InboundEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_Patch.json
+ * x-ms-original-file: 2025-10-01-preview/InboundEndpoint_Put.json
*/
/**
- * Sample code: Update DNS resolver domain list.
+ * Sample code: Upsert inbound endpoint for DNS resolver.
*
* @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()
+ public static void
+ upsertInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.inboundEndpoints()
+ .define("sampleInboundEndpoint")
+ .withRegion("westus2")
+ .withExistingDnsResolver("sampleResourceGroup", "sampleDnsResolver")
+ .withIpConfigurations(Arrays.asList(new IpConfiguration().withSubnet(new SubResource().withId(
+ "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork/subnets/sampleSubnet"))
+ .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC)))
.withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDomains(Arrays.asList("contoso.com"))
- .apply();
+ .create();
}
// Use "Map.of" if available
@@ -1503,129 +1503,103 @@ public final class DnsResolverDomainListsUpdateSamples {
}
```
-### InboundEndpoints_CreateOrUpdate
+### InboundEndpoints_Delete
```java
/**
- * Samples for DnsResolverPolicies GetByResourceGroup.
+ * Samples for InboundEndpoints Delete.
*/
-public final class DnsResolverPoliciesGetByResourceGroupSamples {
+public final class InboundEndpointsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverPolicy_Get.
- * json
+ * x-ms-original-file: 2025-10-01-preview/InboundEndpoint_Delete.json
*/
/**
- * Sample code: Retrieve DNS resolver policy.
+ * Sample code: Delete inbound endpoint for DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void retrieveDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicies()
- .getByResourceGroupWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy",
+ public static void
+ deleteInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.inboundEndpoints()
+ .delete("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint", null,
com.azure.core.util.Context.NONE);
}
}
```
-### InboundEndpoints_Delete
+### InboundEndpoints_Get
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRuleset;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for DnsForwardingRulesets Update.
+ * Samples for InboundEndpoints Get.
*/
-public final class DnsForwardingRulesetsUpdateSamples {
+public final class InboundEndpointsGetSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsForwardingRuleset_Patch.json
+ * x-ms-original-file: 2025-10-01-preview/InboundEndpoint_Get.json
*/
/**
- * Sample code: Update DNS forwarding ruleset.
+ * Sample code: Retrieve inbound endpoint for DNS resolver.
*
* @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;
+ public static void
+ retrieveInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.inboundEndpoints()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint",
+ com.azure.core.util.Context.NONE);
}
}
```
-### InboundEndpoints_Get
+### InboundEndpoints_List
```java
/**
- * Samples for DnsResolverPolicies ListByVirtualNetwork.
+ * Samples for InboundEndpoints List.
*/
-public final class DnsResolverPoliciesListByVirtualNetworkSamples {
+public final class InboundEndpointsListSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicy_ListByVirtualNetwork.json
+ * x-ms-original-file: 2025-10-01-preview/InboundEndpoint_List.json
*/
/**
- * Sample code: List DNS resolver policies by virtual network.
+ * Sample code: List inbound endpoints by DNS resolver.
*
* @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);
+ listInboundEndpointsByDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.inboundEndpoints()
+ .list("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
}
}
```
-### InboundEndpoints_List
+### InboundEndpoints_Update
```java
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRule;
-import com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleState;
+import com.azure.resourcemanager.dnsresolver.models.InboundEndpoint;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsSecurityRules Update.
+ * Samples for InboundEndpoints Update.
*/
-public final class DnsSecurityRulesUpdateSamples {
+public final class InboundEndpointsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsSecurityRule_Patch.
- * json
+ * x-ms-original-file: 2025-10-01-preview/InboundEndpoint_Patch.json
*/
/**
- * Sample code: Update DNS security rule for DNS resolver policy.
+ * Sample code: Update inbound endpoint for DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- updateDNSSecurityRuleForDNSResolverPolicy(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- DnsSecurityRule resource = manager.dnsSecurityRules()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolverPolicy", "sampleDnsSecurityRule",
+ updateInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ InboundEndpoint resource = manager.inboundEndpoints()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint",
com.azure.core.util.Context.NONE)
.getValue();
- resource.update()
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDnsSecurityRuleState(DnsSecurityRuleState.DISABLED)
- .apply();
+ resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
}
// Use "Map.of" if available
@@ -1642,7 +1616,7 @@ public final class DnsSecurityRulesUpdateSamples {
}
```
-### InboundEndpoints_Update
+### OutboundEndpoints_CreateOrUpdate
```java
import com.azure.core.management.SubResource;
@@ -1650,26 +1624,25 @@ import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolverPolicyVirtualNetworkLinks CreateOrUpdate.
+ * Samples for OutboundEndpoints CreateOrUpdate.
*/
-public final class DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateSamples {
+public final class OutboundEndpointsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverPolicyVirtualNetworkLink_Put.json
+ * x-ms-original-file: 2025-10-01-preview/OutboundEndpoint_Put.json
*/
/**
- * Sample code: Upsert DNS resolver policy virtual network link.
+ * Sample code: Upsert outbound endpoint for DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- upsertDNSResolverPolicyVirtualNetworkLink(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverPolicyVirtualNetworkLinks()
- .define("sampleVirtualNetworkLink")
+ upsertOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.outboundEndpoints()
+ .define("sampleOutboundEndpoint")
.withRegion("westus2")
- .withExistingDnsResolverPolicy("sampleResourceGroup", "sampleDnsResolverPolicy")
- .withVirtualNetwork(new SubResource().withId(
- "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
+ .withExistingDnsResolver("sampleResourceGroup", "sampleDnsResolver")
+ .withSubnet(new SubResource().withId(
+ "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork/subnets/sampleSubnet"))
.withTags(mapOf("key1", "fakeTokenPlaceholder"))
.create();
}
@@ -1688,29 +1661,6 @@ public final class DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateSamples {
}
```
-### OutboundEndpoints_CreateOrUpdate
-
-```java
-/**
- * Samples for DnsResolvers ListByResourceGroup.
- */
-public final class DnsResolversListByResourceGroupSamples {
- /*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolver_ListByResourceGroup.json
- */
- /**
- * Sample code: List DNS resolvers by resource group.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void
- listDNSResolversByResourceGroup(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolvers().listByResourceGroup("sampleResourceGroup", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
### OutboundEndpoints_Delete
```java
@@ -1719,9 +1669,7 @@ public final class DnsResolversListByResourceGroupSamples {
*/
public final class OutboundEndpointsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/OutboundEndpoint_Delete.
- * json
+ * x-ms-original-file: 2025-10-01-preview/OutboundEndpoint_Delete.json
*/
/**
* Sample code: Delete outbound endpoint for DNS resolver.
@@ -1741,22 +1689,22 @@ public final class OutboundEndpointsDeleteSamples {
```java
/**
- * Samples for DnsResolverPolicies Delete.
+ * Samples for OutboundEndpoints Get.
*/
-public final class DnsResolverPoliciesDeleteSamples {
+public final class OutboundEndpointsGetSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverPolicy_Delete.
- * json
+ * x-ms-original-file: 2025-10-01-preview/OutboundEndpoint_Get.json
*/
/**
- * Sample code: Delete DNS resolver policy.
+ * Sample code: Retrieve outbound endpoint for DNS resolver.
*
* @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);
+ public static void
+ retrieveOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.outboundEndpoints()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleOutboundEndpoint",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1765,22 +1713,21 @@ public final class DnsResolverPoliciesDeleteSamples {
```java
/**
- * Samples for DnsSecurityRules List.
+ * Samples for OutboundEndpoints List.
*/
-public final class DnsSecurityRulesListSamples {
+public final class OutboundEndpointsListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsSecurityRule_List.json
+ * x-ms-original-file: 2025-10-01-preview/OutboundEndpoint_List.json
*/
/**
- * Sample code: List DNS security rules by DNS resolver policy.
+ * Sample code: List outbound endpoints by DNS resolver.
*
* @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);
+ listOutboundEndpointsByDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.outboundEndpoints()
+ .list("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1788,28 +1735,26 @@ public final class DnsSecurityRulesListSamples {
### OutboundEndpoints_Update
```java
-import com.azure.resourcemanager.dnsresolver.models.InboundEndpoint;
+import com.azure.resourcemanager.dnsresolver.models.OutboundEndpoint;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for InboundEndpoints Update.
+ * Samples for OutboundEndpoints Update.
*/
-public final class InboundEndpointsUpdateSamples {
+public final class OutboundEndpointsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/InboundEndpoint_Patch.
- * json
+ * x-ms-original-file: 2025-10-01-preview/OutboundEndpoint_Patch.json
*/
/**
- * Sample code: Update inbound endpoint for DNS resolver.
+ * Sample code: Update outbound endpoint for DNS resolver.
*
* @param manager Entry point to DnsResolverManager.
*/
public static void
- updateInboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- InboundEndpoint resource = manager.inboundEndpoints()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleInboundEndpoint",
+ updateOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ OutboundEndpoint resource = manager.outboundEndpoints()
+ .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleOutboundEndpoint",
com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder")).apply();
@@ -1832,51 +1777,30 @@ public final class InboundEndpointsUpdateSamples {
### VirtualNetworkLinks_CreateOrUpdate
```java
-import java.util.Arrays;
+import com.azure.core.management.SubResource;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DnsResolverDomainLists CreateOrUpdate.
+ * Samples for VirtualNetworkLinks CreateOrUpdate.
*/
-public final class DnsResolverDomainListsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_BulkDomains_Put.json
- */
- /**
- * Sample code: Upsert DNS resolver domain list with bulk number of domains.
- *
- * @param manager Entry point to DnsResolverManager.
- */
- public static void upsertDNSResolverDomainListWithBulkNumberOfDomains(
- com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .define("sampleDnsResolverDomainList")
- .withRegion("westus2")
- .withExistingResourceGroup("sampleResourceGroup")
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .create();
- }
-
+public final class VirtualNetworkLinksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/DnsResolverDomainList_Put
- * .json
+ * x-ms-original-file: 2025-10-01-preview/VirtualNetworkLink_Put.json
*/
/**
- * Sample code: Upsert DNS resolver domain list with less than 1000 domains.
+ * Sample code: Upsert virtual network link to a DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void upsertDNSResolverDomainListWithLessThan1000Domains(
+ public static void upsertVirtualNetworkLinkToADNSForwardingRuleset(
com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.dnsResolverDomainLists()
- .define("sampleDnsResolverDomainList")
- .withRegion("westus2")
- .withExistingResourceGroup("sampleResourceGroup")
- .withTags(mapOf("key1", "fakeTokenPlaceholder"))
- .withDomains(Arrays.asList("contoso.com"))
+ manager.virtualNetworkLinks()
+ .define("sampleVirtualNetworkLink")
+ .withExistingDnsForwardingRuleset("sampleResourceGroup", "sampleDnsForwardingRuleset")
+ .withVirtualNetwork(new SubResource().withId(
+ "/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork"))
+ .withMetadata(mapOf("additionalProp1", "value1"))
.create();
}
@@ -1898,21 +1822,22 @@ public final class DnsResolverDomainListsCreateOrUpdateSamples {
```java
/**
- * Samples for DnsResolverDomainLists Delete.
+ * Samples for VirtualNetworkLinks Delete.
*/
-public final class DnsResolverDomainListsDeleteSamples {
+public final class VirtualNetworkLinksDeleteSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_Delete.json
+ * x-ms-original-file: 2025-10-01-preview/VirtualNetworkLink_Delete.json
*/
/**
- * Sample code: Delete DNS resolver domain list.
+ * Sample code: Delete virtual network link to a DNS forwarding ruleset.
*
* @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);
+ public static void deleteVirtualNetworkLinkToADNSForwardingRuleset(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.virtualNetworkLinks()
+ .delete("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink", null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1921,21 +1846,22 @@ public final class DnsResolverDomainListsDeleteSamples {
```java
/**
- * Samples for DnsResolverDomainLists List.
+ * Samples for VirtualNetworkLinks Get.
*/
-public final class DnsResolverDomainListsListSamples {
+public final class VirtualNetworkLinksGetSamples {
/*
- * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/
- * DnsResolverDomainList_ListBySubscription.json
+ * x-ms-original-file: 2025-10-01-preview/VirtualNetworkLink_Get.json
*/
/**
- * Sample code: List DNS resolver domain lists by subscription.
+ * Sample code: Retrieve virtual network link to a DNS forwarding ruleset.
*
* @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);
+ public static void retrieveVirtualNetworkLinkToADNSForwardingRuleset(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.virtualNetworkLinks()
+ .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1944,23 +1870,21 @@ public final class DnsResolverDomainListsListSamples {
```java
/**
- * Samples for OutboundEndpoints List.
+ * Samples for VirtualNetworkLinks List.
*/
-public final class OutboundEndpointsListSamples {
+public final class VirtualNetworkLinksListSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/OutboundEndpoint_List.
- * json
+ * x-ms-original-file: 2025-10-01-preview/VirtualNetworkLink_List.json
*/
/**
- * Sample code: List outbound endpoints by DNS resolver.
+ * Sample code: List virtual network links to a DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- listOutboundEndpointsByDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.outboundEndpoints()
- .list("sampleResourceGroup", "sampleDnsResolver", null, com.azure.core.util.Context.NONE);
+ public static void listVirtualNetworkLinksToADNSForwardingRuleset(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ manager.virtualNetworkLinks()
+ .list("sampleResourceGroup", "sampleDnsForwardingRuleset", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1968,24 +1892,41 @@ public final class OutboundEndpointsListSamples {
### VirtualNetworkLinks_Update
```java
+import com.azure.resourcemanager.dnsresolver.models.VirtualNetworkLink;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for OutboundEndpoints Get.
+ * Samples for VirtualNetworkLinks Update.
*/
-public final class OutboundEndpointsGetSamples {
+public final class VirtualNetworkLinksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/examples/OutboundEndpoint_Get.json
+ * x-ms-original-file: 2025-10-01-preview/VirtualNetworkLink_Patch.json
*/
/**
- * Sample code: Retrieve outbound endpoint for DNS resolver.
+ * Sample code: Update virtual network link to a DNS forwarding ruleset.
*
* @param manager Entry point to DnsResolverManager.
*/
- public static void
- retrieveOutboundEndpointForDNSResolver(com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
- manager.outboundEndpoints()
- .getWithResponse("sampleResourceGroup", "sampleDnsResolver", "sampleOutboundEndpoint",
- com.azure.core.util.Context.NONE);
+ public static void updateVirtualNetworkLinkToADNSForwardingRuleset(
+ com.azure.resourcemanager.dnsresolver.DnsResolverManager manager) {
+ VirtualNetworkLink resource = manager.virtualNetworkLinks()
+ .getWithResponse("sampleResourceGroup", "sampleDnsForwardingRuleset", "sampleVirtualNetworkLink",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withMetadata(mapOf("additionalProp1", "value1")).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;
}
}
```
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
index caa61b5da077..038ba80f36c7 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -17,8 +17,8 @@
1.2.0-beta.1
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-2025-05.
+ Microsoft Azure SDK for Dns Resolver Management
+ This package contains Microsoft Azure SDK for Dns Resolver Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The DNS Resolver Management Client. Package api-version 2025-10-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
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 ef38ea48c2a5..e9f1bafa5c63 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver;
@@ -56,7 +56,7 @@
/**
* Entry point to DnsResolverManager.
- * DNS Resolver Client.
+ * The DNS Resolver Management Client.
*/
public final class DnsResolverManager {
private DnsResolvers dnsResolvers;
@@ -92,11 +92,11 @@ private DnsResolverManager(HttpPipeline httpPipeline, AzureProfile profile, Dura
}
/**
- * Creates an instance of DnsResolver service API entry point.
+ * Creates an instance of Dns Resolver service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the DnsResolver service API instance.
+ * @return the Dns Resolver service API instance.
*/
public static DnsResolverManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -105,11 +105,11 @@ public static DnsResolverManager authenticate(TokenCredential credential, AzureP
}
/**
- * Creates an instance of DnsResolver service API entry point.
+ * Creates an instance of Dns Resolver service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the DnsResolver service API instance.
+ * @return the Dns Resolver service API instance.
*/
public static DnsResolverManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
@@ -231,11 +231,11 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of DnsResolver service API entry point.
+ * Creates an instance of Dns Resolver service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the DnsResolver service API instance.
+ * @return the Dns Resolver service API instance.
*/
public DnsResolverManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsForwardingRulesetsClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsForwardingRulesetsClient.java
index ce7a43a6dbe8..05eb45849430 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsForwardingRulesetsClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsForwardingRulesetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -19,6 +19,34 @@
* An instance of this class provides access to all the operations defined in DnsForwardingRulesetsClient.
*/
public interface DnsForwardingRulesetsClient {
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DNS forwarding ruleset properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String dnsForwardingRulesetName, Context context);
+
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DNS forwarding ruleset properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DnsForwardingRulesetInner getByResourceGroup(String resourceGroupName, String dnsForwardingRulesetName);
+
/**
* Creates or updates a DNS forwarding ruleset.
*
@@ -217,34 +245,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String dnsForwardingRulesetName, String ifMatch, Context context);
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a DNS forwarding ruleset properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsForwardingRulesetName, Context context);
-
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a DNS forwarding ruleset properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsForwardingRulesetInner getByResourceGroup(String resourceGroupName, String dnsForwardingRulesetName);
-
/**
* Lists DNS forwarding rulesets within a resource group.
*
@@ -252,8 +252,7 @@ Response getByResourceGroupWithResponse(String resour
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -267,8 +266,7 @@ Response getByResourceGroupWithResponse(String resour
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
@@ -279,8 +277,7 @@ PagedIterable listByResourceGroup(String resourceGrou
*
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -293,8 +290,7 @@ PagedIterable listByResourceGroup(String resourceGrou
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, Context context);
@@ -303,7 +299,7 @@ PagedIterable listByResourceGroup(String resourceGrou
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -318,7 +314,7 @@ PagedIterable listByVirtualNetwork(Stri
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
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
index bc42774f362b..8072fc0e1688 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -19,6 +19,34 @@
* An instance of this class provides access to all the operations defined in DnsResolverDomainListsClient.
*/
public interface DnsResolverDomainListsClient {
+ /**
+ * 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);
+
/**
* Creates or updates a DNS resolver domain list.
*
@@ -213,34 +241,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@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.
*
@@ -248,8 +248,7 @@ Response getByResourceGroupWithResponse(String resou
* @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}.
+ * @return the response of a DnsResolverDomainList list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -263,8 +262,7 @@ Response getByResourceGroupWithResponse(String resou
* @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}.
+ * @return the response of a DnsResolverDomainList list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
@@ -275,8 +273,7 @@ PagedIterable listByResourceGroup(String resourceGro
*
* @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}.
+ * @return the response of a DnsResolverDomainList list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -289,8 +286,7 @@ PagedIterable listByResourceGroup(String resourceGro
* @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}.
+ * @return the response of a DnsResolverDomainList list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, Context context);
@@ -304,7 +300,7 @@ PagedIterable listByResourceGroup(String resourceGro
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DnsResolverDomainListInner> beginBulk(String resourceGroupName,
@@ -324,7 +320,7 @@ SyncPoller, DnsResolverDomainListInner> b
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DnsResolverDomainListInner> beginBulk(String resourceGroupName,
@@ -340,7 +336,7 @@ SyncPoller, DnsResolverDomainListInner> b
* @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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DnsResolverDomainListInner bulk(String resourceGroupName, String dnsResolverDomainListName,
@@ -360,7 +356,7 @@ DnsResolverDomainListInner bulk(String resourceGroupName, String dnsResolverDoma
* @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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DnsResolverDomainListInner bulk(String resourceGroupName, String dnsResolverDomainListName,
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..28facb797ff9 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -12,26 +12,26 @@
*/
public interface DnsResolverManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
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
index b3b44ca08c5e..7bc56bbcf1dd 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -19,6 +19,34 @@
* An instance of this class provides access to all the operations defined in DnsResolverPoliciesClient.
*/
public interface DnsResolverPoliciesClient {
+ /**
+ * 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);
+
/**
* Creates or updates a DNS resolver policy.
*
@@ -213,34 +241,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@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.
*
@@ -248,8 +248,7 @@ Response getByResourceGroupWithResponse(String resourceG
* @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}.
+ * @return the response of a DnsResolverPolicy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -263,8 +262,7 @@ Response getByResourceGroupWithResponse(String resourceG
* @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}.
+ * @return the response of a DnsResolverPolicy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
@@ -274,8 +272,7 @@ Response getByResourceGroupWithResponse(String resourceG
*
* @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}.
+ * @return the response of a DnsResolverPolicy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -288,8 +285,7 @@ Response getByResourceGroupWithResponse(String resourceG
* @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}.
+ * @return the response of a DnsResolverPolicy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, Context context);
@@ -298,7 +294,7 @@ Response getByResourceGroupWithResponse(String resourceG
* 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -312,7 +308,7 @@ Response getByResourceGroupWithResponse(String resourceG
* 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
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
index df84398966d6..64b42893f441 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -19,6 +19,39 @@
* DnsResolverPolicyVirtualNetworkLinksClient.
*/
public interface DnsResolverPolicyVirtualNetworkLinksClient {
+ /**
+ * 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);
+
/**
* Creates or updates a DNS resolver policy virtual network link.
*
@@ -246,39 +279,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
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.
*
@@ -287,8 +287,8 @@ DnsResolverPolicyVirtualNetworkLinkInner get(String resourceGroupName, String dn
* @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}.
+ * @return the response of a DnsResolverPolicyVirtualNetworkLink list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName,
@@ -304,8 +304,8 @@ PagedIterable list(String resourceGrou
* @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}.
+ * @return the response of a DnsResolverPolicyVirtualNetworkLink list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverPolicyName,
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolversClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolversClient.java
index 66a115e181a2..d9cf8236a238 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolversClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/DnsResolversClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -19,6 +19,34 @@
* An instance of this class provides access to all the operations defined in DnsResolversClient.
*/
public interface DnsResolversClient {
+ /**
+ * Gets properties of a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String dnsResolverName,
+ Context context);
+
+ /**
+ * Gets properties of a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DnsResolverInner getByResourceGroup(String resourceGroupName, String dnsResolverName);
+
/**
* Creates or updates a DNS resolver.
*
@@ -210,34 +238,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String dnsResolverName, String ifMatch, Context context);
- /**
- * Gets properties of a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String dnsResolverName,
- Context context);
-
- /**
- * Gets properties of a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DnsResolverInner getByResourceGroup(String resourceGroupName, String dnsResolverName);
-
/**
* Lists DNS resolvers within a resource group.
*
@@ -245,8 +245,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* @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 resolvers as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsResolver list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -260,8 +259,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* @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 resolvers as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsResolver list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
@@ -271,8 +269,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
*
* @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 resolvers as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsResolver list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -285,8 +282,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* @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 resolvers as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsResolver list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, Context context);
@@ -295,7 +291,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* Lists DNS resolver 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -309,7 +305,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* Lists DNS resolver 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
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
index ba6eaafa6dd1..4e7e86dfa050 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -18,6 +18,36 @@
* An instance of this class provides access to all the operations defined in DnsSecurityRulesClient.
*/
public interface DnsSecurityRulesClient {
+ /**
+ * 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);
+
/**
* Creates or updates a DNS security rule for a DNS resolver policy.
*
@@ -228,36 +258,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
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.
*
@@ -266,8 +266,7 @@ Response getWithResponse(String resourceGroupName, String
* @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}.
+ * @return the response of a DnsSecurityRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverPolicyName);
@@ -282,8 +281,7 @@ Response getWithResponse(String resourceGroupName, String
* @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}.
+ * @return the response of a DnsSecurityRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverPolicyName, Integer top,
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/ForwardingRulesClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/ForwardingRulesClient.java
index 9ce0854f4ea1..faf42583e28f 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/ForwardingRulesClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/ForwardingRulesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -16,6 +16,36 @@
* An instance of this class provides access to all the operations defined in ForwardingRulesClient.
*/
public interface ForwardingRulesClient {
+ /**
+ * Gets properties of a forwarding rule in a DNS forwarding ruleset.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @param forwardingRuleName The name of the forwarding 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 forwarding rule in a DNS forwarding ruleset along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
+ String forwardingRuleName, Context context);
+
+ /**
+ * Gets properties of a forwarding rule in a DNS forwarding ruleset.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @param forwardingRuleName The name of the forwarding 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 forwarding rule in a DNS forwarding ruleset.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ForwardingRuleInner get(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName);
+
/**
* Creates or updates a forwarding rule in a DNS forwarding ruleset.
*
@@ -119,36 +149,6 @@ Response deleteWithResponse(String resourceGroupName, String dnsForwarding
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName);
- /**
- * Gets properties of a forwarding rule in a DNS forwarding ruleset.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @param forwardingRuleName The name of the forwarding 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 forwarding rule in a DNS forwarding ruleset along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
- String forwardingRuleName, Context context);
-
- /**
- * Gets properties of a forwarding rule in a DNS forwarding ruleset.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @param forwardingRuleName The name of the forwarding 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 forwarding rule in a DNS forwarding ruleset.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ForwardingRuleInner get(String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName);
-
/**
* Lists forwarding rules in a DNS forwarding ruleset.
*
@@ -157,8 +157,7 @@ Response getWithResponse(String resourceGroupName, String d
* @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 forwarding rules within a DNS forwarding ruleset as paginated
- * response with {@link PagedIterable}.
+ * @return the response of a ForwardingRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsForwardingRulesetName);
@@ -173,8 +172,7 @@ Response getWithResponse(String resourceGroupName, String d
* @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 forwarding rules within a DNS forwarding ruleset as paginated
- * response with {@link PagedIterable}.
+ * @return the response of a ForwardingRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsForwardingRulesetName, Integer top,
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/InboundEndpointsClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/InboundEndpointsClient.java
index 5653f3a86288..d01747c5430c 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/InboundEndpointsClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/InboundEndpointsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -18,6 +18,36 @@
* An instance of this class provides access to all the operations defined in InboundEndpointsClient.
*/
public interface InboundEndpointsClient {
+ /**
+ * Gets properties of an inbound endpoint for a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
+ * @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 an inbound endpoint for a DNS resolver along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dnsResolverName,
+ String inboundEndpointName, Context context);
+
+ /**
+ * Gets properties of an inbound endpoint for a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
+ * @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 an inbound endpoint for a DNS resolver.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InboundEndpointInner get(String resourceGroupName, String dnsResolverName, String inboundEndpointName);
+
/**
* Creates or updates an inbound endpoint for a DNS resolver.
*
@@ -227,36 +257,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String dnsResolverName, String inboundEndpointName, String ifMatch,
Context context);
- /**
- * Gets properties of an inbound endpoint for a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
- * @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 an inbound endpoint for a DNS resolver along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String dnsResolverName,
- String inboundEndpointName, Context context);
-
- /**
- * Gets properties of an inbound endpoint for a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @param inboundEndpointName The name of the inbound endpoint for the DNS resolver.
- * @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 an inbound endpoint for a DNS resolver.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InboundEndpointInner get(String resourceGroupName, String dnsResolverName, String inboundEndpointName);
-
/**
* Lists inbound endpoints for a DNS resolver.
*
@@ -265,8 +265,7 @@ Response getWithResponse(String resourceGroupName, String
* @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 inbound endpoints for a DNS resolver as paginated response
- * with {@link PagedIterable}.
+ * @return the response of a InboundEndpoint list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverName);
@@ -281,8 +280,7 @@ Response getWithResponse(String resourceGroupName, String
* @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 inbound endpoints for a DNS resolver as paginated response
- * with {@link PagedIterable}.
+ * @return the response of a InboundEndpoint list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverName, Integer top,
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/OutboundEndpointsClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/OutboundEndpointsClient.java
index e80e87474967..b0cd366a4d52 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/OutboundEndpointsClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/OutboundEndpointsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -18,6 +18,36 @@
* An instance of this class provides access to all the operations defined in OutboundEndpointsClient.
*/
public interface OutboundEndpointsClient {
+ /**
+ * Gets properties of an outbound endpoint for a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
+ * @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 an outbound endpoint for a DNS resolver along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dnsResolverName,
+ String outboundEndpointName, Context context);
+
+ /**
+ * Gets properties of an outbound endpoint for a DNS resolver.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsResolverName The name of the DNS resolver.
+ * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
+ * @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 an outbound endpoint for a DNS resolver.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundEndpointInner get(String resourceGroupName, String dnsResolverName, String outboundEndpointName);
+
/**
* Creates or updates an outbound endpoint for a DNS resolver.
*
@@ -227,36 +257,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String dnsResolverName, String outboundEndpointName, String ifMatch,
Context context);
- /**
- * Gets properties of an outbound endpoint for a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
- * @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 an outbound endpoint for a DNS resolver along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String dnsResolverName,
- String outboundEndpointName, Context context);
-
- /**
- * Gets properties of an outbound endpoint for a DNS resolver.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsResolverName The name of the DNS resolver.
- * @param outboundEndpointName The name of the outbound endpoint for the DNS resolver.
- * @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 an outbound endpoint for a DNS resolver.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OutboundEndpointInner get(String resourceGroupName, String dnsResolverName, String outboundEndpointName);
-
/**
* Lists outbound endpoints for a DNS resolver.
*
@@ -265,8 +265,7 @@ Response getWithResponse(String resourceGroupName, String
* @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 outbound endpoints for a DNS resolver as paginated response
- * with {@link PagedIterable}.
+ * @return the response of a OutboundEndpoint list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverName);
@@ -281,8 +280,7 @@ Response getWithResponse(String resourceGroupName, String
* @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 outbound endpoints for a DNS resolver as paginated response
- * with {@link PagedIterable}.
+ * @return the response of a OutboundEndpoint list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsResolverName, Integer top,
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/VirtualNetworkLinksClient.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/VirtualNetworkLinksClient.java
index 89de10c299d3..2f9c9746e72a 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/VirtualNetworkLinksClient.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/VirtualNetworkLinksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent;
@@ -18,6 +18,37 @@
* An instance of this class provides access to all the operations defined in VirtualNetworkLinksClient.
*/
public interface VirtualNetworkLinksClient {
+ /**
+ * Gets properties of a virtual network link to a DNS forwarding ruleset.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @param virtualNetworkLinkName The name of the virtual network link.
+ * @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 virtual network link to a DNS forwarding ruleset along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
+ String virtualNetworkLinkName, Context context);
+
+ /**
+ * Gets properties of a virtual network link to a DNS forwarding ruleset.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @param virtualNetworkLinkName The name of the virtual network link.
+ * @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 virtual network link to a DNS forwarding ruleset.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkLinkInner get(String resourceGroupName, String dnsForwardingRulesetName,
+ String virtualNetworkLinkName);
+
/**
* Creates or updates a virtual network link to a DNS forwarding ruleset.
*
@@ -229,37 +260,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String dnsForwardingRulesetName, String virtualNetworkLinkName,
String ifMatch, Context context);
- /**
- * Gets properties of a virtual network link to a DNS forwarding ruleset.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @param virtualNetworkLinkName The name of the virtual network link.
- * @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 virtual network link to a DNS forwarding ruleset along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
- String virtualNetworkLinkName, Context context);
-
- /**
- * Gets properties of a virtual network link to a DNS forwarding ruleset.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @param virtualNetworkLinkName The name of the virtual network link.
- * @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 virtual network link to a DNS forwarding ruleset.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkLinkInner get(String resourceGroupName, String dnsForwardingRulesetName,
- String virtualNetworkLinkName);
-
/**
* Lists virtual network links to a DNS forwarding ruleset.
*
@@ -268,8 +268,7 @@ VirtualNetworkLinkInner get(String resourceGroupName, String dnsForwardingRulese
* @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 virtual network links as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a VirtualNetworkLink list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsForwardingRulesetName);
@@ -284,8 +283,7 @@ VirtualNetworkLinkInner get(String resourceGroupName, String dnsForwardingRulese
* @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 virtual network links as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a VirtualNetworkLink list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String dnsForwardingRulesetName, Integer top,
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..b34bae62c4a5 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,7 +8,6 @@
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;
@@ -23,14 +22,15 @@
@Fluent
public final class DnsForwardingRulesetInner extends Resource {
/*
- * ETag of the DNS forwarding ruleset.
+ * Properties of the DNS forwarding ruleset.
*/
- private String etag;
+ private DnsForwardingRulesetProperties innerProperties = new DnsForwardingRulesetProperties();
/*
- * Properties of the DNS forwarding ruleset.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private DnsForwardingRulesetProperties innerProperties = new DnsForwardingRulesetProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -59,21 +59,24 @@ public DnsForwardingRulesetInner() {
}
/**
- * Get the etag property: ETag of the DNS forwarding ruleset.
+ * Get the innerProperties property: Properties of the DNS forwarding ruleset.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsForwardingRulesetProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS forwarding ruleset.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsForwardingRulesetProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -177,23 +180,6 @@ 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 DnsForwardingRulesetInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsForwardingRulesetInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetProperties.java
index 97a0ebbed27d..b9c301906a2e 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsForwardingRulesetProperties.java
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -85,21 +84,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (dnsResolverOutboundEndpoints() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property dnsResolverOutboundEndpoints in model DnsForwardingRulesetProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsForwardingRulesetProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListBulkProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListBulkProperties.java
index f765538390b6..06c932aa318e 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListBulkProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverDomainListBulkProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -77,26 +76,6 @@ public DnsResolverDomainListBulkProperties withAction(Action action) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (storageUrl() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property storageUrl in model DnsResolverDomainListBulkProperties"));
- }
- if (action() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property action in model DnsResolverDomainListBulkProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverDomainListBulkProperties.class);
-
/**
* {@inheritDoc}
*/
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
index b93c88c58cd4..1aff23d32d0c 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -21,14 +21,15 @@
@Fluent
public final class DnsResolverDomainListInner extends Resource {
/*
- * ETag of the DNS resolver domain list.
+ * Properties of the DNS resolver domain list.
*/
- private String etag;
+ private DnsResolverDomainListProperties innerProperties;
/*
- * Properties of the DNS resolver domain list.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private DnsResolverDomainListProperties innerProperties;
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -57,21 +58,24 @@ public DnsResolverDomainListInner() {
}
/**
- * Get the etag property: ETag of the DNS resolver domain list.
+ * Get the innerProperties property: Properties of the DNS resolver domain list.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsResolverDomainListProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS resolver domain list.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsResolverDomainListProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -183,17 +187,6 @@ 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}
*/
@@ -233,11 +226,11 @@ public static DnsResolverDomainListInner fromJson(JsonReader jsonReader) throws
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedDnsResolverDomainListInner.withTags(tags);
- } else if ("etag".equals(fieldName)) {
- deserializedDnsResolverDomainListInner.etag = reader.getString();
} 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 {
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
index 1c26ccda650b..cafe5eb9a5ba 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -49,14 +49,6 @@ public DnsResolverDomainListPatchProperties withDomains(List domains) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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
index 34860fd2ba8d..6bfc0b9b9e9d 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -95,14 +95,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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..42d3aa53d0d9 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,7 +8,6 @@
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;
@@ -23,14 +22,15 @@
@Fluent
public final class DnsResolverInner extends Resource {
/*
- * ETag of the DNS resolver.
+ * Properties of the DNS resolver.
*/
- private String etag;
+ private DnsResolverProperties innerProperties = new DnsResolverProperties();
/*
- * Properties of the DNS resolver.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private DnsResolverProperties innerProperties = new DnsResolverProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -59,21 +59,24 @@ public DnsResolverInner() {
}
/**
- * Get the etag property: ETag of the DNS resolver.
+ * Get the innerProperties property: Properties of the DNS resolver.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsResolverProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS resolver.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsResolverProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -185,23 +188,6 @@ 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 DnsResolverInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverInner.class);
-
/**
* {@inheritDoc}
*/
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
index 64bb31a64bf2..3413aa60210d 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -20,14 +20,15 @@
@Fluent
public final class DnsResolverPolicyInner extends Resource {
/*
- * ETag of the DNS resolver policy.
+ * Properties of the DNS resolver policy.
*/
- private String etag;
+ private DnsResolverPolicyProperties innerProperties;
/*
- * Properties of the DNS resolver policy.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private DnsResolverPolicyProperties innerProperties;
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -56,21 +57,24 @@ public DnsResolverPolicyInner() {
}
/**
- * Get the etag property: ETag of the DNS resolver policy.
+ * Get the innerProperties property: Properties of the DNS resolver policy.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsResolverPolicyProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS resolver policy.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsResolverPolicyProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -149,17 +153,6 @@ 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}
*/
@@ -199,10 +192,10 @@ public static DnsResolverPolicyInner fromJson(JsonReader jsonReader) throws IOEx
} 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 ("etag".equals(fieldName)) {
+ deserializedDnsResolverPolicyInner.etag = reader.getString();
} else if ("systemData".equals(fieldName)) {
deserializedDnsResolverPolicyInner.systemData = SystemData.fromJson(reader);
} else {
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
index 414be94a5b72..8e5c1b952a94 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -53,14 +53,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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
index 177a2f383415..3af90b043a56 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,7 +8,6 @@
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;
@@ -21,17 +20,18 @@
*/
@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();
+ /*
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
+ */
+ private String etag;
+
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@@ -59,21 +59,24 @@ public DnsResolverPolicyVirtualNetworkLinkInner() {
}
/**
- * Get the etag property: ETag of the DNS resolver policy virtual network link.
+ * Get the innerProperties property: Properties of the DNS resolver policy virtual network link.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsResolverPolicyVirtualNetworkLinkProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS resolver policy virtual network link.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsResolverPolicyVirtualNetworkLinkProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -166,23 +169,6 @@ 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}
*/
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
index d98d10ff57f1..5a1f51b614c5 100644
--- 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
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -67,21 +66,6 @@ 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}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverProperties.java
index 61f153666f8c..b366720d409a 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/DnsResolverProperties.java
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -97,21 +96,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * 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 DnsResolverProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DnsResolverProperties.class);
-
/**
* {@inheritDoc}
*/
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
index 758794a34fb2..2143f12a4e32 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,12 +8,12 @@
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.ManagedDomainList;
import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
import java.io.IOException;
import java.util.List;
@@ -25,14 +25,15 @@
@Fluent
public final class DnsSecurityRuleInner extends Resource {
/*
- * ETag of the DNS security rule.
+ * Properties of the DNS security rule.
*/
- private String etag;
+ private DnsSecurityRuleProperties innerProperties = new DnsSecurityRuleProperties();
/*
- * Properties of the DNS security rule.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private DnsSecurityRuleProperties innerProperties = new DnsSecurityRuleProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -61,21 +62,24 @@ public DnsSecurityRuleInner() {
}
/**
- * Get the etag property: ETag of the DNS security rule.
+ * Get the innerProperties property: Properties of the DNS security rule.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private DnsSecurityRuleProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the DNS security rule.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private DnsSecurityRuleProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -204,6 +208,29 @@ public DnsSecurityRuleInner withDnsResolverDomainLists(List dnsReso
return this;
}
+ /**
+ * Get the managedDomainLists property: Managed domain lists that the DNS security rule applies to.
+ *
+ * @return the managedDomainLists value.
+ */
+ public List managedDomainLists() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedDomainLists();
+ }
+
+ /**
+ * Set the managedDomainLists property: Managed domain lists that the DNS security rule applies to.
+ *
+ * @param managedDomainLists the managedDomainLists value to set.
+ * @return the DnsSecurityRuleInner object itself.
+ */
+ public DnsSecurityRuleInner withManagedDomainLists(List managedDomainLists) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DnsSecurityRuleProperties();
+ }
+ this.innerProperties().withManagedDomainLists(managedDomainLists);
+ return this;
+ }
+
/**
* Get the dnsSecurityRuleState property: The state of DNS security rule.
*
@@ -237,23 +264,6 @@ 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}
*/
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
index 113cc7f19fc8..b79b2e853049 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -12,6 +12,7 @@
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.ManagedDomainList;
import java.io.IOException;
import java.util.List;
@@ -30,6 +31,11 @@ public final class DnsSecurityRulePatchProperties implements JsonSerializable dnsResolverDomainLists;
+ /*
+ * Managed domain lists that the DNS security rule applies to.
+ */
+ private List managedDomainLists;
+
/*
* The state of DNS security rule.
*/
@@ -86,6 +92,26 @@ public DnsSecurityRulePatchProperties withDnsResolverDomainLists(List managedDomainLists() {
+ return this.managedDomainLists;
+ }
+
+ /**
+ * Set the managedDomainLists property: Managed domain lists that the DNS security rule applies to.
+ *
+ * @param managedDomainLists the managedDomainLists value to set.
+ * @return the DnsSecurityRulePatchProperties object itself.
+ */
+ public DnsSecurityRulePatchProperties withManagedDomainLists(List managedDomainLists) {
+ this.managedDomainLists = managedDomainLists;
+ return this;
+ }
+
/**
* Get the dnsSecurityRuleState property: The state of DNS security rule.
*
@@ -126,17 +152,6 @@ public DnsSecurityRulePatchProperties withPriority(Integer priority) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (action() != null) {
- action().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -146,6 +161,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("action", this.action);
jsonWriter.writeArrayField("dnsResolverDomainLists", this.dnsResolverDomainLists,
(writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("managedDomainLists", this.managedDomainLists,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
jsonWriter.writeStringField("dnsSecurityRuleState",
this.dnsSecurityRuleState == null ? null : this.dnsSecurityRuleState.toString());
jsonWriter.writeNumberField("priority", this.priority);
@@ -174,6 +191,10 @@ public static DnsSecurityRulePatchProperties fromJson(JsonReader jsonReader) thr
List dnsResolverDomainLists
= reader.readArray(reader1 -> SubResource.fromJson(reader1));
deserializedDnsSecurityRulePatchProperties.dnsResolverDomainLists = dnsResolverDomainLists;
+ } else if ("managedDomainLists".equals(fieldName)) {
+ List managedDomainLists
+ = reader.readArray(reader1 -> ManagedDomainList.fromString(reader1.getString()));
+ deserializedDnsSecurityRulePatchProperties.managedDomainLists = managedDomainLists;
} else if ("dnsSecurityRuleState".equals(fieldName)) {
deserializedDnsSecurityRulePatchProperties.dnsSecurityRuleState
= DnsSecurityRuleState.fromString(reader.getString());
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
index 540ebd07d5a9..ab7996745840 100644
--- 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
@@ -1,18 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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.ManagedDomainList;
import com.azure.resourcemanager.dnsresolver.models.ProvisioningState;
import java.io.IOException;
import java.util.List;
@@ -37,6 +37,11 @@ public final class DnsSecurityRuleProperties implements JsonSerializable dnsResolverDomainLists;
+ /*
+ * Managed domain lists that the DNS security rule applies to.
+ */
+ private List managedDomainLists;
+
/*
* The state of DNS security rule.
*/
@@ -114,6 +119,26 @@ public DnsSecurityRuleProperties withDnsResolverDomainLists(List dn
return this;
}
+ /**
+ * Get the managedDomainLists property: Managed domain lists that the DNS security rule applies to.
+ *
+ * @return the managedDomainLists value.
+ */
+ public List managedDomainLists() {
+ return this.managedDomainLists;
+ }
+
+ /**
+ * Set the managedDomainLists property: Managed domain lists that the DNS security rule applies to.
+ *
+ * @param managedDomainLists the managedDomainLists value to set.
+ * @return the DnsSecurityRuleProperties object itself.
+ */
+ public DnsSecurityRuleProperties withManagedDomainLists(List managedDomainLists) {
+ this.managedDomainLists = managedDomainLists;
+ return this;
+ }
+
/**
* Get the dnsSecurityRuleState property: The state of DNS security rule.
*
@@ -144,28 +169,6 @@ 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}
*/
@@ -176,6 +179,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("action", this.action);
jsonWriter.writeArrayField("dnsResolverDomainLists", this.dnsResolverDomainLists,
(writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("managedDomainLists", this.managedDomainLists,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
jsonWriter.writeStringField("dnsSecurityRuleState",
this.dnsSecurityRuleState == null ? null : this.dnsSecurityRuleState.toString());
return jsonWriter.writeEndObject();
@@ -205,6 +210,10 @@ public static DnsSecurityRuleProperties fromJson(JsonReader jsonReader) throws I
List dnsResolverDomainLists
= reader.readArray(reader1 -> SubResource.fromJson(reader1));
deserializedDnsSecurityRuleProperties.dnsResolverDomainLists = dnsResolverDomainLists;
+ } else if ("managedDomainLists".equals(fieldName)) {
+ List managedDomainLists
+ = reader.readArray(reader1 -> ManagedDomainList.fromString(reader1.getString()));
+ deserializedDnsSecurityRuleProperties.managedDomainLists = managedDomainLists;
} else if ("dnsSecurityRuleState".equals(fieldName)) {
deserializedDnsSecurityRuleProperties.dnsSecurityRuleState
= DnsSecurityRuleState.fromString(reader.getString());
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..a4ed898a9c8b 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
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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;
@@ -24,14 +23,15 @@
@Fluent
public final class ForwardingRuleInner extends ProxyResource {
/*
- * ETag of the forwarding rule.
+ * Properties of the forwarding rule.
*/
- private String etag;
+ private ForwardingRuleProperties innerProperties = new ForwardingRuleProperties();
/*
- * Properties of the forwarding rule.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private ForwardingRuleProperties innerProperties = new ForwardingRuleProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -60,21 +60,24 @@ public ForwardingRuleInner() {
}
/**
- * Get the etag property: ETag of the forwarding rule.
+ * Get the innerProperties property: Properties of the forwarding rule.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private ForwardingRuleProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the forwarding rule.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private ForwardingRuleProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -218,23 +221,6 @@ 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 ForwardingRuleInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ForwardingRuleInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRulePatchProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRulePatchProperties.java
index b508fcf6e7b3..52411d0f3ffa 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRulePatchProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRulePatchProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -101,17 +101,6 @@ public ForwardingRulePatchProperties withForwardingRuleState(ForwardingRuleState
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (targetDnsServers() != null) {
- targetDnsServers().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleProperties.java
index 0e42eb2e5a7c..0e121e85b6bc 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/ForwardingRuleProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -144,28 +143,6 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (domainName() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property domainName in model ForwardingRuleProperties"));
- }
- if (targetDnsServers() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property targetDnsServers in model ForwardingRuleProperties"));
- } else {
- targetDnsServers().forEach(e -> e.validate());
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ForwardingRuleProperties.class);
-
/**
* {@inheritDoc}
*/
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..cca577326dda 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
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -23,14 +22,15 @@
@Fluent
public final class InboundEndpointInner extends Resource {
/*
- * ETag of the inbound endpoint.
+ * Properties of the inbound endpoint.
*/
- private String etag;
+ private InboundEndpointProperties innerProperties = new InboundEndpointProperties();
/*
- * Properties of the inbound endpoint.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private InboundEndpointProperties innerProperties = new InboundEndpointProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -59,21 +59,24 @@ public InboundEndpointInner() {
}
/**
- * Get the etag property: ETag of the inbound endpoint.
+ * Get the innerProperties property: Properties of the inbound endpoint.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private InboundEndpointProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the inbound endpoint.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private InboundEndpointProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -175,23 +178,6 @@ 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 InboundEndpointInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(InboundEndpointInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointProperties.java
index 85426d5d4541..5f26bfa15fe3 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/InboundEndpointProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -81,23 +80,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (ipConfigurations() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property ipConfigurations in model InboundEndpointProperties"));
- } else {
- ipConfigurations().forEach(e -> e.validate());
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(InboundEndpointProperties.class);
-
/**
* {@inheritDoc}
*/
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..343c90a780fb 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,7 +8,6 @@
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;
@@ -22,14 +21,15 @@
@Fluent
public final class OutboundEndpointInner extends Resource {
/*
- * ETag of the outbound endpoint.
+ * Properties of the outbound endpoint.
*/
- private String etag;
+ private OutboundEndpointProperties innerProperties = new OutboundEndpointProperties();
/*
- * Properties of the outbound endpoint.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private OutboundEndpointProperties innerProperties = new OutboundEndpointProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -58,21 +58,24 @@ public OutboundEndpointInner() {
}
/**
- * Get the etag property: ETag of the outbound endpoint.
+ * Get the innerProperties property: Properties of the outbound endpoint.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private OutboundEndpointProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the outbound endpoint.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private OutboundEndpointProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -174,23 +177,6 @@ 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 OutboundEndpointInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(OutboundEndpointInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointProperties.java
index 36cd4e04e36f..dd2a3cd59ad0 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/OutboundEndpointProperties.java
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -80,21 +79,6 @@ public String resourceGuid() {
return this.resourceGuid;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (subnet() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property subnet in model OutboundEndpointProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(OutboundEndpointProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkDnsForwardingRulesetInner.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkDnsForwardingRulesetInner.java
index f0fcd8f7201c..b7a0f73dc022 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkDnsForwardingRulesetInner.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkDnsForwardingRulesetInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.SubResource;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
@@ -15,7 +15,7 @@
/**
* Reference to DNS forwarding ruleset and associated virtual network link.
*/
-@Fluent
+@Immutable
public final class VirtualNetworkDnsForwardingRulesetInner
implements JsonSerializable {
/*
@@ -31,7 +31,7 @@ public final class VirtualNetworkDnsForwardingRulesetInner
/**
* Creates an instance of VirtualNetworkDnsForwardingRulesetInner class.
*/
- public VirtualNetworkDnsForwardingRulesetInner() {
+ private VirtualNetworkDnsForwardingRulesetInner() {
}
/**
@@ -43,17 +43,6 @@ public String id() {
return this.id;
}
- /**
- * Set the id property: DNS Forwarding Ruleset Resource ID.
- *
- * @param id the id value to set.
- * @return the VirtualNetworkDnsForwardingRulesetInner object itself.
- */
- public VirtualNetworkDnsForwardingRulesetInner withId(String id) {
- this.id = id;
- return this;
- }
-
/**
* Get the innerProperties property: Properties of the virtual network link sub-resource reference.
*
@@ -72,31 +61,6 @@ public SubResource virtualNetworkLink() {
return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkLink();
}
- /**
- * Set the virtualNetworkLink property: The reference to the virtual network link.
- *
- * @param virtualNetworkLink the virtualNetworkLink value to set.
- * @return the VirtualNetworkDnsForwardingRulesetInner object itself.
- */
- public VirtualNetworkDnsForwardingRulesetInner withVirtualNetworkLink(SubResource virtualNetworkLink) {
- if (this.innerProperties() == null) {
- this.innerProperties = new VirtualNetworkLinkSubResourceProperties();
- }
- this.innerProperties().withVirtualNetworkLink(virtualNetworkLink);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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..533bfef04adb 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -8,7 +8,6 @@
import com.azure.core.management.ProxyResource;
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;
@@ -22,14 +21,15 @@
@Fluent
public final class VirtualNetworkLinkInner extends ProxyResource {
/*
- * ETag of the virtual network link.
+ * Properties of the virtual network link.
*/
- private String etag;
+ private VirtualNetworkLinkProperties innerProperties = new VirtualNetworkLinkProperties();
/*
- * Properties of the virtual network link.
+ * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."
+ * )
*/
- private VirtualNetworkLinkProperties innerProperties = new VirtualNetworkLinkProperties();
+ private String etag;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -58,21 +58,24 @@ public VirtualNetworkLinkInner() {
}
/**
- * Get the etag property: ETag of the virtual network link.
+ * Get the innerProperties property: Properties of the virtual network link.
*
- * @return the etag value.
+ * @return the innerProperties value.
*/
- public String etag() {
- return this.etag;
+ private VirtualNetworkLinkProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Properties of the virtual network link.
+ * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the
+ * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
+ * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26),
+ * and If-Range (section 14.27) header fields.").
*
- * @return the innerProperties value.
+ * @return the etag value.
*/
- private VirtualNetworkLinkProperties innerProperties() {
- return this.innerProperties;
+ public String etag() {
+ return this.etag;
}
/**
@@ -170,23 +173,6 @@ 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 VirtualNetworkLinkInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkLinkInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkPatchProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkPatchProperties.java
index 45d5c10d0131..cd1cedad65e8 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkPatchProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkPatchProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
@@ -48,14 +48,6 @@ public VirtualNetworkLinkPatchProperties withMetadata(Map metada
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkProperties.java
index b8bb2f67e55e..6a7adf9baf71 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkProperties.java
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -92,21 +91,6 @@ 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 VirtualNetworkLinkProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkLinkProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkSubResourceProperties.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkSubResourceProperties.java
index d68d6a476bea..95559808c066 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkSubResourceProperties.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/VirtualNetworkLinkSubResourceProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.SubResource;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
@@ -15,7 +15,7 @@
/**
* The reference to the virtual network link that associates between the DNS forwarding ruleset and virtual network.
*/
-@Fluent
+@Immutable
public final class VirtualNetworkLinkSubResourceProperties
implements JsonSerializable {
/*
@@ -26,7 +26,7 @@ public final class VirtualNetworkLinkSubResourceProperties
/**
* Creates an instance of VirtualNetworkLinkSubResourceProperties class.
*/
- public VirtualNetworkLinkSubResourceProperties() {
+ private VirtualNetworkLinkSubResourceProperties() {
}
/**
@@ -38,25 +38,6 @@ public SubResource virtualNetworkLink() {
return this.virtualNetworkLink;
}
- /**
- * Set the virtualNetworkLink property: The reference to the virtual network link.
- *
- * @param virtualNetworkLink the virtualNetworkLink value to set.
- * @return the VirtualNetworkLinkSubResourceProperties object itself.
- */
- public VirtualNetworkLinkSubResourceProperties withVirtualNetworkLink(SubResource virtualNetworkLink) {
- this.virtualNetworkLink = virtualNetworkLink;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/package-info.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/package-info.java
index b27ea4266a22..b8391a67d211 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/package-info.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the inner data models for DnsResolverManagementClient.
- * DNS Resolver Client.
+ * The DNS Resolver Management Client.
*/
package com.azure.resourcemanager.dnsresolver.fluent.models;
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/package-info.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/package-info.java
index 44beb6fabdb4..2f9a756e9a06 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/package-info.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the service clients for DnsResolverManagementClient.
- * DNS Resolver Client.
+ * The DNS Resolver Management Client.
*/
package com.azure.resourcemanager.dnsresolver.fluent;
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetImpl.java
index 5a330079a818..fb0e495b8b37 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetImpl.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.implementation;
diff --git a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetsClientImpl.java b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetsClientImpl.java
index 1c0d0d842dbe..401c297def85 100644
--- a/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetsClientImpl.java
+++ b/sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/implementation/DnsForwardingRulesetsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.dnsresolver.implementation;
@@ -32,15 +32,14 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.dnsresolver.fluent.DnsForwardingRulesetsClient;
import com.azure.resourcemanager.dnsresolver.fluent.models.DnsForwardingRulesetInner;
import com.azure.resourcemanager.dnsresolver.fluent.models.VirtualNetworkDnsForwardingRulesetInner;
-import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRulesetListResult;
+import com.azure.resourcemanager.dnsresolver.implementation.models.DnsForwardingRulesetListResult;
+import com.azure.resourcemanager.dnsresolver.implementation.models.VirtualNetworkDnsForwardingRulesetListResult;
import com.azure.resourcemanager.dnsresolver.models.DnsForwardingRulesetPatch;
-import com.azure.resourcemanager.dnsresolver.models.VirtualNetworkDnsForwardingRulesetListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -74,133 +73,125 @@ public final class DnsForwardingRulesetsClientImpl implements DnsForwardingRules
* The interface defining all the services for DnsResolverManagementClientDnsForwardingRulesets to be used by the
* proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "DnsResolverManagementClientDnsForwardingRulesets")
public interface DnsForwardingRulesetsService {
@Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
+ @HeaderParam("Accept") String accept, Context context);
+
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 201, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("If-None-Match") String ifNoneMatch,
- @BodyParam("application/json") DnsForwardingRulesetInner parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("if-match") String ifMatch, @HeaderParam("if-none-match") String ifNoneMatch,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DnsForwardingRulesetInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 201, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("If-None-Match") String ifNoneMatch,
- @BodyParam("application/json") DnsForwardingRulesetInner parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("if-match") String ifMatch, @HeaderParam("if-none-match") String ifNoneMatch,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DnsForwardingRulesetInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @BodyParam("application/json") DnsForwardingRulesetPatch parameters, @HeaderParam("Accept") String accept,
+ @HeaderParam("if-match") String ifMatch, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DnsForwardingRulesetPatch parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response updateSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @BodyParam("application/json") DnsForwardingRulesetPatch parameters, @HeaderParam("Accept") String accept,
+ @HeaderParam("if-match") String ifMatch, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DnsForwardingRulesetPatch parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("if-match") String ifMatch, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @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/dnsForwardingRulesets/{dnsForwardingRulesetName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response getByResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dnsForwardingRulesetName") String dnsForwardingRulesetName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("if-match") String ifMatch, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets")
@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);
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listByResourceGroupSync(@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);
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -208,27 +199,29 @@ Response listSync(@HostParam("$host") String end
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByVirtualNetwork(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
+ @PathParam("virtualNetworkName") String virtualNetworkName, @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}/listDnsForwardingRulesets")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByVirtualNetworkSync(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion,
- @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept, Context context);
+ @PathParam("virtualNetworkName") String virtualNetworkName, @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,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -236,7 +229,7 @@ Mono> listByResourceGroupNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByResourceGroupNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -244,7 +237,7 @@ Response listByResourceGroupNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -252,7 +245,7 @@ Mono> listNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -260,7 +253,7 @@ Response listNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByVirtualNetworkNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -268,10 +261,81 @@ Mono> listByVirtualNetwor
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByVirtualNetworkNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @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 DNS forwarding ruleset properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String dnsForwardingRulesetName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @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 DNS forwarding ruleset properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName,
+ String dnsForwardingRulesetName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, dnsForwardingRulesetName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @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 DNS forwarding ruleset properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String dnsForwardingRulesetName, Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, accept, context);
+ }
+
+ /**
+ * Gets a DNS forwarding ruleset properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
+ * @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 DNS forwarding ruleset properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DnsForwardingRulesetInner getByResourceGroup(String resourceGroupName, String dnsForwardingRulesetName) {
+ return getByResourceGroupWithResponse(resourceGroupName, dnsForwardingRulesetName, Context.NONE).getValue();
+ }
+
/**
* Creates or updates a DNS forwarding ruleset.
*
@@ -290,32 +354,12 @@ Response listByVirtualNetworkNextS
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
String dnsForwardingRulesetName, DnsForwardingRulesetInner 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 (dnsForwardingRulesetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName 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 contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, ifNoneMatch,
- parameters, accept, context))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, ifNoneMatch,
+ contentType, accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -337,35 +381,11 @@ private Mono>> createOrUpdateWithResponseAsync(String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createOrUpdateWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
DnsForwardingRulesetInner parameters, String ifMatch, String ifNoneMatch) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, ifNoneMatch, parameters, accept,
- Context.NONE);
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, ifNoneMatch,
+ contentType, accept, parameters, Context.NONE);
}
/**
@@ -387,34 +407,11 @@ private Response createOrUpdateWithResponse(String resourceGroupName
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createOrUpdateWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
DnsForwardingRulesetInner parameters, String ifMatch, String ifNoneMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, ifNoneMatch, parameters, accept, context);
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, ifNoneMatch,
+ contentType, accept, parameters, context);
}
/**
@@ -642,32 +639,12 @@ public DnsForwardingRulesetInner createOrUpdate(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(String resourceGroupName,
String dnsForwardingRulesetName, DnsForwardingRulesetPatch 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 (dnsForwardingRulesetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName 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 contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, parameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, contentType,
+ accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -687,34 +664,11 @@ private Mono>> updateWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Response updateWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
DnsForwardingRulesetPatch parameters, String ifMatch) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, parameters, accept, Context.NONE);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, contentType, accept,
+ parameters, Context.NONE);
}
/**
@@ -734,34 +688,11 @@ private Response updateWithResponse(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response updateWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
DnsForwardingRulesetPatch parameters, String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, parameters, accept, context);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, contentType, accept,
+ parameters, context);
}
/**
@@ -971,26 +902,9 @@ public DnsForwardingRulesetInner update(String resourceGroupName, String dnsForw
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName,
String dnsForwardingRulesetName, 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 (dnsForwardingRulesetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, accept, context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -1010,28 +924,8 @@ private Mono>> deleteWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Response deleteWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
String ifMatch) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, accept, Context.NONE);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, Context.NONE);
}
/**
@@ -1051,28 +945,8 @@ private Response deleteWithResponse(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response deleteWithResponse(String resourceGroupName, String dnsForwardingRulesetName,
String ifMatch, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- dnsForwardingRulesetName, this.client.getApiVersion(), ifMatch, accept, context);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dnsForwardingRulesetName, ifMatch, context);
}
/**
@@ -1249,113 +1123,6 @@ public void delete(String resourceGroupName, String dnsForwardingRulesetName, St
beginDelete(resourceGroupName, dnsForwardingRulesetName, ifMatch, context).getFinalResult();
}
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @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 DNS forwarding ruleset properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String dnsForwardingRulesetName) {
- 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 (dnsForwardingRulesetName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsForwardingRulesetName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @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 DNS forwarding ruleset properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getByResourceGroupAsync(String resourceGroupName,
- String dnsForwardingRulesetName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, dnsForwardingRulesetName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @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 DNS forwarding ruleset properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String dnsForwardingRulesetName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dnsForwardingRulesetName == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Parameter dnsForwardingRulesetName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, dnsForwardingRulesetName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Gets a DNS forwarding ruleset properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset.
- * @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 DNS forwarding ruleset properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DnsForwardingRulesetInner getByResourceGroup(String resourceGroupName, String dnsForwardingRulesetName) {
- return getByResourceGroupWithResponse(resourceGroupName, dnsForwardingRulesetName, Context.NONE).getValue();
- }
-
/**
* Lists DNS forwarding rulesets within a resource group.
*
@@ -1364,28 +1131,16 @@ public DnsForwardingRulesetInner getByResourceGroup(String resourceGroupName, St
* @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 forwarding rulesets along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the response of a DnsForwardingRuleset list operation 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))
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, 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()));
@@ -1399,8 +1154,7 @@ private Mono> listByResourceGroupSingle
* @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 forwarding rulesets as paginated response with
- * {@link PagedFlux}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top) {
@@ -1415,8 +1169,7 @@ private PagedFlux listByResourceGroupAsync(String res
* @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 forwarding rulesets as paginated response with
- * {@link PagedFlux}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -1433,28 +1186,14 @@ private PagedFlux listByResourceGroupAsync(String res
* @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 forwarding rulesets along with {@link PagedResponse}.
+ * @return the response of a DnsForwardingRuleset list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
Integer top) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), top, accept, Context.NONE);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, top, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1468,28 +1207,14 @@ private PagedResponse listByResourceGroupSinglePage(S
* @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 forwarding rulesets along with {@link PagedResponse}.
+ * @return the response of a DnsForwardingRuleset list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), top, accept, context);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, top, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1501,8 +1226,7 @@ private PagedResponse listByResourceGroupSinglePage(S
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1520,8 +1244,7 @@ public PagedIterable listByResourceGroup(String resou
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
@@ -1537,23 +1260,15 @@ public PagedIterable listByResourceGroup(String resou
* @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 forwarding rulesets along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the response of a DnsForwardingRuleset list operation 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))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), 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()));
@@ -1566,8 +1281,7 @@ private Mono> listSinglePageAsync(Integ
* @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 forwarding rulesets as paginated response with
- * {@link PagedFlux}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Integer top) {
@@ -1579,8 +1293,7 @@ private PagedFlux listAsync(Integer top) {
*
* @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 forwarding rulesets as paginated response with
- * {@link PagedFlux}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1595,23 +1308,13 @@ private PagedFlux listAsync() {
* @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 forwarding rulesets along with {@link PagedResponse}.
+ * @return the response of a DnsForwardingRuleset list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(Integer top) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), this.client.getApiVersion(), top, accept, Context.NONE);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), top, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1624,23 +1327,13 @@ private PagedResponse listSinglePage(Integer top) {
* @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 forwarding rulesets along with {@link PagedResponse}.
+ * @return the response of a DnsForwardingRuleset list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), this.client.getApiVersion(), top, accept, context);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), top, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1650,8 +1343,7 @@ private PagedResponse listSinglePage(Integer top, Con
*
* @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 forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1667,8 +1359,7 @@ public PagedIterable 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 response to an enumeration operation on DNS forwarding rulesets as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a DnsForwardingRuleset list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Integer top, Context context) {
@@ -1680,7 +1371,7 @@ public PagedIterable list(Integer top, Context contex
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1691,27 +1382,10 @@ public PagedIterable list(Integer top, Context contex
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
listByVirtualNetworkSinglePageAsync(String resourceGroupName, String virtualNetworkName, 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."));
- }
- if (virtualNetworkName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.listByVirtualNetwork(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, virtualNetworkName, this.client.getApiVersion(), top, accept, context))
+ .withContext(context -> service.listByVirtualNetwork(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, accept, context))
.>map(
res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null))
@@ -1722,7 +1396,7 @@ public PagedIterable list(Integer top, Context contex
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1741,7 +1415,7 @@ private PagedFlux listByVirtualNetworkA
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1760,7 +1434,7 @@ private PagedFlux listByVirtualNetworkA
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1771,28 +1445,10 @@ private PagedFlux listByVirtualNetworkA
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse
listByVirtualNetworkSinglePage(String resourceGroupName, String virtualNetworkName, Integer top) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (virtualNetworkName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null."));
- }
final String accept = "application/json";
Response res
- = service.listByVirtualNetworkSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, virtualNetworkName, this.client.getApiVersion(), top, accept, Context.NONE);
+ = service.listByVirtualNetworkSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1801,7 +1457,7 @@ private PagedFlux listByVirtualNetworkA
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1813,28 +1469,10 @@ private PagedFlux listByVirtualNetworkA
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByVirtualNetworkSinglePage(
String resourceGroupName, String virtualNetworkName, Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (virtualNetworkName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null."));
- }
final String accept = "application/json";
Response res
- = service.listByVirtualNetworkSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, virtualNetworkName, this.client.getApiVersion(), top, accept, context);
+ = service.listByVirtualNetworkSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
@@ -1843,7 +1481,7 @@ private PagedResponse listByVirtualNetw
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1862,7 +1500,7 @@ public PagedIterable listByVirtualNetwo
* Lists DNS forwarding ruleset resource IDs attached 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 virtualNetworkName The name of the VirtualNetwork.
* @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.
@@ -1886,18 +1524,11 @@ public PagedIterable listByVirtualNetwo
* @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 forwarding rulesets along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the response of a DnsForwardingRuleset list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono