diff --git a/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml b/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml index 6a74c43f540a..24f353cc0e39 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml +++ b/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml @@ -96,9 +96,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail @@ -130,9 +130,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ProxyResource @@ -188,9 +188,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource @@ -210,9 +210,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemData @@ -262,9 +262,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource @@ -326,9 +326,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTags @@ -348,9 +348,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody @@ -382,9 +382,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset @@ -452,9 +452,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetListResult @@ -474,9 +474,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTags @@ -496,9 +496,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetProperties @@ -524,9 +524,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver @@ -594,9 +594,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList @@ -664,9 +664,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkProperties @@ -692,9 +692,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchProperties @@ -714,9 +714,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTags @@ -736,9 +736,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListProperties @@ -776,9 +776,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListResult @@ -798,9 +798,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverListResult @@ -820,9 +820,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTags @@ -842,9 +842,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy @@ -912,9 +912,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyListResult @@ -934,9 +934,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTags @@ -956,9 +956,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyProperties @@ -984,9 +984,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink @@ -1054,9 +1054,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkListResult @@ -1076,9 +1076,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags @@ -1098,9 +1098,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkProperties @@ -1120,9 +1120,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverProperties @@ -1154,9 +1154,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule @@ -1224,9 +1224,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction @@ -1246,9 +1246,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleListResult @@ -1268,15 +1268,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchProperties + + + @@ -1287,6 +1290,9 @@ DnsSecurityRuleState + + ManagedDomainList + Priority @@ -1296,9 +1302,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTags @@ -1318,15 +1324,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleProperties + + + @@ -1340,6 +1349,9 @@ DnsSecurityRuleState + + ManagedDomainList + Priority @@ -1352,9 +1364,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule @@ -1416,9 +1428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleListResult @@ -1438,9 +1450,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchProperties @@ -1460,9 +1472,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadata @@ -1482,9 +1494,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleProperties @@ -1516,9 +1528,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadata @@ -1538,9 +1550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint @@ -1608,9 +1620,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointListResult @@ -1630,9 +1642,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTags @@ -1652,9 +1664,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointProperties @@ -1680,9 +1692,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration @@ -1708,9 +1720,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint @@ -1778,9 +1790,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointListResult @@ -1800,9 +1812,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTags @@ -1822,9 +1834,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointProperties @@ -1850,9 +1862,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceListResult @@ -1872,9 +1884,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer @@ -1900,9 +1912,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRulesetListResult @@ -1922,9 +1934,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink @@ -1986,9 +1998,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkListResult @@ -2008,9 +2020,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadata @@ -2030,9 +2042,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkProperties @@ -2052,9 +2064,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadata diff --git a/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 b/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 index a559aa933f3e..75609478249a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 +++ b/generated/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 @@ -1,7 +1,7 @@ @{ GUID = '88e239b3-f615-4018-adf3-f0952a0f46a8' RootModule = './Az.DnsResolver.psm1' - ModuleVersion = '1.2.0' + ModuleVersion = '1.3.0' CompatiblePSEditions = 'Core', 'Desktop' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' diff --git a/generated/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs b/generated/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs index 501474aedf80..82f279d699ca 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ [assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.1")] [assembly: System.Reflection.AssemblyVersionAttribute("1.1.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 index b44fdaa3d62d..d0d4b46b6185 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 @@ -31,9 +31,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -53,13 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsForwardingRulesetName')] @@ -69,7 +69,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -98,7 +98,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 index b19bbea09c7a..960dc8db72bb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index ba6ca63449cd..d29123274447 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 index 0f4de522609d..d53c92a631a7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 @@ -31,9 +31,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -53,13 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverName')] @@ -69,7 +69,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -98,7 +98,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 index 664e4cb76be8..7cac5d546cd0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 @@ -29,7 +29,7 @@ Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsres .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -49,13 +49,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist #> function Get-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverDomainListName')] @@ -65,7 +65,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 index 0f1c33854b0b..93e1902dbdbf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 index 5589706ee03a..5c4eb31edf8c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 index cfa8fd384d05..02da1103c6cc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 @@ -29,9 +29,9 @@ Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolve .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -51,13 +51,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy #> function Get-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverPolicyName')] @@ -67,7 +67,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -96,7 +96,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 index 9026578616b6..9b93c3ce2f5b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -Dn .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule #> function Get-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 index c435a58d3361..05aa872d9c5a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink #> function Get-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Invoke-AzDnsResolverBulkDnsResolverDomainList.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Invoke-AzDnsResolverBulkDnsResolverDomainList.ps1 index 4a16586c56f5..cf43c094b06f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Invoke-AzDnsResolverBulkDnsResolverDomainList.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Invoke-AzDnsResolverBulkDnsResolverDomainList.ps1 @@ -25,11 +25,11 @@ Invoke-AzDnsResolverBulkDnsResolverDomainList -ResourceGroupName exampleResource Invoke-AzDnsResolverBulkDnsResolverDomainList -ResourceGroupName exampleResourceGroupName -DnsResolverDomainListName exampleDomainListName -Action "Download" -StorageUrl "https://exampleStorageAccount.blob.core.windows.net/exampleContainerName/exampleFileName.txt?sp=r&st=2025-05-16T03:54:40Z&se=2025-05-16T11:54:40Z&spr=https&sv=2024-11-04&sr=b&sig={exampleSasToken}" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork PARAMETER : Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. Action : The action to take in the request, Upload or Download. @@ -58,7 +58,7 @@ PARAMETER : Describes a DNS resolver domain list for https://learn.microsoft.com/powershell/module/az.dnsresolver/invoke-azdnsresolverbulkdnsresolverdomainlist #> function Invoke-AzDnsResolverBulkDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='BulkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Bulk', Mandatory)] @@ -111,7 +111,7 @@ param( [Parameter(ParameterSetName='Bulk', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='BulkViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk] # Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 index 9ee39edf08b0..033b122dc703 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 @@ -27,7 +27,7 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -39,7 +39,7 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -82,7 +82,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, @@ -95,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 index 32ff5145a6d6..ec525fb67112 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 @@ -27,7 +27,7 @@ $targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0. New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -95,7 +95,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -109,7 +109,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index db5287ee05b2..deffd90f696f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -25,12 +25,12 @@ New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwar New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -84,7 +84,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 index 60410bb7b4c6..4a908ae68f81 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -Vi New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -84,7 +84,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 index ac8d918cbd33..37ebbf4b0a93 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName po New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist #> function New-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -86,7 +86,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 index e2e0c248a66c..fd9aa7fd28bc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for IPConfiguration New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 index 787bbd6e61cf..aee414f8e19f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 @@ -27,7 +27,7 @@ New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -41,7 +41,7 @@ IPCONFIGURATION : IP configurations for the inbound endpoint https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -90,7 +90,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, @@ -103,7 +103,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 index b639f678e161..766c528fdcfa 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -90,7 +90,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 index b4ef604a6380..e7bf2cf7c2ed 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy #> function New-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -78,7 +78,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 index 7a081f40ed79..ec9e6066effb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -24,9 +24,11 @@ New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupNa .Example New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -Priority 100 -ManagedDomainList @("AzureDnsThreatIntel") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -38,7 +40,7 @@ DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that t https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule #> function New-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -84,14 +86,6 @@ param( # Other values will be ignored. ${IfNoneMatch}, - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] - # DNS resolver policy domains lists that the DNS security rule applies to. - # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. - ${DnsResolverDomainList}, - [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] @@ -111,6 +105,14 @@ param( # The type of action to take. ${ActionType}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] @@ -118,9 +120,17 @@ param( # The state of DNS security rule. ${DnsSecurityRuleState}, + [Parameter()] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]] + # Managed domain lists that the DNS security rule applies to. + ${ManagedDomainList}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 index dff48e8bf915..21b2d0057dd9 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -Resou New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink #> function New-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -90,7 +90,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 index c1dce3f93493..2c169fdc8463 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for Target DNS server New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 index 2a184f5a55a3..2bc5c84393bc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -251,7 +251,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -271,12 +271,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -479,9 +479,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -501,13 +501,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsForwardingRulesetName')] @@ -517,7 +517,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -546,7 +546,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] @@ -713,7 +713,7 @@ Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsres .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -733,13 +733,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist #> function Get-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverDomainListName')] @@ -749,7 +749,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. @@ -933,7 +933,7 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -953,12 +953,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1157,7 +1157,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -1177,12 +1177,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1381,7 +1381,7 @@ Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -Dn .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -1401,12 +1401,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule #> function Get-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1605,7 +1605,7 @@ Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -1625,12 +1625,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink #> function Get-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1831,9 +1831,9 @@ Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolve .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1853,13 +1853,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy #> function Get-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverPolicyName')] @@ -1869,7 +1869,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -1898,7 +1898,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] @@ -2066,9 +2066,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -2088,13 +2088,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('DnsResolverName')] @@ -2104,7 +2104,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] @@ -2133,7 +2133,7 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network. + # The name of the VirtualNetwork ${VirtualNetworkName}, [Parameter(ParameterSetName='List')] @@ -2296,11 +2296,11 @@ Invoke-AzDnsResolverBulkDnsResolverDomainList -ResourceGroupName exampleResource Invoke-AzDnsResolverBulkDnsResolverDomainList -ResourceGroupName exampleResourceGroupName -DnsResolverDomainListName exampleDomainListName -Action "Download" -StorageUrl "https://exampleStorageAccount.blob.core.windows.net/exampleContainerName/exampleFileName.txt?sp=r&st=2025-05-16T03:54:40Z&se=2025-05-16T11:54:40Z&spr=https&sv=2024-11-04&sr=b&sig={exampleSasToken}" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -2320,7 +2320,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork PARAMETER : Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. Action : The action to take in the request, Upload or Download. @@ -2329,7 +2329,7 @@ PARAMETER : Describes a DNS resolver domain list for https://learn.microsoft.com/powershell/module/az.dnsresolver/invoke-azdnsresolverbulkdnsresolverdomainlist #> function Invoke-AzDnsResolverBulkDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='BulkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Bulk', Mandatory)] @@ -2382,7 +2382,7 @@ param( [Parameter(ParameterSetName='Bulk', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='BulkViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk] # Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -2566,7 +2566,7 @@ $targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0. New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -2579,7 +2579,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2634,7 +2634,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -2648,7 +2648,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -2800,12 +2800,12 @@ New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwar New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2859,7 +2859,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, @@ -3025,7 +3025,7 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -3037,7 +3037,7 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3080,7 +3080,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, @@ -3093,7 +3093,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -3257,12 +3257,12 @@ New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName po New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist #> function New-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3318,7 +3318,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -3484,7 +3484,7 @@ New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -3498,7 +3498,7 @@ IPCONFIGURATION : IP configurations for the inbound endpoint https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3547,7 +3547,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, @@ -3560,7 +3560,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -3724,12 +3724,12 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3789,7 +3789,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -3952,9 +3952,11 @@ New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupNa .Example New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -Priority 100 -ManagedDomainList @("AzureDnsThreatIntel") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -3966,7 +3968,7 @@ DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that t https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule #> function New-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4012,14 +4014,6 @@ param( # Other values will be ignored. ${IfNoneMatch}, - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] - # DNS resolver policy domains lists that the DNS security rule applies to. - # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. - ${DnsResolverDomainList}, - [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] @@ -4039,6 +4033,14 @@ param( # The type of action to take. ${ActionType}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] @@ -4046,9 +4048,17 @@ param( # The state of DNS security rule. ${DnsSecurityRuleState}, + [Parameter()] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]] + # Managed domain lists that the DNS security rule applies to. + ${ManagedDomainList}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4212,12 +4222,12 @@ New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -Resou New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink #> function New-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4277,7 +4287,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4441,12 +4451,12 @@ New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy #> function New-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4494,7 +4504,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4658,12 +4668,12 @@ New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -Vi New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4717,7 +4727,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4907,7 +4917,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule #> @@ -5137,7 +5147,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink #> @@ -5381,7 +5391,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset #> @@ -5617,7 +5627,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist #> @@ -5854,7 +5864,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint #> @@ -6096,7 +6106,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint #> @@ -6338,7 +6348,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule #> @@ -6580,7 +6590,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink #> @@ -6822,7 +6832,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy #> @@ -7058,7 +7068,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver #> @@ -7272,7 +7282,7 @@ Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -7292,7 +7302,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork TARGETDNSSERVER : DNS servers to forward the DNS query to. IPAddress : DNS server IP address. @@ -7301,7 +7311,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7356,7 +7366,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -7364,7 +7374,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -7520,7 +7530,7 @@ Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metad .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -7540,12 +7550,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7593,7 +7603,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, @@ -7761,7 +7771,7 @@ Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -7784,12 +7794,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7832,14 +7842,14 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -8007,7 +8017,7 @@ Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @ .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -8027,12 +8037,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist #> function Update-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8081,7 +8091,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags]))] [System.Collections.Hashtable] # Tags for DNS resolver domain list. ${Tag}, @@ -8249,7 +8259,7 @@ Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -8269,12 +8279,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8322,7 +8332,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, @@ -8490,7 +8500,7 @@ Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -8510,12 +8520,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8563,7 +8573,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, @@ -8731,7 +8741,7 @@ Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -8754,12 +8764,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule #> function Update-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8815,7 +8825,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # DNS resolver policy domains lists that the DNS security rule applies to. # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. ${DnsResolverDomainList}, @@ -8827,6 +8837,14 @@ param( # The state of DNS security rule. ${DnsSecurityRuleState}, + [Parameter()] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]] + # Managed domain lists that the DNS security rule applies to. + ${ManagedDomainList}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.Int32] @@ -8835,7 +8853,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags]))] [System.Collections.Hashtable] # Tags for DNS security rule. ${Tag}, @@ -9003,7 +9021,7 @@ Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLin .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -9023,12 +9041,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink #> function Update-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9076,7 +9094,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] [System.Collections.Hashtable] # Tags for the DNS resolver policy virtual network link. ${Tag}, @@ -9244,7 +9262,7 @@ Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -9264,12 +9282,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy #> function Update-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9311,7 +9329,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags]))] [System.Collections.Hashtable] # Tags for DNS resolver policy. ${Tag}, @@ -9479,7 +9497,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -9499,12 +9517,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9546,7 +9564,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -9709,12 +9727,12 @@ Create a in-memory object for IPConfiguration New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -9823,12 +9841,12 @@ Create a in-memory object for Target DNS server New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 index 04f4e6f0f9e8..f33fecc9ef0a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 @@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 index c3ce8e17aaf4..5a136dbfad6c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 @@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index 81d32fbba8d4..fa581b9afeaa 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 index 4168dfdb9dc2..bda86a8a2eef 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 index 5d4bc7327f8a..fd17e91800ff 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 index a45e5d5c1460..36ef841395ff 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 @@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 index ea159bafdf66..c33473f852eb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 index 88066e0025cb..5d5593ad8037 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 index 0f1b5556e292..c763d0427920 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 index 2c47f2eaa371..682c705002d3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink #> diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 index 54eb2da88840..693bf2a9d9d3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -51,12 +51,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -99,14 +99,14 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 index e8fac1fc6321..3161405c5684 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork TARGETDNSSERVER : DNS servers to forward the DNS query to. IPAddress : DNS server IP address. @@ -57,7 +57,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -112,7 +112,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -120,7 +120,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index 3298acc89e9c..2175c300b1b7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metad .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -101,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 index e695df03cf4b..3324e32f7683 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -95,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 index e94687937259..3ce692b8b6af 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @ .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist #> function Update-AzDnsResolverDomainList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -102,7 +102,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags]))] [System.Collections.Hashtable] # Tags for DNS resolver domain list. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 index 3c3c00760ae7..a8c51c7e7bee 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -101,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 index e9cfef04f6a6..02135a0635c8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -101,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 index aada9296f897..8ad9b5da2d79 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy #> function Update-AzDnsResolverPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -95,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags]))] [System.Collections.Hashtable] # Tags for DNS resolver policy. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 index c1e1063330ad..bc3a229bfcb3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES @@ -51,12 +51,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule #> function Update-AzDnsResolverPolicyDnsSecurityRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -112,7 +112,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]] # DNS resolver policy domains lists that the DNS security rule applies to. # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. ${DnsResolverDomainList}, @@ -124,6 +124,14 @@ param( # The state of DNS security rule. ${DnsSecurityRuleState}, + [Parameter()] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]] + # Managed domain lists that the DNS security rule applies to. + ${ManagedDomainList}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.Int32] @@ -132,7 +140,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags]))] [System.Collections.Hashtable] # Tags for DNS security rule. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 index 3df12aa244ae..4293ad2b82ac 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 +++ b/generated/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLin .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -48,12 +48,12 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. - [VirtualNetworkName ]: The name of the virtual network. + [VirtualNetworkName ]: The name of the VirtualNetwork .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink #> function Update-AzDnsResolverPolicyVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -101,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] [System.Collections.Hashtable] # Tags for the DNS resolver policy virtual network link. ${Tag}, diff --git a/generated/DnsResolver/DnsResolver.Autorest/generate-info.json b/generated/DnsResolver/DnsResolver.Autorest/generate-info.json index 96ad66c98dfe..d9a27ac9d5da 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generate-info.json +++ b/generated/DnsResolver/DnsResolver.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "1263076c-8da3-4d87-a6a4-d06136748049" + "generate_Id": "dddae1c8-537b-4675-9ae6-78580ed673be" } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs index d9fb49710f4a..f16b6c658b12 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs @@ -31,9 +31,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -59,11 +59,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -91,9 +91,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -131,11 +131,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -158,7 +158,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -171,7 +171,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -254,19 +255,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -275,13 +273,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -312,7 +310,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -347,9 +345,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -375,7 +373,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -400,9 +398,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -440,7 +438,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -460,7 +458,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -473,7 +471,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -557,19 +555,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -590,7 +585,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -644,9 +639,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -685,9 +680,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -738,7 +733,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -756,13 +751,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -812,9 +807,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -854,9 +849,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -897,9 +892,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -952,7 +947,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -970,13 +965,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1017,7 +1012,7 @@ public partial class DnsResolver /// Lists DNS forwarding ruleset resource IDs attached to a virtual network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1027,9 +1022,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1072,9 +1067,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1130,7 +1125,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1148,13 +1143,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1175,7 +1170,7 @@ public partial class DnsResolver /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// @@ -1205,9 +1200,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1255,7 +1250,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1273,13 +1268,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1328,9 +1323,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1356,7 +1351,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1382,9 +1377,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1422,7 +1417,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1445,7 +1440,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1458,7 +1453,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -1541,19 +1537,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1562,13 +1555,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1597,7 +1590,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1632,9 +1625,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1661,11 +1654,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1695,9 +1688,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsBulkViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsBulkViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1736,11 +1729,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1763,7 +1756,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1776,7 +1769,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -1860,19 +1853,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1881,13 +1871,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1918,7 +1908,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsBulk_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1955,9 +1945,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1983,11 +1973,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2015,9 +2005,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2055,11 +2045,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2084,7 +2074,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2097,7 +2087,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -2180,19 +2171,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2201,13 +2189,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2238,7 +2226,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2272,9 +2260,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2300,7 +2288,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2321,9 +2309,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2361,7 +2349,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2380,7 +2368,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2393,7 +2381,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -2477,19 +2465,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2504,7 +2489,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2561,9 +2546,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsGet(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsGet(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2602,9 +2587,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2655,7 +2640,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2673,13 +2658,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2732,9 +2717,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2774,9 +2759,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2817,9 +2802,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2872,7 +2857,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2890,13 +2875,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2945,9 +2930,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2995,7 +2980,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3013,13 +2998,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3068,9 +3053,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3096,7 +3081,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3122,9 +3107,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3162,7 +3147,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3185,7 +3170,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3198,7 +3183,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3281,19 +3267,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3302,13 +3285,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3337,7 +3320,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3373,9 +3356,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3401,11 +3384,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3433,9 +3416,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3473,11 +3456,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3500,7 +3483,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3513,7 +3496,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3596,19 +3580,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3617,13 +3598,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3654,7 +3635,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3688,9 +3669,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3716,7 +3697,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3737,9 +3718,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3777,7 +3758,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3796,7 +3777,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3809,7 +3790,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3893,19 +3874,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3920,7 +3898,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3977,9 +3955,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4018,9 +3996,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4071,7 +4049,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4089,13 +4067,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4148,9 +4126,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4190,9 +4168,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4233,9 +4211,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4288,7 +4266,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4306,13 +4284,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4353,7 +4331,7 @@ public partial class DnsResolver /// Lists DNS resolver policy resource IDs linked to a virtual network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4362,9 +4340,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4404,9 +4382,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4460,7 +4438,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4478,13 +4456,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4505,7 +4483,7 @@ public partial class DnsResolver /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4520,9 +4498,6 @@ public partial class DnsResolver await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); - await eventListener.AssertMinimumLength(nameof(virtualNetworkName),virtualNetworkName,1); - - await eventListener.AssertRegEx(nameof(virtualNetworkName),virtualNetworkName,@"^.+$"); } } @@ -4537,9 +4512,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4587,7 +4562,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4605,13 +4580,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4660,9 +4635,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4688,7 +4663,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4714,9 +4689,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4754,7 +4729,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4777,7 +4752,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4790,7 +4765,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4873,19 +4849,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4894,13 +4867,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4929,7 +4902,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4967,9 +4940,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4997,11 +4970,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5029,9 +5002,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5072,11 +5045,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5101,7 +5074,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5114,7 +5087,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -5197,19 +5171,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5218,13 +5189,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5257,7 +5228,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5299,9 +5270,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5329,7 +5300,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5352,9 +5323,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5395,7 +5366,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5416,7 +5387,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5429,7 +5400,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -5513,19 +5484,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5540,7 +5508,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5605,9 +5573,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5648,9 +5616,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5706,7 +5674,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5724,13 +5692,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5791,9 +5759,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5836,9 +5804,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5894,7 +5862,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5912,13 +5880,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5978,9 +5946,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6008,7 +5976,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6034,9 +6002,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6077,7 +6045,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6102,7 +6070,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6115,7 +6083,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -6198,19 +6167,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6219,13 +6185,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6256,7 +6222,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6296,9 +6262,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6324,11 +6290,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6356,9 +6322,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6396,11 +6362,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6423,7 +6389,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6436,7 +6402,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -6519,19 +6486,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6540,13 +6504,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6577,7 +6541,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6609,9 +6573,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6637,7 +6601,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6659,9 +6623,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6699,7 +6663,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6719,7 +6683,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6732,7 +6696,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -6816,19 +6780,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6849,7 +6810,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6903,9 +6864,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversGet(string subscriptionId, string resourceGroupName, string dnsResolverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversGet(string subscriptionId, string resourceGroupName, string dnsResolverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6944,9 +6905,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6997,7 +6958,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7015,13 +6976,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7071,9 +7032,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7113,9 +7074,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7156,9 +7117,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7209,7 +7170,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7227,13 +7188,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7274,7 +7235,7 @@ public partial class DnsResolver /// Lists DNS resolver resource IDs linked to a virtual network. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -7284,9 +7245,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7329,9 +7290,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7385,7 +7346,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7403,13 +7364,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7430,7 +7391,7 @@ public partial class DnsResolver /// /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The name of the VirtualNetwork /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// @@ -7460,9 +7421,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7510,7 +7471,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7528,13 +7489,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7583,9 +7544,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7611,7 +7572,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -7637,9 +7598,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolversUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7677,7 +7638,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -7700,7 +7661,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7713,7 +7674,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -7796,19 +7758,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7817,13 +7776,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7852,7 +7811,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -7886,9 +7845,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7916,11 +7875,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -7948,9 +7907,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7991,11 +7950,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8018,7 +7977,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8031,7 +7990,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -8114,19 +8074,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8135,13 +8092,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8173,7 +8130,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -8214,9 +8171,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8244,7 +8201,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8267,9 +8224,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8310,7 +8267,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8329,7 +8286,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8342,7 +8299,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -8426,19 +8383,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8453,7 +8407,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8516,9 +8470,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8559,9 +8513,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8615,7 +8569,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8633,13 +8587,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8699,9 +8653,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8744,9 +8698,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8800,7 +8754,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8818,13 +8772,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8883,9 +8837,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8913,7 +8867,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8939,9 +8893,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8982,7 +8936,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -9005,7 +8959,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9018,7 +8972,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -9101,19 +9056,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -9122,13 +9074,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9158,7 +9110,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -9200,9 +9152,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9230,11 +9182,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -9263,9 +9215,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9306,11 +9258,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -9334,7 +9286,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9352,19 +9304,19 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Created: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9396,7 +9348,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -9432,9 +9384,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9462,7 +9414,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -9486,9 +9438,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9529,7 +9481,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -9549,7 +9501,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9579,7 +9531,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9636,9 +9588,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9679,9 +9631,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9735,7 +9687,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9753,13 +9705,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9813,9 +9765,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9858,9 +9810,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9914,7 +9866,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9932,13 +9884,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9994,9 +9946,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10024,7 +9976,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10050,9 +10002,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10093,7 +10045,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10116,7 +10068,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10134,13 +10086,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10170,7 +10122,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10205,9 +10157,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10235,11 +10187,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10267,9 +10219,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10310,11 +10262,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10337,7 +10289,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10350,7 +10302,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -10433,19 +10386,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -10454,13 +10404,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10492,7 +10442,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10528,9 +10478,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10558,7 +10508,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10582,9 +10532,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10625,7 +10575,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -10645,7 +10595,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10658,7 +10608,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -10742,19 +10692,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -10775,7 +10722,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10832,9 +10779,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10875,9 +10822,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10931,7 +10878,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10949,13 +10896,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11009,9 +10956,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11054,9 +11001,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11110,7 +11057,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11128,13 +11075,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11190,9 +11137,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11220,7 +11167,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11246,9 +11193,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11289,7 +11236,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11312,7 +11259,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11325,7 +11272,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -11408,19 +11356,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11429,13 +11374,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11465,7 +11410,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11500,9 +11445,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11530,11 +11475,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11562,9 +11507,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11605,11 +11550,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11632,7 +11577,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11645,7 +11590,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -11728,19 +11674,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11749,13 +11692,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11787,7 +11730,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11823,9 +11766,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11853,7 +11796,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11877,9 +11820,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11920,7 +11863,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11940,7 +11883,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11953,7 +11896,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -12037,19 +11980,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -12070,7 +12010,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12127,9 +12067,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12170,9 +12110,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12226,7 +12166,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12244,13 +12184,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12304,9 +12244,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12349,9 +12289,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12405,7 +12345,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12423,13 +12363,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12485,9 +12425,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12515,7 +12455,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -12541,9 +12481,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12584,7 +12524,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -12607,7 +12547,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12620,7 +12560,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -12703,19 +12644,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -12724,13 +12662,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12760,7 +12698,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -12795,9 +12733,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12825,11 +12763,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -12857,9 +12795,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12900,11 +12838,11 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } if (null != ifNoneMatch) { - request.Headers.Add("If-None-Match",ifNoneMatch); + request.Headers.Add("if-none-match",ifNoneMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -12927,7 +12865,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12940,7 +12878,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -13023,19 +12962,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -13044,13 +12980,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13082,7 +13018,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -13118,9 +13054,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13148,7 +13084,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -13172,9 +13108,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13215,7 +13151,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -13235,7 +13171,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13248,7 +13184,7 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -13332,19 +13268,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -13365,7 +13298,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13422,9 +13355,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13465,9 +13398,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13521,7 +13454,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13539,13 +13472,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13599,9 +13532,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13644,9 +13577,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13700,7 +13633,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13718,13 +13651,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13780,9 +13713,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13810,7 +13743,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -13836,9 +13769,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2025-05-01"; + var apiVersion = @"2025-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13879,7 +13812,7 @@ public partial class DnsResolver // add headers parameters if (null != ifMatch) { - request.Headers.Add("If-Match",ifMatch); + request.Headers.Add("if-match",ifMatch); } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -13902,7 +13835,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13915,7 +13848,8 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -13998,19 +13932,16 @@ public partial class DnsResolver continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14019,13 +13950,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14055,7 +13986,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.PowerShell.cs deleted file mode 100644 index d6099e548088..000000000000 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.PowerShell.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - - /// The response to an enumeration operation on DNS resolvers. - [System.ComponentModel.TypeConverter(typeof(DnsResolverListResultTypeConverter))] - public partial class DnsResolverListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DnsResolverListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DnsResolverListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DnsResolverListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DnsResolverListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The response to an enumeration operation on DNS resolvers. - [System.ComponentModel.TypeConverter(typeof(DnsResolverListResultTypeConverter))] - public partial interface IDnsResolverListResult - - { - - } -} \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.PowerShell.cs index bc0602f19564..568dbcdf4795 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.TypeConverter.cs index 8785c4a644af..8f54c269283f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.cs similarity index 71% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.cs index e8071fb78239..fc467a1245fa 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// An error message public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal { /// The error code [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// Extra error information [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody _error; /// The error message body [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody()); set => this._error = value; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody()); set { {_error = value;} } } /// The target resource of the error message [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// Creates an new instance. public CloudError() @@ -63,8 +63,8 @@ public partial interface ICloudError : ReadOnly = false, Description = @"Extra error information", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -90,9 +90,9 @@ internal partial interface ICloudErrorInternal /// The error code string Code { get; set; } /// Extra error information - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get; set; } /// The error message body - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody Error { get; set; } /// A description of what caused the error string Message { get; set; } /// The target resource of the error message diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.json.cs index 42ff4d2b1371..b65dcc00f67a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudError.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json. { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.PowerShell.cs index c9ceb529e7f9..03ae2e1e3b92 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudErrorBody partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudErrorBody(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudErrorBody(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.TypeConverter.cs index 3cb8688e5030..e9fe64777d07 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.cs index f789672a9d67..58ed750515df 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The body of an error message public partial class CloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBodyInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBodyInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CloudErrorBody : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] _detail; /// Extra error information [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. private string _message; @@ -65,8 +65,8 @@ public partial interface ICloudErrorBody : ReadOnly = false, Description = @"Extra error information", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -92,7 +92,7 @@ internal partial interface ICloudErrorBodyInternal /// The error code string Code { get; set; } /// Extra error information - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error string Message { get; set; } /// The target resource of the error message diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.json.cs similarity index 92% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.json.cs index e304459a3f2f..f0bcec2555f8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/CloudErrorBody.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/CloudErrorBody.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -68,18 +68,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new CloudErrorBody(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.PowerShell.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.PowerShell.cs index edcef55a4665..6e013d4880b6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRuleset(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRuleset(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,77 +98,77 @@ internal DnsForwardingRuleset(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -181,71 +183,71 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -255,7 +257,7 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.TypeConverter.cs index e088db5a336f..f0e2b5aa303f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.cs similarity index 67% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.cs index cff688918993..9a90641b316f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.cs @@ -3,33 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset. public partial class DnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -37,97 +41,97 @@ public partial class DnsForwardingRuleset : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties _property; /// Properties of the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid for the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsForwardingRuleset() @@ -150,7 +154,7 @@ public DnsForwardingRuleset() /// Describes a DNS forwarding ruleset. public partial interface IDnsForwardingRuleset : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules @@ -161,13 +165,17 @@ public partial interface IDnsForwardingRuleset : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } - /// ETag of the DNS forwarding ruleset. + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + /// + /// "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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS forwarding ruleset.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -194,17 +202,21 @@ public partial interface IDnsForwardingRuleset : } /// Describes a DNS forwarding ruleset. internal partial interface IDnsForwardingRulesetInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } - /// ETag of the DNS forwarding ruleset. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + /// + /// "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.") + /// string Etag { get; set; } /// Properties of the DNS forwarding ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties Property { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.json.cs index 4c663715631f..3d4ece9dc4f8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRuleset.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRuleset.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRuleset(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.PowerShell.cs similarity index 71% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.PowerShell.cs index 459812bca0b2..3abda4d4a0ac 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. [System.ComponentModel.TypeConverter(typeof(DnsForwardingRulesetListResultTypeConverter))] public partial class DnsForwardingRulesetListResult { @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetListResult(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,14 +137,14 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. [System.ComponentModel.TypeConverter(typeof(DnsForwardingRulesetListResultTypeConverter))] public partial interface IDnsForwardingRulesetListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.TypeConverter.cs index 6741ac80c88a..120e5c00b75b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.cs similarity index 57% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.cs index f9c0d08d2b11..2e7753476ef1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. public partial class DnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[] _value; - /// Enumeration of the DNS forwarding rulesets. + /// The DnsForwardingRuleset items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsForwardingRulesetListResult() @@ -36,36 +33,36 @@ public DnsForwardingRulesetListResult() } } - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. public partial interface IDnsForwardingRulesetListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS forwarding rulesets. + string NextLink { get; set; } + /// The DnsForwardingRuleset items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS forwarding rulesets.", + Description = @"The DnsForwardingRuleset items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[] Value { get; set; } } - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. internal partial interface IDnsForwardingRulesetListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS forwarding rulesets. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset[] Value { get; set; } + /// The DnsForwardingRuleset items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.json.cs index ff6cdb0adff7..3859785585a0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetListResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS forwarding rulesets. + /// The response of a DnsForwardingRuleset list operation. public partial class DnsForwardingRulesetListResult { @@ -65,19 +65,19 @@ internal DnsForwardingRulesetListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetListResult(json) : null; } @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.PowerShell.cs similarity index 70% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.PowerShell.cs index 49f9973baf60..9a02e395f5a2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetPatch(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.TypeConverter.cs index 960fefb8ea18..07cad41d28bf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.cs similarity index 77% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.cs index 3c52391def42..52f01e72ab4b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset PATCH operation. public partial class DnsForwardingRulesetPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] _dnsResolverOutboundEndpoint; /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags _tag; /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsForwardingRulesetPatch() @@ -49,16 +49,16 @@ public partial interface IDnsForwardingRulesetPatch : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } /// Describes a DNS forwarding ruleset PATCH operation. @@ -69,9 +69,9 @@ internal partial interface IDnsForwardingRulesetPatchInternal /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.json.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.json.cs index acc8162f70b8..aebb93c24149 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsForwardingRulesetPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} + {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetPatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.PowerShell.cs index de31bc7eec01..963f23cecae3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Collections.IDictionary co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs index 892ab4fa7e2e..dfc9f98a4828 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.cs index b6076a64a27e..4fd8f921ccec 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsForwardingRulesetPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.dictionary.cs index 0c9de3456ac9..a25d6f61fcb6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.json.cs index 387808c496ab..4dbe300fa2e9 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsForwardingRulesetPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.PowerShell.cs similarity index 67% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.PowerShell.cs index 2aeb873b45f0..31077900dbce 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsForwardingRulesetProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.TypeConverter.cs index f777e8967417..ad31ea839bea 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.cs index 750cb7f386e7..c8bf88cf4c8f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.cs @@ -3,31 +3,31 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS forwarding ruleset. public partial class DnsForwardingRulesetProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] _dnsResolverOutboundEndpoint; /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -65,8 +65,8 @@ public partial interface IDnsForwardingRulesetProperties : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. @@ -96,7 +96,7 @@ internal partial interface IDnsForwardingRulesetPropertiesInternal /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.json.cs similarity index 92% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.json.cs index 3054da0dd8ff..1e93939279d1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsForwardingRulesetProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsForwardingRulesetProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsForwardingRulesetProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.PowerShell.cs similarity index 63% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.PowerShell.cs index 733dbd8afa37..5d6e96c11b22 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DnsResolver partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolver(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolver(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,85 +96,85 @@ internal DnsResolver(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,79 +189,79 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -271,7 +271,7 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.TypeConverter.cs index 321e502999a8..ed03d3a4a0de 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.cs similarity index 67% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.cs index 15694f6e2a9b..0c99d00ab374 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.cs @@ -3,26 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver. public partial class DnsResolver : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -30,113 +34,113 @@ public partial class DnsResolver : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for State - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties _property; /// Properties of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will /// be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the DNS resolver resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; } /// /// The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).DnsResolverState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } /// Creates an new instance. public DnsResolver() @@ -159,13 +163,17 @@ public DnsResolver() /// Describes a DNS resolver. public partial interface IDnsResolver : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS resolver.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -210,12 +218,16 @@ public partial interface IDnsResolver : } /// Describes a DNS resolver. internal partial interface IDnsResolverInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { - /// ETag 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.") + /// string Etag { get; set; } /// Properties of the DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties Property { get; set; } /// /// The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will /// be ignored. @@ -228,7 +240,7 @@ internal partial interface IDnsResolverInternal : /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.json.cs index 480ef0bbf298..8fecc5e89b03 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolver.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolver.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsResolver(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolver(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.PowerShell.cs index a59f93697a9d..0e99db387579 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverDomainList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,81 +98,81 @@ internal DnsResolverDomainList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DomainsUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).DomainsUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).DomainsUrl, global::System.Convert.ToString); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -185,75 +187,75 @@ internal DnsResolverDomainList(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DomainsUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal)this).DomainsUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).DomainsUrl, global::System.Convert.ToString); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -263,7 +265,7 @@ internal DnsResolverDomainList(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.TypeConverter.cs index 5eead515eebd..0e351cc0f0ff 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.cs index fad8b25bb4a8..3164f91efbe4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.cs @@ -3,39 +3,43 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver domain list. public partial class DnsResolverDomainList : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// /// The domains in the domain list. Will be null if user is using large domain list. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } /// /// The URL for bulk upload or download for domain lists containing larger set of domains. This will be populated if domains /// is empty or null. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string DomainsUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl; } + public string DomainsUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl; } /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -43,100 +47,100 @@ public partial class DnsResolverDomainList : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for DomainsUrl - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal.DomainsUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal.DomainsUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).DomainsUrl = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties _property; /// Properties of the DNS resolver domain list. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this /// value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the DNS resolver domain list resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsResolverDomainList() @@ -159,7 +163,7 @@ public DnsResolverDomainList() /// Describes a DNS resolver domain list. public partial interface IDnsResolverDomainList : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { /// /// The domains in the domain list. Will be null if user is using large domain list. @@ -182,11 +186,15 @@ public partial interface IDnsResolverDomainList : SerializedName = @"domainsUrl", PossibleTypes = new [] { typeof(string) })] string DomainsUrl { get; } - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS resolver domain list.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -213,7 +221,7 @@ public partial interface IDnsResolverDomainList : } /// Describes a DNS resolver domain list. internal partial interface IDnsResolverDomainListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { /// /// The domains in the domain list. Will be null if user is using large domain list. @@ -224,10 +232,14 @@ internal partial interface IDnsResolverDomainListInternal : /// is empty or null. /// string DomainsUrl { get; set; } - /// ETag 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.") + /// string Etag { get; set; } /// Properties of the DNS resolver domain list. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties Property { get; set; } /// /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this /// value will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.json.cs index acfbe241e5ef..fb2701b7b5c4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainList.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsResolverDomainList(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainList(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.PowerShell.cs similarity index 70% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.PowerShell.cs index e52ac1bd7f6a..12a98bd11d2e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListBulk partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListBulk(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListBulk(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsResolverDomainListBulk(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); } if (content.Contains("StorageUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).StorageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).StorageUrl, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsResolverDomainListBulk(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); } if (content.Contains("StorageUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal)this).StorageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal)this).StorageUrl, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal DnsResolverDomainListBulk(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.TypeConverter.cs index 5c17a9e830aa..28f4c918d32a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.cs similarity index 74% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.cs index 5accb17a4640..547dc2e8b92b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. public partial class DnsResolverDomainListBulk : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal { /// The action to take in the request, Upload or Download. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)Property).Action = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)Property).Action = value ; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties _property; /// Properties of the DNS resolver domain list upload or download request. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkProperties()); set => this._property = value; } /// /// The storage account blob file URL to be used in the bulk upload or download request of DNS resolver domain list. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string StorageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)Property).StorageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)Property).StorageUrl = value ; } + public string StorageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)Property).StorageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)Property).StorageUrl = value ; } /// Creates an new instance. public DnsResolverDomainListBulk() @@ -70,7 +70,7 @@ internal partial interface IDnsResolverDomainListBulkInternal /// The action to take in the request, Upload or Download. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action Action { get; set; } /// Properties of the DNS resolver domain list upload or download request. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties Property { get; set; } /// /// The storage account blob file URL to be used in the bulk upload or download request of DNS resolver domain list. /// diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.json.cs index 5f9d1b469aa3..565323c7e896 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulk.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulk.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverDomainListBulk(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulkProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulkProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListBulk(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.PowerShell.cs similarity index 76% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.PowerShell.cs index 59a8bef7d72d..e732ef2de835 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,35 +57,35 @@ public partial class DnsResolverDomainListBulkProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListBulkProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListBulkProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +100,17 @@ internal DnsResolverDomainListBulkProperties(global::System.Collections.IDiction // actually deserialize if (content.Contains("StorageUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl, global::System.Convert.ToString); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +125,11 @@ internal DnsResolverDomainListBulkProperties(global::System.Management.Automatio // actually deserialize if (content.Contains("StorageUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl = (string) content.GetValueForProperty("StorageUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).StorageUrl, global::System.Convert.ToString); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.Action.CreateFrom); } AfterDeserializePSObject(content); } @@ -141,7 +141,7 @@ internal DnsResolverDomainListBulkProperties(global::System.Management.Automatio /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.TypeConverter.cs index 065b8fa36212..90c2df34af61 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.cs index ee48aba02fe6..e0c92fd1714c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 /// Describes DNS resolver domain list properties for bulk UPLOAD or DOWNLOAD operations. /// public partial class DnsResolverDomainListBulkProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkPropertiesInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.json.cs index 548a3f8b4b0f..8bbb55726625 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListBulkProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListBulkProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DnsResolverDomainListBulkProperties(Microsoft.Azure.PowerShell.Cmdlets. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListBulkProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.PowerShell.cs index 8a611ce0ea1a..fb0fcd9e19ea 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsResolverDomainListPatch(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); } if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsResolverDomainListPatch(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); } if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal DnsResolverDomainListPatch(global::System.Management.Automation.PSObjec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.TypeConverter.cs index f834a148bbeb..1afddcb7358a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.cs index 267e11345703..6ffb10a0914e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.cs @@ -3,36 +3,36 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver domain list for PATCH operation. public partial class DnsResolverDomainListPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal { /// The domains in the domain list. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties _property; /// Updatable properties of the DNS resolver domain list. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags _tag; /// Tags for DNS resolver domain list. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsResolverDomainListPatch() @@ -58,8 +58,8 @@ public partial interface IDnsResolverDomainListPatch : ReadOnly = false, Description = @"Tags for DNS resolver domain list.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags Tag { get; set; } } /// Describes a DNS resolver domain list for PATCH operation. @@ -69,9 +69,9 @@ internal partial interface IDnsResolverDomainListPatchInternal /// The domains in the domain list. string[] Domain { get; set; } /// Updatable properties of the DNS resolver domain list. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties Property { get; set; } /// Tags for DNS resolver domain list. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.json.cs index 6b4edce9a8b2..86c7df769a85 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsResolverDomainListPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.PowerShell.cs similarity index 81% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.PowerShell.cs index 7bcede881336..3b5445425cb6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListPatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListPatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListPatchProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal DnsResolverDomainListPatchProperties(global::System.Collections.IDictio // actually deserialize if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,7 +119,7 @@ internal DnsResolverDomainListPatchProperties(global::System.Management.Automati // actually deserialize if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } @@ -131,7 +131,7 @@ internal DnsResolverDomainListPatchProperties(global::System.Management.Automati /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs index 4aa4fa83b1d1..ff76612fba1d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.cs index ecfd6320135d..501cb6647a5f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the updatable properties of a DNS resolver domain list. public partial class DnsResolverDomainListPatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchPropertiesInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.json.cs index ffed86291229..adfd6f34d630 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,13 +70,13 @@ internal DnsResolverDomainListPatchProperties(Microsoft.Azure.PowerShell.Cmdlets } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.PowerShell.cs index 9976043f66f2..3e3ef8c98763 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsResolverDomainListPatchTags(global::System.Collections.IDictionary c } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsResolverDomainListPatchTags(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.TypeConverter.cs index f1624f15133f..40013d9c4022 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.cs index 63ea575b9249..6855de9579a6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS resolver domain list. public partial class DnsResolverDomainListPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.dictionary.cs index dbdf05c99dff..87007bb362ae 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.json.cs index 0153aae0a5ae..862e7f428135 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverDomainListPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsRe } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.PowerShell.cs index 415b3716f747..ed7d987374de 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,25 +98,25 @@ internal DnsResolverDomainListProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DomainsUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,19 +131,19 @@ internal DnsResolverDomainListProperties(global::System.Management.Automation.PS // actually deserialize if (content.Contains("Domain")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DomainsUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl = (string) content.GetValueForProperty("DomainsUrl",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).DomainsUrl, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -153,7 +153,7 @@ internal DnsResolverDomainListProperties(global::System.Management.Automation.PS /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.TypeConverter.cs index 499ffdf84f8a..0fd4e680c32a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.cs similarity index 92% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.cs index 00344051d71e..8ae71e20e741 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS resolver domain list. public partial class DnsResolverDomainListProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal { /// Backing field for property. @@ -33,13 +33,13 @@ public partial class DnsResolverDomainListProperties : public string DomainsUrl { get => this._domainsUrl; } /// Internal Acessors for DomainsUrl - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal.DomainsUrl { get => this._domainsUrl; set { {_domainsUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal.DomainsUrl { get => this._domainsUrl; set { {_domainsUrl = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.json.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.json.cs index 3240a86c3d46..c43d32703d40 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DnsResolverDomainListProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsR } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.PowerShell.cs similarity index 71% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.PowerShell.cs index 60cf716b053f..e61e2b82b91a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] public partial class DnsResolverDomainListResult { @@ -55,35 +55,35 @@ public partial class DnsResolverDomainListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverDomainListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverDomainListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsResolverDomainListResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsResolverDomainListResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,14 +137,14 @@ internal DnsResolverDomainListResult(global::System.Management.Automation.PSObje /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] public partial interface IDnsResolverDomainListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.TypeConverter.cs index 149d83ec1ede..b29992ec7a90 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.cs similarity index 56% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.cs index 97a671170c9b..a8cb0940898d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. public partial class DnsResolverDomainListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[] _value; - /// Enumeration of the DNS resolver domain lists. + /// The DnsResolverDomainList items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsResolverDomainListResult() @@ -36,36 +33,36 @@ public DnsResolverDomainListResult() } } - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. public partial interface IDnsResolverDomainListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS resolver domain lists. + string NextLink { get; set; } + /// The DnsResolverDomainList items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS resolver domain lists.", + Description = @"The DnsResolverDomainList items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[] Value { get; set; } } - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. internal partial interface IDnsResolverDomainListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS resolver domain lists. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList[] Value { get; set; } + /// The DnsResolverDomainList items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.json.cs index 9771b66162fe..536bab286e33 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverDomainListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverDomainListResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolver domain lists. + /// The response of a DnsResolverDomainList list operation. public partial class DnsResolverDomainListResult { @@ -65,19 +65,19 @@ internal DnsResolverDomainListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResol { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListResult(json) : null; } @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.PowerShell.cs similarity index 73% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.PowerShell.cs index 22fc49a21e44..ac4aadad2965 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// The response to an enumeration operation on virtual network links. - [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] - public partial class VirtualNetworkLinkListResult + /// The response of a DnsResolver list operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverListResultTypeConverter))] + public partial class DnsResolverListResult { /// @@ -55,51 +55,39 @@ public partial class VirtualNetworkLinkListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new VirtualNetworkLinkListResult(content); + return new DnsResolverListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new VirtualNetworkLinkListResult(content); + return new DnsResolverListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary content) + internal DnsResolverListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -110,21 +98,21 @@ internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObject content) + internal DnsResolverListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -135,18 +123,30 @@ internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on virtual network links. - [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] - public partial interface IVirtualNetworkLinkListResult + /// The response of a DnsResolver list operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverListResultTypeConverter))] + public partial interface IDnsResolverListResult { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.TypeConverter.cs index 7f9ef370e187..c63cb1217d3e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.cs similarity index 58% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.cs index 6283c43a4923..166f07708f31 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolvers. + /// The response of a DnsResolver list operation. public partial class DnsResolverListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[] _value; - /// Enumeration of the DNS resolvers. + /// The DnsResolver items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsResolverListResult() @@ -36,36 +33,36 @@ public DnsResolverListResult() } } - /// The response to an enumeration operation on DNS resolvers. + /// The response of a DnsResolver list operation. public partial interface IDnsResolverListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS resolvers. + string NextLink { get; set; } + /// The DnsResolver items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS resolvers.", + Description = @"The DnsResolver items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[] Value { get; set; } } - /// The response to an enumeration operation on DNS resolvers. + /// The response of a DnsResolver list operation. internal partial interface IDnsResolverListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS resolvers. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver[] Value { get; set; } + /// The DnsResolver items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.json.cs similarity index 86% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.json.cs index 754e223d0f50..90d866cdf250 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverListResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolvers. + /// The response of a DnsResolver list operation. public partial class DnsResolverListResult { @@ -65,19 +65,19 @@ internal DnsResolverListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverListResult(json) : null; } @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.PowerShell.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.PowerShell.cs index 31e7ec318732..fd464db578c0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DnsResolverPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,7 +119,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.TypeConverter.cs index b0d7a0d13bf8..ccf76249ae87 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.cs index 591c40bc62e1..94e25b50b976 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver for PATCH operation. public partial class DnsResolverPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags _tag; /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsResolverPatch() @@ -36,8 +36,8 @@ public partial interface IDnsResolverPatch : ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags Tag { get; set; } } /// Describes a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IDnsResolverPatchInternal { /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.json.cs index 52dcdbfb8237..0c9031fec41c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.PowerShell.cs index c8dbda24da19..80059742a098 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,7 +102,7 @@ internal DnsResolverPatchTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,7 +125,7 @@ internal DnsResolverPatchTags(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.TypeConverter.cs index 9341b393b9f6..c87dce8bf758 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.cs similarity index 92% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.cs index 4ce328939e30..06797b00803b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsResolverPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.dictionary.cs index 99f70fc36283..cd1683421acc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.json.cs index 9e05a749ed66..b52f9f1fb0fe 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.PowerShell.cs similarity index 67% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.PowerShell.cs index 1bd37bf6614b..f4ad0d8bf81a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPolicy partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicy(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicy(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,73 +98,73 @@ internal DnsResolverPolicy(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -177,67 +179,67 @@ internal DnsResolverPolicy(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -247,7 +249,7 @@ internal DnsResolverPolicy(global::System.Management.Automation.PSObject content /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.TypeConverter.cs index d53da57df108..84318788f347 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.cs similarity index 66% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.cs index add273d64da8..32d3124a0208 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.cs @@ -3,26 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver policy. public partial class DnsResolverPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -30,97 +34,97 @@ public partial class DnsResolverPolicy : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties _property; /// Properties of the DNS resolver policy. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the DNS resolver policy resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsResolverPolicy() @@ -143,13 +147,17 @@ public DnsResolverPolicy() /// Describes a DNS resolver policy. public partial interface IDnsResolverPolicy : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS resolver policy.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -176,12 +184,16 @@ public partial interface IDnsResolverPolicy : } /// Describes a DNS resolver policy. internal partial interface IDnsResolverPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { - /// ETag 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.") + /// string Etag { get; set; } /// Properties of the DNS resolver policy. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties Property { get; set; } /// /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value /// will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.json.cs index 970654788120..8f8028b608b3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicy.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicy.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsResolverPolicy(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtim { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicy(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.PowerShell.cs index 2b79953d6511..1746b243f16b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] public partial class DnsResolverPolicyListResult { @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsResolverPolicyListResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsResolverPolicyListResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,14 +137,14 @@ internal DnsResolverPolicyListResult(global::System.Management.Automation.PSObje /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] public partial interface IDnsResolverPolicyListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.TypeConverter.cs index bc0e4d82b5e8..1600db06868a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.cs similarity index 56% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.cs index 29fb4dab2900..0a3962be6434 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. public partial class DnsResolverPolicyListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[] _value; - /// Enumeration of the DNS resolver policies. + /// The DnsResolverPolicy items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsResolverPolicyListResult() @@ -36,36 +33,36 @@ public DnsResolverPolicyListResult() } } - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. public partial interface IDnsResolverPolicyListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS resolver policies. + string NextLink { get; set; } + /// The DnsResolverPolicy items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS resolver policies.", + Description = @"The DnsResolverPolicy items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[] Value { get; set; } } - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. internal partial interface IDnsResolverPolicyListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS resolver policies. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy[] Value { get; set; } + /// The DnsResolverPolicy items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.json.cs index b22ac5628590..4e347a332fd4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyListResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on DNS resolver policies. + /// The response of a DnsResolverPolicy list operation. public partial class DnsResolverPolicyListResult { @@ -65,19 +65,19 @@ internal DnsResolverPolicyListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResol { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyListResult(json) : null; } @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.PowerShell.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.PowerShell.cs index f5eff79e827b..8ebdc67bacb5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPolicyPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DnsResolverPolicyPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,7 +119,7 @@ internal DnsResolverPolicyPatch(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DnsResolverPolicyPatch(global::System.Management.Automation.PSObject co /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.TypeConverter.cs index f90763f0bdc2..d52747cacd9f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.cs index 0ab06284dbca..67bb6c388133 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver policy for PATCH operation. public partial class DnsResolverPolicyPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags _tag; /// Tags for DNS resolver policy. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsResolverPolicyPatch() @@ -36,8 +36,8 @@ public partial interface IDnsResolverPolicyPatch : ReadOnly = false, Description = @"Tags for DNS resolver policy.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags Tag { get; set; } } /// Describes a DNS resolver policy for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IDnsResolverPolicyPatchInternal { /// Tags for DNS resolver policy. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.json.cs index 5a235aeff787..bf1e70ced46b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverPolicyPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.R { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.PowerShell.cs index 15f1a6f47748..bb429ba0095e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsResolverPolicyPatchTags(global::System.Collections.IDictionary conte } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsResolverPolicyPatchTags(global::System.Management.Automation.PSObjec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.TypeConverter.cs index df0c3b51f7d5..392c608219c2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.cs index 474bc36e374d..d4fe0d0373ba 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS resolver policy. public partial class DnsResolverPolicyPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.dictionary.cs index a44ce786be82..a4c8f01f7739 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.json.cs index 4957e69f8529..edf3298047a6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverPolicyPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.PowerShell.cs similarity index 75% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.PowerShell.cs index 5ead901077e0..84a93c807129 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsResolverPolicyProperties(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsResolverPolicyProperties(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsResolverPolicyProperties(global::System.Management.Automation.PSObje /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.TypeConverter.cs index f7f3d5ac69dc..9c3d86f71ce8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.cs index 94b0de90ba98..12f2355d9b68 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS resolver policy. public partial class DnsResolverPolicyProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.json.cs index 6947e406c251..c15c1114da7d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResol } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs index f2dcef240f4b..ef4ad2fe322e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyVirtualNetworkLink partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyVirtualNetworkLink(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyVirtualNetworkLink(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,77 +98,77 @@ internal DnsResolverPolicyVirtualNetworkLink(global::System.Collections.IDiction // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -183,71 +183,71 @@ internal DnsResolverPolicyVirtualNetworkLink(global::System.Management.Automatio // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -259,7 +259,7 @@ internal DnsResolverPolicyVirtualNetworkLink(global::System.Management.Automatio /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs index 85dc08945d4f..2971e9545c1d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.cs index dc8b158e53fa..4b378afa9739 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.cs @@ -3,26 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver policy virtual network link. public partial class DnsResolverPolicyVirtualNetworkLink : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// Backing field for property. private string _etag; - /// ETag of the DNS resolver policy 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -30,97 +34,97 @@ public partial class DnsResolverPolicyVirtualNetworkLink : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties _property; /// Properties of the DNS resolver policy virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt /// to set this value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } /// Creates an new instance. public DnsResolverPolicyVirtualNetworkLink() @@ -143,13 +147,17 @@ public DnsResolverPolicyVirtualNetworkLink() /// Describes a DNS resolver policy virtual network link. public partial interface IDnsResolverPolicyVirtualNetworkLink : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { - /// ETag of the DNS resolver policy 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS resolver policy virtual network link.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -176,19 +184,23 @@ public partial interface IDnsResolverPolicyVirtualNetworkLink : } /// Describes a DNS resolver policy virtual network link. internal partial interface IDnsResolverPolicyVirtualNetworkLinkInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { - /// ETag of the DNS resolver policy 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.") + /// string Etag { get; set; } /// Properties of the DNS resolver policy virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get; set; } /// /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt /// to set this value will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.json.cs index 81e000a969c8..97cb7f789379 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLink.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLink.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsResolverPolicyVirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLink(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs similarity index 70% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs index 82f5330c2d82..8a70751e0769 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The response to an enumeration operation on DNS resolver policy virtual network links. - /// + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] public partial class DnsResolverPolicyVirtualNetworkLinkListResult { @@ -57,35 +55,35 @@ public partial class DnsResolverPolicyVirtualNetworkLinkListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyVirtualNetworkLinkListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyVirtualNetworkLinkListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +98,17 @@ internal DnsResolverPolicyVirtualNetworkLinkListResult(global::System.Collection // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +123,11 @@ internal DnsResolverPolicyVirtualNetworkLinkListResult(global::System.Management // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -142,14 +140,14 @@ internal DnsResolverPolicyVirtualNetworkLinkListResult(global::System.Management /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs index 09e3de7c9002..05d3922c14b6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs similarity index 54% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs index 050da51432ca..05f6448840cf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs @@ -3,34 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on DNS resolver policy virtual network links. - /// + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. public partial class DnsResolverPolicyVirtualNetworkLinkListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[] _value; - /// Enumeration of the DNS resolver policy virtual network links. + /// The DnsResolverPolicyVirtualNetworkLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } /// /// Creates an new instance. @@ -40,36 +35,36 @@ public DnsResolverPolicyVirtualNetworkLinkListResult() } } - /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS resolver policy virtual network links. + string NextLink { get; set; } + /// The DnsResolverPolicyVirtualNetworkLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS resolver policy virtual network links.", + Description = @"The DnsResolverPolicyVirtualNetworkLink items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } } - /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. internal partial interface IDnsResolverPolicyVirtualNetworkLinkListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS resolver policy virtual network links. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + /// The DnsResolverPolicyVirtualNetworkLink items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs similarity index 84% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs index 244c53f8c200..cb1120aeecc3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on DNS resolver policy virtual network links. - /// + /// The response of a DnsResolverPolicyVirtualNetworkLink list operation. public partial class DnsResolverPolicyVirtualNetworkLinkListResult { @@ -68,19 +66,19 @@ internal DnsResolverPolicyVirtualNetworkLinkListResult(Microsoft.Azure.PowerShel { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkListResult(json) : null; } @@ -115,10 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs index b511c6dc97e5..9ee95ec0fc2d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyVirtualNetworkLinkPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyVirtualNetworkLinkPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyVirtualNetworkLinkPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Collections.IDi // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,7 +119,7 @@ internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Management.Auto // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -132,7 +132,7 @@ internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Management.Auto /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs index 81a58d50743d..e6eeda75befb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs similarity index 76% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs index a978c6fc58b3..f3071378ea45 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver policy virtual network link for PATCH operation. public partial class DnsResolverPolicyVirtualNetworkLinkPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags _tag; /// Tags for the DNS resolver policy virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags()); set => this._tag = value; } /// /// Creates an new instance. @@ -38,8 +38,8 @@ public partial interface IDnsResolverPolicyVirtualNetworkLinkPatch : ReadOnly = false, Description = @"Tags for the DNS resolver policy virtual network link.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } } /// Describes a DNS resolver policy virtual network link for PATCH operation. @@ -47,7 +47,7 @@ internal partial interface IDnsResolverPolicyVirtualNetworkLinkPatchInternal { /// Tags for the DNS resolver policy virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs index b34cb5fd1a12..48843bfa35d5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverPolicyVirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmd { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs index fddfc33b6bb7..89ddd2a57291 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyVirtualNetworkLinkPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyVirtualNetworkLinkPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Collections } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,7 +128,7 @@ internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Management. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs index b158c3894f94..af3156eb46e6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs index b36bab470676..9827c3a5f23e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for the DNS resolver policy virtual network link. public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal { /// diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs index b3c80b0085e2..84148ff15eed 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs index 7119272cc9d6..1f0bf0a83d1d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -72,13 +72,13 @@ internal DnsResolverPolicyVirtualNetworkLinkPatchTags(Microsoft.Azure.PowerShell } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs index 830c3bbeafb8..142b6e0b32d3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsResolverPolicyVirtualNetworkLinkProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPolicyVirtualNetworkLinkProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPolicyVirtualNetworkLinkProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Collection // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Management // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -148,7 +148,7 @@ internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Management /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs index 93a67383c4b6..92887ecd795e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs index db3dabb8ce56..a5401a17cb12 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS resolver policy virtual network link. public partial class DnsResolverPolicyVirtualNetworkLinkProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_virtualNetwork = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -30,15 +30,15 @@ public partial class DnsResolverPolicyVirtualNetworkLinkProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _virtualNetwork; /// The reference to the virtual network. This cannot be changed after creation. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._virtualNetwork = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// /// Creates an new instance. @@ -83,7 +83,7 @@ internal partial interface IDnsResolverPolicyVirtualNetworkLinkPropertiesInterna /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs index 1ae65542c857..9783df5da403 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -66,19 +66,19 @@ internal DnsResolverPolicyVirtualNetworkLinkProperties(Microsoft.Azure.PowerShel { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.PowerShell.cs similarity index 63% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.PowerShell.cs index e68b39b62c11..bdc9dcf31cc2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,29 +98,29 @@ internal DnsResolverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,23 +135,23 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -159,7 +161,7 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.TypeConverter.cs index d1154c38e16d..b66c2d3a08d2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.cs similarity index 83% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.cs index 85d6dad7ee73..55d69f44030d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS resolver. public partial class DnsResolverProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal { /// Backing field for property. @@ -23,16 +23,16 @@ public partial class DnsResolverProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? DnsResolverState { get => this._dnsResolverState; } /// Internal Acessors for DnsResolverState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_virtualNetwork = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -52,15 +52,15 @@ public partial class DnsResolverProperties : public string ResourceGuid { get => this._resourceGuid; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _virtualNetwork; /// The reference to the virtual network. This cannot be changed after creation. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._virtualNetwork = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public DnsResolverProperties() @@ -127,7 +127,7 @@ internal partial interface IDnsResolverPropertiesInternal /// The resourceGuid property of the DNS resolver resource. string ResourceGuid { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.json.cs index 7fb249630c10..9557c17a2225 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsResolverProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsResolverProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} {_dnsResolverState = If( json?.PropertyT("dnsResolverState"), out var __jsonDnsResolverState) ? (string)__jsonDnsResolverState : (string)DnsResolverState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} @@ -73,13 +73,13 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.PowerShell.cs similarity index 57% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.PowerShell.cs index 1c9d0dc6ab0d..eddc5fb578ad 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DnsSecurityRule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRule(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,89 +96,93 @@ internal DnsSecurityRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -193,83 +197,87 @@ internal DnsSecurityRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializePSObject(content); } @@ -279,7 +287,7 @@ internal DnsSecurityRule(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.TypeConverter.cs index 4425e3853003..07f0d64286d3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.cs similarity index 62% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.cs index 3e757f65aef8..db34bd33f2eb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.cs @@ -3,34 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS security rule. public partial class DnsSecurityRule : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// The type of action to take. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList = value ?? null /* arrayOf */; } /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -38,101 +42,105 @@ public partial class DnsSecurityRule : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ManagedDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ManagedDomainList = value ?? null /* arrayOf */; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).Action = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public int Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).Priority = value ; } + public int Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).Priority = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties _property; /// Properties of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; } /// The state of DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsSecurityRule() @@ -155,7 +163,7 @@ public DnsSecurityRule() /// Describes a DNS security rule. public partial interface IDnsSecurityRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { /// The type of action to take. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -167,20 +175,32 @@ public partial interface IDnsSecurityRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } - /// ETag of the DNS security rule. + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// + /// "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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the DNS security rule.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -212,20 +232,26 @@ public partial interface IDnsSecurityRule : } /// Describes a DNS security rule. internal partial interface IDnsSecurityRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { /// The action to take on DNS requests that match the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get; set; } /// The type of action to take. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } - /// ETag of the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// + /// "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.") + /// string Etag { get; set; } + /// Managed domain lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. int Priority { get; set; } /// Properties of the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties Property { get; set; } /// /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value /// will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.json.cs index b088e32115a4..d46bfd242baf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRule.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRule.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsSecurityRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRule(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.PowerShell.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.PowerShell.cs index e2f6785d1cb7..926e0be1a53b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsSecurityRuleAction partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRuleAction(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRuleAction(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DnsSecurityRuleAction(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,7 +119,7 @@ internal DnsSecurityRuleAction(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DnsSecurityRuleAction(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.TypeConverter.cs index 77f876f8f59e..a58f62e86ca4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.cs index 0ec2e4c1e17a..31b76c53c765 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The action to take on DNS requests that match the DNS security rule. public partial class DnsSecurityRuleAction : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.json.cs index dd899f2e6b0b..bd776f93b60c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleAction.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleAction.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,13 +70,13 @@ internal DnsSecurityRuleAction(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleAction(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.PowerShell.cs index c1ff7afeebbb..0f302715cce0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.PowerShell.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. - /// + /// The response of a DnsSecurityRule list operation. [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] public partial class DnsSecurityRuleListResult { @@ -57,35 +55,35 @@ public partial class DnsSecurityRuleListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRuleListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRuleListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +98,17 @@ internal DnsSecurityRuleListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +123,11 @@ internal DnsSecurityRuleListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -139,14 +137,14 @@ internal DnsSecurityRuleListResult(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// The response of a DnsSecurityRule list operation. [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] public partial interface IDnsSecurityRuleListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.TypeConverter.cs index fc46ced04995..668e7895971a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.cs similarity index 56% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.cs index ce561428415f..e905f43acf01 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.cs @@ -3,34 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. - /// + /// The response of a DnsSecurityRule list operation. public partial class DnsSecurityRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[] _value; - /// Enumeration of the DNS security rules. + /// The DnsSecurityRule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsSecurityRuleListResult() @@ -38,36 +33,36 @@ public DnsSecurityRuleListResult() } } - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// The response of a DnsSecurityRule list operation. public partial interface IDnsSecurityRuleListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the DNS security rules. + string NextLink { get; set; } + /// The DnsSecurityRule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the DNS security rules.", + Description = @"The DnsSecurityRule items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[] Value { get; set; } } - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// The response of a DnsSecurityRule list operation. internal partial interface IDnsSecurityRuleListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the DNS security rules. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule[] Value { get; set; } + /// The DnsSecurityRule items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.json.cs index cc2e58a0e0fb..ba9824de1784 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleListResult.json.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. - /// + /// The response of a DnsSecurityRule list operation. public partial class DnsSecurityRuleListResult { @@ -67,19 +65,19 @@ internal DnsSecurityRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleListResult(json) : null; } @@ -112,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.PowerShell.cs similarity index 50% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.PowerShell.cs index 910999b64562..c2197813d001 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsSecurityRulePatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRulePatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRulePatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,37 +98,41 @@ internal DnsSecurityRulePatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -141,31 +147,35 @@ internal DnsSecurityRulePatch(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializePSObject(content); } @@ -175,7 +185,7 @@ internal DnsSecurityRulePatch(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.TypeConverter.cs index 284f48cfd443..d82c92b230d5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.cs similarity index 58% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.cs index 3b8ffdbf1590..fbc5c14fdeaf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.cs @@ -3,51 +3,55 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS security rule for PATCH operation. public partial class DnsSecurityRulePatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal { /// The type of action to take. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList = value ?? null /* arrayOf */; } /// The state of DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ManagedDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ManagedDomainList = value ?? null /* arrayOf */; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchProperties()); set { {_property = value;} } } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public int? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)Property).Priority = value ?? default(int); } + public int? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties _property; /// Updatable properties of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags _tag; /// Tags for DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsSecurityRulePatch() @@ -73,8 +77,8 @@ public partial interface IDnsSecurityRulePatch : ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -83,6 +87,14 @@ public partial interface IDnsSecurityRulePatch : SerializedName = @"dnsSecurityRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -97,8 +109,8 @@ public partial interface IDnsSecurityRulePatch : ReadOnly = false, Description = @"Tags for DNS security rule.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags Tag { get; set; } } /// Describes a DNS security rule for PATCH operation. @@ -106,19 +118,21 @@ internal partial interface IDnsSecurityRulePatchInternal { /// The action to take on DNS requests that match the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get; set; } /// The type of action to take. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. int? Priority { get; set; } /// Updatable properties of the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties Property { get; set; } /// Tags for DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.json.cs index 0993677e53c9..39b6110dee57 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsSecurityRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.PowerShell.cs similarity index 54% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.PowerShell.cs index 883e2ac4bf20..88f52d080607 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsSecurityRulePatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRulePatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRulePatchProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,29 +98,33 @@ internal DnsSecurityRulePatchProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,23 +139,27 @@ internal DnsSecurityRulePatchProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializePSObject(content); } @@ -161,7 +169,7 @@ internal DnsSecurityRulePatchProperties(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.TypeConverter.cs index 85a768a39564..9ca74ac0391c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.cs index c5273604ae60..a6a006932465 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.cs @@ -3,33 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the updatable properties of a DNS security rule. public partial class DnsSecurityRulePatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction _action; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction _action; /// The action to take on DNS requests that match the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction()); set => this._action = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction()); set => this._action = value; } /// The type of action to take. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] _dnsResolverDomainList; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] _dnsResolverDomainList; /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; @@ -38,8 +38,15 @@ public partial class DnsSecurityRulePatchProperties : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] _managedDomainList; + + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => this._managedDomainList; set => this._managedDomainList = value; } + /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchPropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction()); set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchPropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction()); set { {_action = value;} } } /// Backing field for property. private int? _priority; @@ -72,8 +79,8 @@ public partial interface IDnsSecurityRulePatchProperties : ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -82,6 +89,14 @@ public partial interface IDnsSecurityRulePatchProperties : SerializedName = @"dnsSecurityRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -97,13 +112,15 @@ internal partial interface IDnsSecurityRulePatchPropertiesInternal { /// The action to take on DNS requests that match the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get; set; } /// The type of action to take. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. int? Priority { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.json.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.json.cs index 9ff79b66e279..b8c83ab043ae 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,22 @@ internal DnsSecurityRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} - {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_managedDomainList = If( json?.PropertyT("managedDomainLists"), out var __jsonManagedDomainLists) ? If( __jsonManagedDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) (__p is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList)""))) ))() : null : ManagedDomainList;} {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int?)__jsonPriority : Priority;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchProperties(json) : null; } @@ -113,6 +114,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("dnsResolverDomainLists",__w); } + if (null != this._managedDomainList) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __s in this._managedDomainList ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("managedDomainLists",__r); + } AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); AddIf( null != this._priority ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNumber((int)this._priority) : null, "priority" ,container.Add ); AfterToJson(ref container); diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.PowerShell.cs index 9e149b194626..43f4b9631407 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsSecurityRulePatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRulePatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRulePatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsSecurityRulePatchTags(global::System.Collections.IDictionary content } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsSecurityRulePatchTags(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.TypeConverter.cs index 3f54a7b4a8d3..a8b94f81cb72 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.cs index 68b97fd50190..da41e00c5418 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS security rule. public partial class DnsSecurityRulePatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.dictionary.cs index f490fe9ad943..bbcb134e0afd 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.json.cs index ba7e34b29239..1dfb3b249a8b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRulePatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRulePatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsSecurityRulePatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.PowerShell.cs similarity index 53% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.PowerShell.cs index b29182f7f606..ff160e1f7d1b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsSecurityRuleProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsSecurityRuleProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsSecurityRuleProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,33 +98,37 @@ internal DnsSecurityRuleProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -139,27 +143,31 @@ internal DnsSecurityRuleProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleActionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); } if (content.Contains("Priority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DnsResolverDomainList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ManagedDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ManagedDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[]) content.GetValueForProperty("ManagedDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ManagedDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList.CreateFrom)); } if (content.Contains("DnsSecurityRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); } AfterDeserializePSObject(content); } @@ -169,7 +177,7 @@ internal DnsSecurityRuleProperties(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.TypeConverter.cs index 443dd63791fd..e1f086b45529 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.cs index 545778699574..0274648605df 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.cs @@ -3,33 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS security rule. public partial class DnsSecurityRuleProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction _action; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction _action; /// The action to take on DNS requests that match the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction()); set => this._action = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction()); set => this._action = value; } /// The type of action to take. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] _dnsResolverDomainList; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] _dnsResolverDomainList; /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; @@ -38,11 +38,18 @@ public partial class DnsSecurityRuleProperties : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] _managedDomainList; + + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => this._managedDomainList; set => this._managedDomainList = value; } + /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction()); set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction()); set { {_action = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private int _priority; @@ -81,12 +88,12 @@ public partial interface IDnsSecurityRuleProperties : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -95,6 +102,14 @@ public partial interface IDnsSecurityRuleProperties : SerializedName = @"dnsSecurityRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -121,13 +136,15 @@ internal partial interface IDnsSecurityRulePropertiesInternal { /// The action to take on DNS requests that match the DNS security rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleAction Action { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleAction Action { get; set; } /// The type of action to take. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } /// DNS resolver policy domains lists that the DNS security rule applies to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get; set; } /// The state of DNS security rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// Managed domain lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get; set; } /// The priority of the DNS security rule. int Priority { get; set; } /// diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.json.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.json.cs index 9e695c38e9f1..336bd476df76 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/DnsSecurityRuleProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/DnsSecurityRuleProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,22 +65,23 @@ internal DnsSecurityRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : Priority;} - {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_managedDomainList = If( json?.PropertyT("managedDomainLists"), out var __jsonManagedDomainLists) ? If( __jsonManagedDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) (__p is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList)""))) ))() : null : ManagedDomainList;} {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleProperties(json) : null; } @@ -115,6 +116,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("dnsResolverDomainLists",__w); } + if (null != this._managedDomainList) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __s in this._managedDomainList ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("managedDomainLists",__r); + } AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.PowerShell.cs similarity index 62% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.PowerShell.cs index 6f6a0cd5cb44..9bee552ff740 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ForwardingRule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRule(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,77 +96,77 @@ internal ForwardingRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -181,71 +181,71 @@ internal ForwardingRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -255,7 +255,7 @@ internal ForwardingRule(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.TypeConverter.cs index 722cefbf8a99..644c432b93fb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.cs similarity index 66% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.cs index f31a37f8acd1..0b68ab31f259 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.cs @@ -3,29 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a forwarding rule within a DNS forwarding ruleset. public partial class ForwardingRule : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(); /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).DomainName = value ; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).DomainName = value ; } /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -33,94 +37,94 @@ public partial class ForwardingRule : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; } /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties _property; /// Properties of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleProperties()); set => this._property = value; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; } /// The state of forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; } /// Creates an new instance. public ForwardingRule() @@ -143,7 +147,7 @@ public ForwardingRule() /// Describes a forwarding rule within a DNS forwarding ruleset. public partial interface IForwardingRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource { /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -153,11 +157,15 @@ public partial interface IForwardingRule : SerializedName = @"domainName", PossibleTypes = new [] { typeof(string) })] string DomainName { get; set; } - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the forwarding rule.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -167,8 +175,8 @@ public partial interface IForwardingRule : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -194,22 +202,26 @@ public partial interface IForwardingRule : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule within a DNS forwarding ruleset. internal partial interface IForwardingRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal { /// The domain name for the forwarding rule. string DomainName { get; set; } - /// ETag 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.") + /// string Etag { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// Properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties Property { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -218,7 +230,7 @@ internal partial interface IForwardingRuleInternal : /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.json.cs index 4bf9c21b2615..44389923237a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRule.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRule.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal ForwardingRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRule(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.PowerShell.cs index 6e48530852b2..cff630765089 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.PowerShell.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. - /// + /// The response of a ForwardingRule list operation. [System.ComponentModel.TypeConverter(typeof(ForwardingRuleListResultTypeConverter))] public partial class ForwardingRuleListResult { @@ -57,35 +55,35 @@ public partial class ForwardingRuleListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRuleListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +98,17 @@ internal ForwardingRuleListResult(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +123,11 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -139,14 +137,14 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. + /// The response of a ForwardingRule list operation. [System.ComponentModel.TypeConverter(typeof(ForwardingRuleListResultTypeConverter))] public partial interface IForwardingRuleListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.TypeConverter.cs index f5102b250a17..01f3b8c00338 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.cs similarity index 55% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.cs index 6bd30b24de8e..d3224ee5133a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.cs @@ -3,34 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. - /// + /// The response of a ForwardingRule list operation. public partial class ForwardingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[] _value; - /// Enumeration of the forwarding rules. + /// The ForwardingRule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ForwardingRuleListResult() @@ -38,36 +33,36 @@ public ForwardingRuleListResult() } } - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. + /// The response of a ForwardingRule list operation. public partial interface IForwardingRuleListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the forwarding rules. + string NextLink { get; set; } + /// The ForwardingRule items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the forwarding rules.", + Description = @"The ForwardingRule items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[] Value { get; set; } } - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. + /// The response of a ForwardingRule list operation. internal partial interface IForwardingRuleListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the forwarding rules. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule[] Value { get; set; } + /// The ForwardingRule items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.json.cs index fcbd329535ef..86a4dc840d8c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleListResult.json.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. - /// + /// The response of a ForwardingRule list operation. public partial class ForwardingRuleListResult { @@ -67,19 +65,19 @@ internal ForwardingRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRuleListResult(json) : null; } @@ -112,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.PowerShell.cs similarity index 62% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.PowerShell.cs index d2398c916cda..815a448815c0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class ForwardingRulePatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,25 +98,25 @@ internal ForwardingRulePatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,19 +131,19 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -151,7 +153,7 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.TypeConverter.cs index 8752a4b93612..0aa3b2a0cbbb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.cs index a05a61d67a7a..53f828deb767 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a forwarding rule for PATCH operation. public partial class ForwardingRulePatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal { /// The state of forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties _property; /// Updatable properties of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchProperties()); set => this._property = value; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } /// Creates an new instance. public ForwardingRulePatch() @@ -59,16 +59,16 @@ public partial interface IForwardingRulePatch : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule for PATCH operation. @@ -78,11 +78,11 @@ internal partial interface IForwardingRulePatchInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties Property { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.json.cs index 62f7a3f20132..61f916e59d43 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ForwardingRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatch(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.PowerShell.cs index 21bd086b9e19..f0a993c8c433 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,35 +57,35 @@ public partial class ForwardingRulePatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,21 +100,21 @@ internal ForwardingRulePatchProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,15 +129,15 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -147,7 +147,7 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.TypeConverter.cs index 18c1c42d6bd7..1a2e15bd4c22 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.cs index 82589816df08..f751f29de954 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. /// public partial class ForwardingRulePatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesInternal { /// Backing field for property. @@ -23,18 +23,18 @@ public partial class ForwardingRulePatchProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => this._forwardingRuleState; set => this._forwardingRuleState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata _metadata; /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] _targetDnsServer; /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } /// Creates an new instance. public ForwardingRulePatchProperties() @@ -60,16 +60,16 @@ public partial interface IForwardingRulePatchProperties : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. @@ -79,9 +79,9 @@ internal partial interface IForwardingRulePatchPropertiesInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.json.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.json.cs index afb095e11271..7759f0308410 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -67,20 +67,20 @@ internal ForwardingRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRes { return; } - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_forwardingRuleState = If( json?.PropertyT("forwardingRuleState"), out var __jsonForwardingRuleState) ? (string)__jsonForwardingRuleState : (string)ForwardingRuleState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatchProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs index 172c3c8d8c58..4ccc2b17e7ed 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatchPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchPropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,7 +128,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Management.Automat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs index 38b9c2dc8444..7c16f91cf471 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.cs index f8871192e26b..96e62791a6cc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the forwarding rule. public partial class ForwardingRulePatchPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadataInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs index 7667e18d3779..5913ebde2bde 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.json.cs index f7e9373b293c..d71c16935fee 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePatchPropertiesMetadata.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePatchPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePatchPropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatchPropertiesMetadata(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.PowerShell.cs similarity index 60% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.PowerShell.cs index fa376bb75d41..20382e71357b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRuleProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRuleProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,29 +98,29 @@ internal ForwardingRuleProperties(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,23 +135,23 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -161,7 +161,7 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.TypeConverter.cs index c8cb6e2af30e..b9d473e7873a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.cs index ac3cb34d91cc..af46ade0539a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a forwarding rule within a DNS forwarding ruleset. public partial class ForwardingRuleProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal { /// Backing field for property. @@ -28,14 +28,14 @@ public partial class ForwardingRuleProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => this._forwardingRuleState; set => this._forwardingRuleState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata _metadata; /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -48,11 +48,11 @@ public partial class ForwardingRuleProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] _targetDnsServer; /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } /// Creates an new instance. public ForwardingRuleProperties() @@ -86,8 +86,8 @@ public partial interface IForwardingRuleProperties : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -105,8 +105,8 @@ public partial interface IForwardingRuleProperties : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Represents the properties of a forwarding rule within a DNS forwarding ruleset. @@ -118,14 +118,14 @@ internal partial interface IForwardingRulePropertiesInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.json.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.json.cs index e3e66f6ee93f..3f03bd1cf193 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRuleProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRuleProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -66,21 +66,21 @@ internal ForwardingRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver return; } {_domainName = If( json?.PropertyT("domainName"), out var __jsonDomainName) ? (string)__jsonDomainName : (string)DomainName;} - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_forwardingRuleState = If( json?.PropertyT("forwardingRuleState"), out var __jsonForwardingRuleState) ? (string)__jsonForwardingRuleState : (string)ForwardingRuleState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRuleProperties(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.PowerShell.cs index 265d721852a2..50c70c377aa6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Management.Automation.P /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs index b9b84d43509e..d57d3c50fb9d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.cs index 7218cfeb59ff..ac13b3268689 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the forwarding rule. public partial class ForwardingRulePropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadataInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.dictionary.cs index c75b7fdb865f..1ec0ec28d789 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.json.cs index 01d56b51b40e..e3ffde6ec72e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/ForwardingRulePropertiesMetadata.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/ForwardingRulePropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlets.Dns } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePropertiesMetadata(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.PowerShell.cs index 0fdaaf138fd7..936066bd0a09 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class IPConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IPConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IPConfiguration(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal IPConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal IPConfiguration(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.TypeConverter.cs index 6c82ac7b6c26..b5f8f6f52d95 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.cs similarity index 84% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.cs index 1231dfd5a465..933ed3fa8071 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// IP configuration. public partial class IPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal { /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_subnet = value;} } } /// Backing field for property. private string _privateIPAddress; @@ -31,15 +31,15 @@ public partial class IPConfiguration : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get => this._privateIPAllocationMethod; set => this._privateIPAllocationMethod = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _subnet; /// The reference to the subnet bound to the IP configuration. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._subnet = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public IPConfiguration() @@ -86,7 +86,7 @@ internal partial interface IIPConfigurationInternal /// Private IP address allocation method. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get; set; } /// The reference to the subnet bound to the IP configuration. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.json.cs index 9fb7adac9c6d..d2e2ee6c6974 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/IPConfiguration.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/IPConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IPConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new IPConfiguration(json) : null; } @@ -77,7 +77,7 @@ internal IPConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} {_privateIPAddress = If( json?.PropertyT("privateIpAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)PrivateIPAddress;} {_privateIPAllocationMethod = If( json?.PropertyT("privateIpAllocationMethod"), out var __jsonPrivateIPAllocationMethod) ? (string)__jsonPrivateIPAllocationMethod : (string)PrivateIPAllocationMethod;} AfterFromJson(json); diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.PowerShell.cs index 99dcac524259..2c47487df7c2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class InboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpoint(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,77 +103,77 @@ internal InboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfigurationTypeConverter.ConvertFrom)); } - if (content.Contains("IPConfiguration")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -188,71 +188,71 @@ internal InboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfigurationTypeConverter.ConvertFrom)); } - if (content.Contains("IPConfiguration")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.TypeConverter.cs index d86af1f29000..86b1e66ef712 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.cs similarity index 66% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.cs index a4647030f149..d8f5b3de5310 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.cs @@ -3,128 +3,132 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an inbound endpoint for a DNS resolver. public partial class InboundEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties _property; /// Properties of the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointProperties()); set => this._property = value; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the inbound endpoint resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public InboundEndpoint() @@ -147,13 +151,17 @@ public InboundEndpoint() /// Describes an inbound endpoint for a DNS resolver. public partial interface IInboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the inbound endpoint.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -163,8 +171,8 @@ public partial interface IInboundEndpoint : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -188,14 +196,18 @@ public partial interface IInboundEndpoint : } /// Describes an inbound endpoint for a DNS resolver. internal partial interface IInboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { - /// ETag 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.") + /// string Etag { get; set; } /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get; set; } /// Properties of the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties Property { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.json.cs index 26978f039b03..0dd24f45835e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpoint.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpoint(json) : null; } @@ -77,8 +77,8 @@ internal InboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.PowerShell.cs index 35717e3c57fa..13c571e15aac 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.PowerShell.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. - /// + /// The response of a InboundEndpoint list operation. [System.ComponentModel.TypeConverter(typeof(InboundEndpointListResultTypeConverter))] public partial class InboundEndpointListResult { @@ -57,29 +55,29 @@ public partial class InboundEndpointListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointListResult(content); } @@ -89,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +105,17 @@ internal InboundEndpointListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +130,11 @@ internal InboundEndpointListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -146,7 +144,7 @@ internal InboundEndpointListResult(global::System.Management.Automation.PSObject /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. + /// The response of a InboundEndpoint list operation. [System.ComponentModel.TypeConverter(typeof(InboundEndpointListResultTypeConverter))] public partial interface IInboundEndpointListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.TypeConverter.cs index 86ab1b83859c..8f0bf0b05846 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.cs similarity index 55% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.cs index 4c8c138c2bc3..153ee9e3249e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.cs @@ -3,34 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. - /// + /// The response of a InboundEndpoint list operation. public partial class InboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[] _value; - /// Enumeration of the inbound endpoints for a DNS resolver. + /// The InboundEndpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public InboundEndpointListResult() @@ -38,36 +33,36 @@ public InboundEndpointListResult() } } - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. + /// The response of a InboundEndpoint list operation. public partial interface IInboundEndpointListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the inbound endpoints for a DNS resolver. + string NextLink { get; set; } + /// The InboundEndpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the inbound endpoints for a DNS resolver.", + Description = @"The InboundEndpoint items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[] Value { get; set; } } - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. + /// The response of a InboundEndpoint list operation. internal partial interface IInboundEndpointListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the inbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint[] Value { get; set; } + /// The InboundEndpoint items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.json.cs index a4d2ca58a5a5..3962e864d7c0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointListResult.json.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on inbound endpoints for a DNS resolver. - /// + /// The response of a InboundEndpoint list operation. public partial class InboundEndpointListResult { @@ -56,13 +54,13 @@ public partial class InboundEndpointListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointListResult(json) : null; } @@ -79,7 +77,7 @@ internal InboundEndpointListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -112,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.PowerShell.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.PowerShell.cs index e1a5001467f8..2b3b1c4d501b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class InboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal InboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal InboundEndpointPatch(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.TypeConverter.cs index 205bee9f7ea6..67a49e52ad3c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.cs index 8ec521a30166..f31e1717a61f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an inbound endpoint for a DNS resolver for PATCH operation. public partial class InboundEndpointPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags _tag; /// Tags for inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTags()); set => this._tag = value; } /// Creates an new instance. public InboundEndpointPatch() @@ -36,8 +36,8 @@ public partial interface IInboundEndpointPatch : ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags Tag { get; set; } } /// Describes an inbound endpoint for a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IInboundEndpointPatchInternal { /// Tags for inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.json.cs index 99bffa57060e..c83376b055f9 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.PowerShell.cs index a5df03659939..5b9ec6aab29f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal InboundEndpointPatchTags(global::System.Collections.IDictionary content } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.TypeConverter.cs index 08055d2bcb39..dc93f5a06705 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.cs index 9db0fd4a54e9..9045e6ed5160 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for inbound endpoint. public partial class InboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.dictionary.cs index c75652058488..4207e3f981ab 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.json.cs index b531325f4402..78d087b436ef 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.PowerShell.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.PowerShell.cs index 52ad576665b8..2f5036140301 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,21 @@ internal InboundEndpointProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +134,15 @@ internal InboundEndpointProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.TypeConverter.cs index 4b44a6957985..5dbed9b13dba 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.cs index a2e48c77b366..9ac7140f0bce 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of an inbound endpoint for a DNS resolver. public partial class InboundEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] _iPConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] _iPConfiguration; /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -59,8 +59,8 @@ public partial interface IInboundEndpointProperties : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -87,7 +87,7 @@ internal partial interface IInboundEndpointPropertiesInternal { /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.json.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.json.cs index 3d926224a19b..60753e202975 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/InboundEndpointProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/InboundEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_iPConfiguration = If( json?.PropertyT("ipConfigurations"), out var __jsonIPConfigurations) ? If( __jsonIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IPConfiguration.FromJson(__u) )) ))() : null : IPConfiguration;} + {_iPConfiguration = If( json?.PropertyT("ipConfigurations"), out var __jsonIPConfigurations) ? If( __jsonIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IPConfiguration.FromJson(__u) )) ))() : null : IPConfiguration;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.PowerShell.cs index 54805743957f..00612b32bfb0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpoint(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,81 +105,81 @@ internal OutboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("Subnet")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -192,75 +194,75 @@ internal OutboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("Subnet")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.TypeConverter.cs index 3d89eab9f715..49c03feb4ad8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.cs similarity index 66% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.cs index c8a44302fa0f..8caf80175cec 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.cs @@ -3,26 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an outbound endpoint for a DNS resolver. public partial class OutboundEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(); /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -30,104 +34,104 @@ public partial class OutboundEndpoint : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties _property; /// Properties of the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointProperties()); set => this._property = value; } /// /// The current provisioning state of the outbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the outbound endpoint resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public OutboundEndpoint() @@ -150,13 +154,17 @@ public OutboundEndpoint() /// Describes an outbound endpoint for a DNS resolver. public partial interface IOutboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource { - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the outbound endpoint.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -191,12 +199,16 @@ public partial interface IOutboundEndpoint : } /// Describes an outbound endpoint for a DNS resolver. internal partial interface IOutboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal { - /// ETag 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.") + /// string Etag { get; set; } /// Properties of the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties Property { get; set; } /// /// The current provisioning state of the outbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -205,7 +217,7 @@ internal partial interface IOutboundEndpointInternal : /// The resourceGuid property of the outbound endpoint resource. string ResourceGuid { get; set; } /// The reference to the subnet used for the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.json.cs index 3dc2ff7b3d92..3e7a1301c5f8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpoint.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpoint(json) : null; } @@ -77,8 +77,8 @@ internal OutboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.PowerShell.cs index bf53eb35d223..43626d813a7e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.PowerShell.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. - /// + /// The response of a OutboundEndpoint list operation. [System.ComponentModel.TypeConverter(typeof(OutboundEndpointListResultTypeConverter))] public partial class OutboundEndpointListResult { @@ -57,29 +55,29 @@ public partial class OutboundEndpointListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointListResult(content); } @@ -89,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +105,17 @@ internal OutboundEndpointListResult(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +130,11 @@ internal OutboundEndpointListResult(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -146,7 +144,7 @@ internal OutboundEndpointListResult(global::System.Management.Automation.PSObjec /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. + /// The response of a OutboundEndpoint list operation. [System.ComponentModel.TypeConverter(typeof(OutboundEndpointListResultTypeConverter))] public partial interface IOutboundEndpointListResult diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.TypeConverter.cs index 7300da535eb7..e72ecf9aa31a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.cs similarity index 55% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.cs index 476bd9aa12fb..4a4b8c2ace9f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.cs @@ -3,34 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. - /// + /// The response of a OutboundEndpoint list operation. public partial class OutboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[] _value; - /// Enumeration of the outbound endpoints for a DNS resolver. + /// The OutboundEndpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OutboundEndpointListResult() @@ -38,36 +33,36 @@ public OutboundEndpointListResult() } } - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. + /// The response of a OutboundEndpoint list operation. public partial interface IOutboundEndpointListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the outbound endpoints for a DNS resolver. + string NextLink { get; set; } + /// The OutboundEndpoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the outbound endpoints for a DNS resolver.", + Description = @"The OutboundEndpoint items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[] Value { get; set; } } - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. + /// The response of a OutboundEndpoint list operation. internal partial interface IOutboundEndpointListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the outbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint[] Value { get; set; } + /// The OutboundEndpoint items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.json.cs index a3bd8f3b0042..74e0649284e4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointListResult.json.cs @@ -3,13 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// - /// The response to an enumeration operation on outbound endpoints for a DNS resolver. - /// + /// The response of a OutboundEndpoint list operation. public partial class OutboundEndpointListResult { @@ -56,13 +54,13 @@ public partial class OutboundEndpointListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointListResult(json) : null; } @@ -79,7 +77,7 @@ internal OutboundEndpointListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -112,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.PowerShell.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.PowerShell.cs index 8659a99a99b1..91076ef22d2a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal OutboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal OutboundEndpointPatch(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.TypeConverter.cs index d0cd0274b719..77b8cd53038e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.cs index 989872b633c2..2c0aeae9b7c6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an outbound endpoint for a DNS resolver for PATCH operation. public partial class OutboundEndpointPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags _tag; /// Tags for outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTags()); set => this._tag = value; } /// Creates an new instance. public OutboundEndpointPatch() @@ -36,8 +36,8 @@ public partial interface IOutboundEndpointPatch : ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags Tag { get; set; } } /// Describes an outbound endpoint for a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IOutboundEndpointPatchInternal { /// Tags for outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.json.cs index 30048c82c89f..722f320fc94c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.PowerShell.cs index 06fd3f2f489a..a1d317795b54 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal OutboundEndpointPatchTags(global::System.Collections.IDictionary conten } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.TypeConverter.cs index 67e5002160e8..67288756fb5b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.cs similarity index 91% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.cs index 2117515734cb..3275d7632fe4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for outbound endpoint. public partial class OutboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.dictionary.cs index 8ed20498b026..0ad9ba975bca 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.json.cs index 2a59bc579d29..f4ba64116abd 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointPatchTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointPatchTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.PowerShell.cs similarity index 67% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.PowerShell.cs index 05b209c6bfb5..4f21dee7ca3c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,25 +105,25 @@ internal OutboundEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,19 +138,19 @@ internal OutboundEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.TypeConverter.cs index f97035debd8a..af2a6e5319a0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.cs similarity index 82% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.cs index df66d2d748a9..7d999a3e1dac 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of an outbound endpoint for a DNS resolver. public partial class OutboundEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_subnet = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -40,15 +40,15 @@ public partial class OutboundEndpointProperties : public string ResourceGuid { get => this._resourceGuid; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _subnet; /// The reference to the subnet used for the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._subnet = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public OutboundEndpointProperties() @@ -101,7 +101,7 @@ internal partial interface IOutboundEndpointPropertiesInternal /// The resourceGuid property of the outbound endpoint resource. string ResourceGuid { get; set; } /// The reference to the subnet used for the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.json.cs index 8c822a219aba..de3d8bd89a3d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/OutboundEndpointProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/OutboundEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.PowerShell.cs similarity index 84% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.PowerShell.cs index 9dc43bcd3526..2559927ea3d3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SubResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +103,13 @@ internal SubResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +124,7 @@ internal SubResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.TypeConverter.cs index 30f992965541..77fb0d9f3df4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.cs index 9c9f838477ad..893c6fa1723a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to another ARM resource. public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.json.cs index 14a7bb69975f..5fb38d5334fd 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResource.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SubResource(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.PowerShell.cs similarity index 73% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.PowerShell.cs index c83560b42d51..49c1ead4b5c3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class SubResourceListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubResourceListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResourceListResult(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +105,17 @@ internal SubResourceListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +130,11 @@ internal SubResourceListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.TypeConverter.cs index c37ba9911b6b..73cee4dc5872 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.cs index 935cb19e76e7..42a5362f2f92 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on sub-resources. public partial class SubResourceListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] _value; - /// Enumeration of the sub-resources. + /// The SubResource items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public SubResourceListResult() @@ -40,32 +37,32 @@ public SubResourceListResult() public partial interface ISubResourceListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the sub-resources. + string NextLink { get; set; } + /// The SubResource items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the sub-resources.", + Description = @"The SubResource items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] Value { get; set; } } /// The response to an enumeration operation on sub-resources. internal partial interface ISubResourceListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the sub-resources. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] Value { get; set; } + /// The SubResource items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.json.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.json.cs index 5570967171ba..26beff928dc9 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/SubResourceListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/SubResourceListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResourceListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SubResourceListResult(json) : null; } @@ -77,7 +77,7 @@ internal SubResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -110,10 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.PowerShell.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.PowerShell.cs index bb69f1caba59..28980a5cd8b0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TargetDnsServer partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetDnsServer(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDnsServer(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal TargetDnsServer(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal TargetDnsServer(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.TypeConverter.cs index c06a4d923b2f..a07b894eff35 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.cs index 472a4eab2d05..2f013f01ee29 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a server to forward the DNS queries to. public partial class TargetDnsServer : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServerInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServerInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.json.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.json.cs index 59240b05c32b..6dd8a0a4621e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/TargetDnsServer.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/TargetDnsServer.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetDnsServer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TargetDnsServer(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs similarity index 65% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs index 34c275e2a7f8..95961f78d160 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkDnsForwardingRuleset(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRuleset(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,25 +112,25 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,19 +145,19 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Management.Automation // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs index 6328aeebae50..63aac5e83915 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.cs similarity index 68% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.cs index 9e612e4ae94b..07f6a65996d9 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to DNS forwarding ruleset and associated virtual network link. public partial class VirtualNetworkDnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal { /// Backing field for property. @@ -21,21 +21,21 @@ public partial class VirtualNetworkDnsForwardingRuleset : public string Id { get => this._id; set => this._id = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties _property; /// Properties of the virtual network link sub-resource reference. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } /// Creates an new instance. public VirtualNetworkDnsForwardingRuleset() @@ -72,9 +72,9 @@ internal partial interface IVirtualNetworkDnsForwardingRulesetInternal /// DNS Forwarding Ruleset Resource ID. string Id { get; set; } /// Properties of the virtual network link sub-resource reference. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties Property { get; set; } /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.json.cs index f80fc4aaa26c..df1e64c8b511 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRuleset.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRuleset.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkDnsForwardingRuleset(json) : null; } @@ -103,7 +103,7 @@ internal VirtualNetworkDnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs similarity index 71% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs index 1242d6372849..b4c117f9919e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Collections // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Management. // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs index 9c54653b190e..79eec814667a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.cs similarity index 61% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.cs index 39d6b9c8faf6..277ef49e2c44 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,26 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. /// public partial class VirtualNetworkDnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[] _value; - /// Enumeration of the Virtual Network DNS Forwarding Ruleset. + /// The VirtualNetworkDnsForwardingRuleset items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// /// Creates an new instance. @@ -44,32 +41,32 @@ public VirtualNetworkDnsForwardingRulesetListResult() public partial interface IVirtualNetworkDnsForwardingRulesetListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the Virtual Network DNS Forwarding Ruleset. + string NextLink { get; set; } + /// The VirtualNetworkDnsForwardingRuleset items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the Virtual Network DNS Forwarding Ruleset.", + Description = @"The VirtualNetworkDnsForwardingRuleset items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. internal partial interface IVirtualNetworkDnsForwardingRulesetListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the Virtual Network DNS Forwarding Ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + /// The VirtualNetworkDnsForwardingRuleset items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs similarity index 86% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs index b3511ce2137a..bc5464ee0efc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkDnsForwardingRulesetListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkDnsForwardingRulesetListResult(json) : null; } @@ -97,10 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } @@ -118,7 +115,7 @@ internal VirtualNetworkDnsForwardingRulesetListResult(Microsoft.Azure.PowerShell { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.PowerShell.cs similarity index 63% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.PowerShell.cs index 7d8f6f1f17b7..7875a88e6cd1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class VirtualNetworkLink partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLink(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLink(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,73 +110,73 @@ internal VirtualNetworkLink(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,67 +191,67 @@ internal VirtualNetworkLink(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.TypeConverter.cs index fd8f54821cdc..8991b36fe694 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.cs index 3ac7349009c3..b7418e48184c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.cs @@ -3,25 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link. public partial class VirtualNetworkLink : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(); /// Backing field for property. private string _etag; - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string Etag { get => this._etag; } @@ -29,93 +33,93 @@ public partial class VirtualNetworkLink : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; } /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties _property; /// Properties of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkProperties()); set => this._property = value; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -138,13 +142,17 @@ public VirtualNetworkLink() /// Describes a virtual network link. public partial interface IVirtualNetworkLink : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource { - /// ETag 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.") + /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = true, - Description = @"ETag of the virtual network link.", + Description = @"""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."")", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] string Etag { get; } @@ -154,8 +162,8 @@ public partial interface IVirtualNetworkLink : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. @@ -179,21 +187,25 @@ public partial interface IVirtualNetworkLink : } /// Describes a virtual network link. internal partial interface IVirtualNetworkLinkInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal { - /// ETag 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.") + /// string Etag { get; set; } /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// Properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties Property { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.json.cs index b74f7e7138a7..9afb68fe697c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLink.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLink.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLink partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLink(json) : null; } @@ -106,8 +106,8 @@ internal VirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runti { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.PowerShell.cs new file mode 100644 index 000000000000..d4010140a4df --- /dev/null +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The response of a VirtualNetworkLink list operation. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] + public partial class VirtualNetworkLinkListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VirtualNetworkLinkListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VirtualNetworkLinkListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The response of a VirtualNetworkLink list operation. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] + public partial interface IVirtualNetworkLinkListResult + + { + + } +} \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.TypeConverter.cs index 8a56912daa43..744828426afc 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.cs similarity index 57% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.cs index d866f6834d6b..f3230c07d3d5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.cs @@ -3,32 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on virtual network links. + /// The response of a VirtualNetworkLink list operation. public partial class VirtualNetworkLinkListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - /// Backing field for property. private string _nextLink; - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[] _value; - /// Enumeration of the virtual network links. + /// The VirtualNetworkLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public VirtualNetworkLinkListResult() @@ -36,36 +33,36 @@ public VirtualNetworkLinkListResult() } } - /// The response to an enumeration operation on virtual network links. + /// The response of a VirtualNetworkLink list operation. public partial interface IVirtualNetworkLinkListResult : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable { - /// The continuation token for the next page of results. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, - ReadOnly = true, - Description = @"The continuation token for the next page of results.", + ReadOnly = false, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Enumeration of the virtual network links. + string NextLink { get; set; } + /// The VirtualNetworkLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Enumeration of the virtual network links.", + Description = @"The VirtualNetworkLink items on this page", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[] Value { get; set; } } - /// The response to an enumeration operation on virtual network links. + /// The response of a VirtualNetworkLink list operation. internal partial interface IVirtualNetworkLinkListResultInternal { - /// The continuation token for the next page of results. + /// The link to the next page of items string NextLink { get; set; } - /// Enumeration of the virtual network links. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink[] Value { get; set; } + /// The VirtualNetworkLink items on this page + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.json.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.json.cs index 4de37fb45348..a59ded3e2c7b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkListResult.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkListResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - /// The response to an enumeration operation on virtual network links. + /// The response of a VirtualNetworkLink list operation. public partial class VirtualNetworkLinkListResult { @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkListResult(json) : null; } @@ -93,10 +93,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } @@ -113,7 +110,7 @@ internal VirtualNetworkLinkListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsReso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.PowerShell.cs similarity index 72% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.PowerShell.cs index 77bb85b995e3..4f14fb087d2e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatch(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VirtualNetworkLinkPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,11 +135,11 @@ internal VirtualNetworkLinkPatch(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.TypeConverter.cs index 4ad85d71488a..a53a1ff7cb45 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.cs index 46f926190225..8fac9f8334c4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link for PATCH operation. public partial class VirtualNetworkLinkPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal { /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties _property; /// Updatable properties of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchProperties()); set => this._property = value; } /// Creates an new instance. public VirtualNetworkLinkPatch() @@ -43,8 +43,8 @@ public partial interface IVirtualNetworkLinkPatch : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } /// Describes a virtual network link for PATCH operation. @@ -52,9 +52,9 @@ internal partial interface IVirtualNetworkLinkPatchInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties Property { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.json.cs index 88aa463943c0..8c0272afe3f7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatch.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatch(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs index 12940aaff558..582d25861d53 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal VirtualNetworkLinkPatchProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,7 +133,7 @@ internal VirtualNetworkLinkPatchProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs index 2c1dd798051c..655c0315cf7e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.cs similarity index 75% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.cs index 8baecf0841fc..6ff93d023bdb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the updatable properties of the virtual network link. public partial class VirtualNetworkLinkPatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } /// Creates an new instance. public VirtualNetworkLinkPatchProperties() @@ -36,8 +36,8 @@ public partial interface IVirtualNetworkLinkPatchProperties : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } /// Represents the updatable properties of the virtual network link. @@ -45,7 +45,7 @@ internal partial interface IVirtualNetworkLinkPatchPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.json.cs index 480b7188e9cf..fe46222d594a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatchProperties(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.Dn { return; } - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} AfterFromJson(json); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs index 3929c51bc2f4..c74c2b509eb0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VirtualNetworkLinkPatchPropertiesMetadata(global::System.Collections.ID } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs index 55fadfa097d6..758e976ddca2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs index 1dbb35b1d718..45b2766fc9db 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the virtual network link. public partial class VirtualNetworkLinkPatchPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadataInternal { /// diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs index 8f0c62d6cc3c..23f9ddcdfe37 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs index 852d710056c3..34c7c7501261 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPatchPropertiesMetadata.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatchPropertiesMetadata(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.PowerShell.cs similarity index 64% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.PowerShell.cs index de1585c56832..b6c095fa2aa6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkProperties(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,25 +110,25 @@ internal VirtualNetworkLinkProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -143,19 +143,19 @@ internal VirtualNetworkLinkProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.TypeConverter.cs index 19470242304c..8e1ac1b1ac37 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.cs similarity index 75% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.cs index b4db771ecc4c..7b83cf45e116 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a virtual network link. public partial class VirtualNetworkLinkProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata _metadata; /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_virtualNetwork = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -37,15 +37,15 @@ public partial class VirtualNetworkLinkProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _virtualNetwork; /// The reference to the virtual network. This cannot be changed after creation. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._virtualNetwork = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public VirtualNetworkLinkProperties() @@ -63,8 +63,8 @@ public partial interface IVirtualNetworkLinkProperties : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. @@ -91,14 +91,14 @@ internal partial interface IVirtualNetworkLinkPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.json.cs index 6cc5a04e7458..56364205ba4b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkProperties(json) : null; } @@ -106,8 +106,8 @@ internal VirtualNetworkLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsReso { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs similarity index 87% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs index c47987311419..1eec034ff05f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPropertiesMetadata(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,7 +116,7 @@ internal VirtualNetworkLinkPropertiesMetadata(global::System.Collections.IDictio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs index 6e168e6ebf82..74e202801f6c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.cs index e0a2e45acc4b..309a4ce750e7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the virtual network link. public partial class VirtualNetworkLinkPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadataInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs index 3060cbf4715b..eb9011afc55d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.json.cs similarity index 95% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.json.cs index 6226610b7d43..16165e0e9dd2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkPropertiesMetadata.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPropertiesMetadata(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs similarity index 74% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs index 8ace0e6f2fb0..220db05a4706 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkSubResourceProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkSubResourceProperties(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Collections.IDic // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Management.Autom // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs index aa0e9548a10e..ee091704d253 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.cs similarity index 71% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.cs index d16d9a055dbb..14c1d9008ec0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 /// The reference to the virtual network link that associates between the DNS forwarding ruleset and virtual network. /// public partial class VirtualNetworkLinkSubResourceProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal { /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set { {_virtualNetworkLink = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set { {_virtualNetworkLink = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource _virtualNetworkLink; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource _virtualNetworkLink; /// The reference to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource()); set => this._virtualNetworkLink = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource()); set => this._virtualNetworkLink = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } /// Creates an new instance. public VirtualNetworkLinkSubResourceProperties() @@ -54,7 +54,7 @@ internal partial interface IVirtualNetworkLinkSubResourcePropertiesInternal { /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.json.cs similarity index 93% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.json.cs index 54b1a36816c1..8152ae4be6f2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20250501/VirtualNetworkLinkSubResourceProperties.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20251001Preview/VirtualNetworkLinkSubResourceProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkSubResourceProperties(json) : null; } @@ -105,7 +105,7 @@ internal VirtualNetworkLinkSubResourceProperties(Microsoft.Azure.PowerShell.Cmdl { return; } - {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} + {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} AfterFromJson(json); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.PowerShell.cs similarity index 88% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.PowerShell.cs index 19d700f9bfb5..061d75029ba7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ErrorAdditionalInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.TypeConverter.cs index ed145ca7b2c0..2ad57dfc39a8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.cs index 79c4d7e9430b..b423bba9b7d1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The resource management error additional info. public partial class ErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.json.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.json.cs index 7214c0dfa483..14390a17af02 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorAdditionalInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.PowerShell.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.PowerShell.cs index 584e90b82e67..a4b41c874c98 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ErrorDetail partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorDetail(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,29 +96,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,23 +133,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -159,7 +159,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.TypeConverter.cs index 8e93e79e579c..4f33c0b62ef5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.cs similarity index 85% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.cs index 8fcdacd18862..c20e6087bfc8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The error detail. public partial class ErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] _additionalInfo; /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -28,11 +28,11 @@ public partial class ErrorDetail : public string Code { get => this._code; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] _detail; /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -42,19 +42,19 @@ public partial class ErrorDetail : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } /// Backing field for property. private string _target; @@ -79,8 +79,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -95,8 +95,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -120,11 +120,11 @@ internal partial interface IErrorDetailInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.json.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.json.cs index 5d329203add7..30d3f3d8b407 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorDetail.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -68,19 +68,19 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.PowerShell.cs similarity index 77% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.PowerShell.cs index 904c4258982b..0bef5d3cda28 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -58,33 +58,33 @@ public partial class ErrorResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorResponse(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -99,33 +99,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,27 +140,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -170,7 +170,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.TypeConverter.cs index 5a3fe6d5ff01..4aa53a40acc3 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.cs similarity index 75% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.cs index 3972ad374a4d..8385e99fcb17 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -12,54 +12,54 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 /// the OData error response format.). /// public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal { /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).AdditionalInfo; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Code; } /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail _error; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail _error; /// The error object. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail()); set => this._error = value; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Target = value; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetailInternal)Error).Target; } /// Creates an new instance. public ErrorResponse() @@ -78,8 +78,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -94,8 +94,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -120,13 +120,13 @@ internal partial interface IErrorResponseInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail[] Detail { get; set; } /// The error object. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorDetail Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.json.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.json.cs index 34ba90bd5c84..6beb261855ff 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ErrorResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -68,18 +68,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Js { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ErrorDetail.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.PowerShell.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.PowerShell.cs index 37e2cbb085d2..b260090ffd01 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class ProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProxyResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProxyResource(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxy /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,49 +105,49 @@ internal ProxyResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -162,43 +162,43 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.TypeConverter.cs index 4c74a7f56e06..36c4b6c2b5e5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.cs similarity index 77% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.cs index 456c0473efc8..512fc47dba80 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,72 +11,72 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location /// public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(); /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; } /// Creates an new instance. public ProxyResource() @@ -99,13 +99,13 @@ public ProxyResource() /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location public partial interface IProxyResource : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource { } /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal { } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.json.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.json.cs index e15aa3501645..ef16ee351380 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(json); AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.PowerShell.cs similarity index 80% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.PowerShell.cs index 0caa7ecd33f5..543f6298afd8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Resource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Resource(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResou /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,49 +105,49 @@ internal Resource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -162,43 +162,43 @@ internal Resource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.TypeConverter.cs index 41ccbfdb0d5a..6c7608d49e33 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.cs similarity index 90% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.cs index 6ea7a83f8b33..de5fe6c74055 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 /// Common fields that are returned in the response for all Azure Resource Manager resources /// public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal { /// Backing field for property. @@ -25,16 +25,16 @@ public partial class Resource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -44,37 +44,37 @@ public partial class Resource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData _systemData; /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemData()); } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Backing field for property. private string _type; @@ -186,7 +186,7 @@ internal partial interface IResourceInternal /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get; set; } /// The timestamp of resource creation (UTC). global::System.DateTime? SystemDataCreatedAt { get; set; } /// The identity that created the resource. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.json.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.json.cs index 9c790ab171e4..d2170fe766db 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -79,7 +79,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.Js { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.PowerShell.cs similarity index 84% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.PowerShell.cs index 1cfe0cb684f1..7c2a88fa198c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISyste /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -144,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.TypeConverter.cs index ba89734c98cd..ed635dee5219 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.cs similarity index 99% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.cs index 7b3109104761..3312f373ed66 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemDataInternal { /// Backing field for property. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.json.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.json.cs index c15271e7f1d2..34673e6d245d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.PowerShell.cs similarity index 78% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.PowerShell.cs index 39d08e131939..04b9269f2b17 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class TrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResource(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,57 +110,57 @@ internal TrackedResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -175,51 +175,51 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.TypeConverter.cs index 072ddf9cea2d..6254b438365b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.cs similarity index 79% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.cs index 81d10fe7862f..4c63e9aadcf4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,20 +11,20 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' /// public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(); /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; @@ -34,63 +34,63 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Name; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTags()); set => this._tag = value; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -113,7 +113,7 @@ public TrackedResource() /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResource { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -129,18 +129,18 @@ public partial interface ITrackedResource : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get; set; } } /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IResourceInternal { /// The geo-location where the resource lives string Location { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.json.cs similarity index 96% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.json.cs index 20b7456d1b14..667b33d09f7e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -105,8 +105,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.PowerShell.cs similarity index 92% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.PowerShell.cs index 639d43011a42..d9b9cc6f690c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.TypeConverter.cs index 8e1b0b57a003..921a1b758511 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.cs similarity index 94% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.cs index 14a263013dd0..4d42fb0af2ce 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.dictionary.cs similarity index 98% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.dictionary.cs index 6dbc46d2f096..389183fc814a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.json.cs similarity index 97% rename from generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs rename to generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.json.cs index 700310ad971a..7278b6d5a813 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api60/TrackedResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs index 966727a1972e..576ab20a11bf 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs @@ -101,25 +101,25 @@ internal DnsResolverIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverName")) + if (content.Contains("DnsForwardingRulesetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName = (string) content.GetValueForProperty("DnsResolverName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName = (string) content.GetValueForProperty("DnsForwardingRulesetName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkName = (string) content.GetValueForProperty("VirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkName, global::System.Convert.ToString); } - if (content.Contains("InboundEndpointName")) + if (content.Contains("DnsResolverDomainListName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName = (string) content.GetValueForProperty("InboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); } - if (content.Contains("OutboundEndpointName")) + if (content.Contains("DnsResolverPolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName = (string) content.GetValueForProperty("OutboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); } - if (content.Contains("DnsForwardingRulesetName")) + if (content.Contains("DnsResolverName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName = (string) content.GetValueForProperty("DnsForwardingRulesetName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName = (string) content.GetValueForProperty("DnsResolverName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName, global::System.Convert.ToString); } if (content.Contains("ForwardingRuleName")) { @@ -129,10 +129,6 @@ internal DnsResolverIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverPolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); - } if (content.Contains("DnsSecurityRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); @@ -141,9 +137,13 @@ internal DnsResolverIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverDomainListName")) + if (content.Contains("InboundEndpointName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName = (string) content.GetValueForProperty("InboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName, global::System.Convert.ToString); + } + if (content.Contains("OutboundEndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName = (string) content.GetValueForProperty("OutboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -174,25 +174,25 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverName")) + if (content.Contains("DnsForwardingRulesetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName = (string) content.GetValueForProperty("DnsResolverName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName = (string) content.GetValueForProperty("DnsForwardingRulesetName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkName = (string) content.GetValueForProperty("VirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkName, global::System.Convert.ToString); } - if (content.Contains("InboundEndpointName")) + if (content.Contains("DnsResolverDomainListName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName = (string) content.GetValueForProperty("InboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); } - if (content.Contains("OutboundEndpointName")) + if (content.Contains("DnsResolverPolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName = (string) content.GetValueForProperty("OutboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); } - if (content.Contains("DnsForwardingRulesetName")) + if (content.Contains("DnsResolverName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName = (string) content.GetValueForProperty("DnsForwardingRulesetName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsForwardingRulesetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName = (string) content.GetValueForProperty("DnsResolverName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverName, global::System.Convert.ToString); } if (content.Contains("ForwardingRuleName")) { @@ -202,10 +202,6 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverPolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); - } if (content.Contains("DnsSecurityRuleName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); @@ -214,9 +210,13 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); } - if (content.Contains("DnsResolverDomainListName")) + if (content.Contains("InboundEndpointName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName = (string) content.GetValueForProperty("InboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).InboundEndpointName, global::System.Convert.ToString); + } + if (content.Contains("OutboundEndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName = (string) content.GetValueForProperty("OutboundEndpointName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).OutboundEndpointName, global::System.Convert.ToString); } if (content.Contains("Id")) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs index e885fd27d384..404a80a8f4f7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs @@ -110,7 +110,7 @@ public partial class DnsResolverIdentity : /// Backing field for property. private string _virtualNetworkName; - /// The name of the virtual network. + /// The name of the VirtualNetwork [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string VirtualNetworkName { get => this._virtualNetworkName; set => this._virtualNetworkName = value; } @@ -229,11 +229,11 @@ public partial interface IDnsResolverIdentity : SerializedName = @"virtualNetworkLinkName", PossibleTypes = new [] { typeof(string) })] string VirtualNetworkLinkName { get; set; } - /// The name of the virtual network. + /// The name of the VirtualNetwork [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the virtual network.", + Description = @"The name of the VirtualNetwork", SerializedName = @"virtualNetworkName", PossibleTypes = new [] { typeof(string) })] string VirtualNetworkName { get; set; } @@ -270,7 +270,7 @@ internal partial interface IDnsResolverIdentityInternal string SubscriptionId { get; set; } /// The name of the virtual network link. string VirtualNetworkLinkName { get; set; } - /// The name of the virtual network. + /// The name of the VirtualNetwork string VirtualNetworkName { get; set; } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs index a7cb4e5da4d8..1bd7ac932834 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs @@ -66,17 +66,17 @@ internal DnsResolverIdentity(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt } {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} - {_dnsResolverName = If( json?.PropertyT("dnsResolverName"), out var __jsonDnsResolverName) ? (string)__jsonDnsResolverName : (string)DnsResolverName;} - {_virtualNetworkName = If( json?.PropertyT("virtualNetworkName"), out var __jsonVirtualNetworkName) ? (string)__jsonVirtualNetworkName : (string)VirtualNetworkName;} - {_inboundEndpointName = If( json?.PropertyT("inboundEndpointName"), out var __jsonInboundEndpointName) ? (string)__jsonInboundEndpointName : (string)InboundEndpointName;} - {_outboundEndpointName = If( json?.PropertyT("outboundEndpointName"), out var __jsonOutboundEndpointName) ? (string)__jsonOutboundEndpointName : (string)OutboundEndpointName;} {_dnsForwardingRulesetName = If( json?.PropertyT("dnsForwardingRulesetName"), out var __jsonDnsForwardingRulesetName) ? (string)__jsonDnsForwardingRulesetName : (string)DnsForwardingRulesetName;} + {_virtualNetworkName = If( json?.PropertyT("virtualNetworkName"), out var __jsonVirtualNetworkName) ? (string)__jsonVirtualNetworkName : (string)VirtualNetworkName;} + {_dnsResolverDomainListName = If( json?.PropertyT("dnsResolverDomainListName"), out var __jsonDnsResolverDomainListName) ? (string)__jsonDnsResolverDomainListName : (string)DnsResolverDomainListName;} + {_dnsResolverPolicyName = If( json?.PropertyT("dnsResolverPolicyName"), out var __jsonDnsResolverPolicyName) ? (string)__jsonDnsResolverPolicyName : (string)DnsResolverPolicyName;} + {_dnsResolverName = If( json?.PropertyT("dnsResolverName"), out var __jsonDnsResolverName) ? (string)__jsonDnsResolverName : (string)DnsResolverName;} {_forwardingRuleName = If( json?.PropertyT("forwardingRuleName"), out var __jsonForwardingRuleName) ? (string)__jsonForwardingRuleName : (string)ForwardingRuleName;} {_virtualNetworkLinkName = If( json?.PropertyT("virtualNetworkLinkName"), out var __jsonVirtualNetworkLinkName) ? (string)__jsonVirtualNetworkLinkName : (string)VirtualNetworkLinkName;} - {_dnsResolverPolicyName = If( json?.PropertyT("dnsResolverPolicyName"), out var __jsonDnsResolverPolicyName) ? (string)__jsonDnsResolverPolicyName : (string)DnsResolverPolicyName;} {_dnsSecurityRuleName = If( json?.PropertyT("dnsSecurityRuleName"), out var __jsonDnsSecurityRuleName) ? (string)__jsonDnsSecurityRuleName : (string)DnsSecurityRuleName;} {_dnsResolverPolicyVirtualNetworkLinkName = If( json?.PropertyT("dnsResolverPolicyVirtualNetworkLinkName"), out var __jsonDnsResolverPolicyVirtualNetworkLinkName) ? (string)__jsonDnsResolverPolicyVirtualNetworkLinkName : (string)DnsResolverPolicyVirtualNetworkLinkName;} - {_dnsResolverDomainListName = If( json?.PropertyT("dnsResolverDomainListName"), out var __jsonDnsResolverDomainListName) ? (string)__jsonDnsResolverDomainListName : (string)DnsResolverDomainListName;} + {_inboundEndpointName = If( json?.PropertyT("inboundEndpointName"), out var __jsonInboundEndpointName) ? (string)__jsonInboundEndpointName : (string)InboundEndpointName;} + {_outboundEndpointName = If( json?.PropertyT("outboundEndpointName"), out var __jsonOutboundEndpointName) ? (string)__jsonOutboundEndpointName : (string)OutboundEndpointName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -114,17 +114,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs } AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); - AddIf( null != (((object)this._dnsResolverName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverName.ToString()) : null, "dnsResolverName" ,container.Add ); - AddIf( null != (((object)this._virtualNetworkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._virtualNetworkName.ToString()) : null, "virtualNetworkName" ,container.Add ); - AddIf( null != (((object)this._inboundEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._inboundEndpointName.ToString()) : null, "inboundEndpointName" ,container.Add ); - AddIf( null != (((object)this._outboundEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._outboundEndpointName.ToString()) : null, "outboundEndpointName" ,container.Add ); AddIf( null != (((object)this._dnsForwardingRulesetName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsForwardingRulesetName.ToString()) : null, "dnsForwardingRulesetName" ,container.Add ); + AddIf( null != (((object)this._virtualNetworkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._virtualNetworkName.ToString()) : null, "virtualNetworkName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverDomainListName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverDomainListName.ToString()) : null, "dnsResolverDomainListName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyName.ToString()) : null, "dnsResolverPolicyName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverName.ToString()) : null, "dnsResolverName" ,container.Add ); AddIf( null != (((object)this._forwardingRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._forwardingRuleName.ToString()) : null, "forwardingRuleName" ,container.Add ); AddIf( null != (((object)this._virtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._virtualNetworkLinkName.ToString()) : null, "virtualNetworkLinkName" ,container.Add ); - AddIf( null != (((object)this._dnsResolverPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyName.ToString()) : null, "dnsResolverPolicyName" ,container.Add ); AddIf( null != (((object)this._dnsSecurityRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleName.ToString()) : null, "dnsSecurityRuleName" ,container.Add ); AddIf( null != (((object)this._dnsResolverPolicyVirtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyVirtualNetworkLinkName.ToString()) : null, "dnsResolverPolicyVirtualNetworkLinkName" ,container.Add ); - AddIf( null != (((object)this._dnsResolverDomainListName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverDomainListName.ToString()) : null, "dnsResolverDomainListName" ,container.Add ); + AddIf( null != (((object)this._inboundEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._inboundEndpointName.ToString()) : null, "inboundEndpointName" ,container.Add ); + AddIf( null != (((object)this._outboundEndpointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._outboundEndpointName.ToString()) : null, "outboundEndpointName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.Completer.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.Completer.cs new file mode 100644 index 000000000000..44f8894c0de5 --- /dev/null +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// Describes Managed Domain List options for DNS security rules. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainListTypeConverter))] + public partial struct ManagedDomainList : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureDnsThreatIntel".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureDnsThreatIntel'", "AzureDnsThreatIntel", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureDnsThreatIntel"); + } + } + } +} \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.TypeConverter.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.TypeConverter.cs new file mode 100644 index 000000000000..4cfc1e774398 --- /dev/null +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// Describes Managed Domain List options for DNS security rules. + public partial class ManagedDomainListTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ManagedDomainList.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.cs new file mode 100644 index 000000000000..aa7e8721be95 --- /dev/null +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/api/Support/ManagedDomainList.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// Describes Managed Domain List options for DNS security rules. + public partial struct ManagedDomainList : + System.IEquatable + { + /// Domain list managed by Azure DNS Threat Intelligence. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList AzureDnsThreatIntel = @"AzureDnsThreatIntel"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ManagedDomainList + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ManagedDomainList(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ManagedDomainList + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ManagedDomainList (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ManagedDomainList && Equals((ManagedDomainList)obj); + } + + /// Returns hashCode for enum ManagedDomainList + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ManagedDomainList(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ManagedDomainList + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ManagedDomainList + /// the value to convert to an instance of . + + public static implicit operator ManagedDomainList(string value) + { + return new ManagedDomainList(value); + } + + /// Implicit operator to convert ManagedDomainList to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e) + { + return e._value; + } + + /// Overriding != operator for enum ManagedDomainList + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ManagedDomainList + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs index bb34f0fe4ab6..98ad3c276089 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -162,24 +163,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +388,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +410,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +428,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +445,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index 9073d5659f10..9253c94941ec 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +110,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +378,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +396,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +413,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs index c0a5422a2c1a..632df632ae0e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists forwarding rules in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +417,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +435,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRuleListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index 69eb16df78a0..89fadac8e4d7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -162,24 +162,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 44e7b746edd2..4175b57c89ed 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index dd574ca78c63..bc4d79f1e01a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists virtual network links to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs index eb5a98feb4f5..f671fd0d4a91 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,24 +149,24 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +374,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +431,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs index 9d9feb4137f0..f51ba0307a85 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +110,24 @@ public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +352,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +374,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs index 3467419d5558..b66f97527301 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs @@ -8,15 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS forwarding rulesets within a resource group. + /// Lists DNS forwarding rulesets in all resource groups of a subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets within a resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRuleset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,20 +103,6 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -155,24 +142,24 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,13 +323,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsForwardingRulesetsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -380,12 +367,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,15 +389,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -420,12 +407,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +438,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsForwardingRulesetsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs index 1b56eab5601b..7585126eaba7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs @@ -8,15 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS forwarding rulesets in all resource groups of a subscription. + /// Lists DNS forwarding rulesets within a resource group. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets in all resource groups of a subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,6 +103,20 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -141,24 +156,24 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,13 +337,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsForwardingRulesetsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -366,12 +381,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,15 +403,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -406,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +452,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsForwardingRulesetsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs index f69e023713ce..c92b49fef8d7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding ruleset resource IDs attached to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -153,12 +154,12 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// Backing field for property. private string _virtualNetworkName; - /// The name of the virtual network. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the virtual network.")] + /// The name of the VirtualNetwork + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the VirtualNetwork")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the virtual network.", + Description = @"The name of the VirtualNetwork", SerializedName = @"virtualNetworkName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] @@ -169,24 +170,24 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +398,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +420,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +438,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs index dfd136f45e71..b7a99f48e58d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverDomainList_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,24 +149,24 @@ public partial class GetAzDnsResolverDomainList_Get : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +374,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +431,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs index 92c03afc24a1..f6fe49dc0212 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverDomainList_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +110,24 @@ public partial class GetAzDnsResolverDomainList_GetViaIdentity : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +352,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +374,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs index 738279ddcb1b..9b09e486062a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs @@ -8,15 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolver domain lists within a resource group. + /// Lists DNS resolver domain lists in all resource groups of a subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists within a resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverDomainList_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,20 +103,6 @@ public partial class GetAzDnsResolverDomainList_List : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -155,24 +142,24 @@ public partial class GetAzDnsResolverDomainList_List : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,13 +323,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverDomainListsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverDomainListsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -380,12 +367,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,15 +389,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -420,12 +407,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +438,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverDomainListsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverDomainListsList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs index 43d2be189af9..e4b7269cc06b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs @@ -8,15 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolver domain lists in all resource groups of a subscription. + /// Lists DNS resolver domain lists within a resource group. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists in all resource groups of a subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverDomainList_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,6 +103,20 @@ public partial class GetAzDnsResolverDomainList_List1 : global::System.Managemen [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -141,24 +156,24 @@ public partial class GetAzDnsResolverDomainList_List1 : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,13 +337,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverDomainListsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverDomainListsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -366,12 +381,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,15 +403,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -406,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +452,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverDomainListsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverDomainListsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs index 594d61270f56..d9598e746a7b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -162,24 +163,24 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +388,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +410,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +428,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +445,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index 4979519aa3a5..bd5fcbf8b9d8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +110,24 @@ public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +378,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +396,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +413,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs index 4d201fb73491..7867305bd7e7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists inbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +417,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +435,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs index 913366cf797f..8de37bb08319 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index 520b86e1c351..17638d5198e4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs index 0549ca0fec1b..c21ca8b98f03 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists outbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs index c444aa086b21..130a5525504c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyDnsSecurityRule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverPolicyDnsSecurityRule_Get : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs index f51bc71f43cb..6a913e4a7039 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity : glob /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs index 1a4b99e7db30..f310b2ef9627 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS security rules for a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyDnsSecurityRule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverPolicyDnsSecurityRule_List : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRuleListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs index f4566ff00d6f..ed15264c0fcb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -164,24 +164,24 @@ public partial class GetAzDnsResolverPolicyVirtualNetworkLink_Get : global::Syst /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -389,12 +389,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +411,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -429,12 +429,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -446,7 +446,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs index b2d296f4a573..5f46f31101c2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity : g /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs index 09428fa58585..fceb920c0ca1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy virtual network links.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicyVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverPolicyVirtualNetworkLink_List : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs index 93a751403335..0e52f64d4c4d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicy_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,24 +148,24 @@ public partial class GetAzDnsResolverPolicy_Get : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs index 9e1a36cede9e..8a5a769e6aba 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverPolicy_GetViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs index 1eedd26871e8..04b1de127de6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs @@ -8,15 +8,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolver policies within a resource group. + /// Lists DNS resolver policies in all resource groups of a subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies within a resource group.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicy_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,20 +102,6 @@ public partial class GetAzDnsResolverPolicy_List : global::System.Management.Aut [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -155,24 +141,24 @@ public partial class GetAzDnsResolverPolicy_List : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,13 +322,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverPoliciesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverPoliciesList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -380,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,15 +388,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -420,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +437,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverPoliciesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverPoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs index 9955eb6e8ea5..f9394d1f39eb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs @@ -8,15 +8,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolver policies in all resource groups of a subscription. + /// Lists DNS resolver policies within a resource group. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies in all resource groups of a subscription.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicy_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,6 +102,20 @@ public partial class GetAzDnsResolverPolicy_List1 : global::System.Management.Au [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -141,24 +155,24 @@ public partial class GetAzDnsResolverPolicy_List1 : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,13 +336,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverPoliciesList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverPoliciesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -366,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,15 +402,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -406,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +451,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolverPoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolverPoliciesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs index 0db32f7a27a7..5850224b2be2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy resource IDs linked to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolverPolicy_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -137,12 +137,12 @@ public partial class GetAzDnsResolverPolicy_List2 : global::System.Management.Au /// Backing field for property. private string _virtualNetworkName; - /// The name of the virtual network. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the virtual network.")] + /// The name of the VirtualNetwork + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the VirtualNetwork")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the virtual network.", + Description = @"The name of the VirtualNetwork", SerializedName = @"virtualNetworkName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] @@ -153,24 +153,24 @@ public partial class GetAzDnsResolverPolicy_List2 : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -381,12 +381,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -403,7 +403,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs index 9bfe8200c020..4b3389eedbe5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolver_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,24 +148,24 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs index f8da1ea0fde9..28ba22681c6f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs index 006007dd3ed0..ec808eef04a6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs @@ -8,15 +8,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolvers within a resource group. + /// Lists DNS resolvers in all resource groups of a subscription. /// - /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers within a resource group.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolver_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,20 +102,6 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; @@ -155,24 +141,24 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,13 +322,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolversListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -380,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,15 +388,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -420,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +437,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolversListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs index 373a3dc2eb6a..70a419102bd4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs @@ -8,15 +8,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; using System; - /// Lists DNS resolvers in all resource groups of a subscription. + /// Lists DNS resolvers within a resource group. /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers in all resource groups of a subscription.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolver_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -102,6 +102,20 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; @@ -141,24 +155,24 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,13 +336,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolversList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -366,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,15 +402,15 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -406,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +451,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DnsResolversList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs index ceb8eeae9518..b48efa94895e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver resource IDs linked to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2025-10-01-preview")] public partial class GetAzDnsResolver_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -153,12 +153,12 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// Backing field for property. private string _virtualNetworkName; - /// The name of the virtual network. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the virtual network.")] + /// The name of the VirtualNetwork + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the VirtualNetwork")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the virtual network.", + Description = @"The name of the VirtualNetwork", SerializedName = @"virtualNetworkName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] @@ -169,24 +169,24 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResourceListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk.cs index 11c9033210a5..32f385dbcfb7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Bulk=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDnsResolverBulkDnsResolverDomainList_Bulk", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Uploads or downloads the list of domains for a DNS Resolver Domain List from a storage link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-10-01-preview")] public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global: Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -113,7 +113,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global: Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -138,7 +138,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk _parameter; /// Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations.", ValueFromPipeline = true)] @@ -147,8 +147,8 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global: ReadOnly = false, Description = @"Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -208,24 +208,24 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_Bulk : global: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverDomainListName=DnsResolverDomainListName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -529,12 +529,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded.cs index 18f9ec172298..8c206c172902 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Bulk=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDnsResolverBulkDnsResolverDomainList_BulkExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Uploads or downloads the list of domains for a DNS Resolver Domain List from a storage link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-10-01-preview")] public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulk(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulk(); /// The action to take in the request, Upload or Download. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The action to take in the request, Upload or Download.")] @@ -112,7 +112,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded : Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -128,7 +128,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded : Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -223,24 +223,24 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkExpanded : /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -506,12 +506,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +528,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverDomainListName=DnsResolverDomainListName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +546,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity.cs index 44786e9ae03b..ed6867cbae58 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Bulk=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Uploads or downloads the list of domains for a DNS Resolver Domain List from a storage link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-10-01-preview")] public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -99,7 +99,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -132,7 +132,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk _parameter; /// Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations.", ValueFromPipeline = true)] @@ -141,8 +141,8 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit ReadOnly = false, Description = @"Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -170,24 +170,24 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -470,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -492,7 +492,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -510,12 +510,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -527,7 +527,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded.cs index 1058451c1b56..e267ce803186 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Bulk=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Uploads or downloads the list of domains for a DNS Resolver Domain List from a storage link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}/bulk", ApiVersion = "2025-10-01-preview")] public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -37,7 +37,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver domain list for bulk UPLOAD or DOWNLOAD operations. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListBulk _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListBulk(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListBulk _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListBulk(); /// The action to take in the request, Upload or Download. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The action to take in the request, Upload or Download.")] @@ -98,7 +98,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -114,7 +114,7 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -185,24 +185,24 @@ public partial class InvokeAzDnsResolverBulkDnsResolverDomainList_BulkViaIdentit /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -486,12 +486,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -526,12 +526,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -543,7 +543,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index c0b33457de38..3bdf5e89d3a4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRulesetForwardingRule_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule within a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRule(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -116,7 +117,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -132,7 +133,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -149,8 +150,8 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -237,44 +238,44 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onCreated method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -480,12 +481,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 201 (Created). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +498,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } @@ -506,12 +507,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +529,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +547,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -563,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index e194b0f80be9..9f52211c592d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLink(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLink(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -114,7 +114,7 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -131,8 +131,8 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -234,24 +234,24 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -518,12 +518,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -540,7 +540,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -558,12 +558,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -575,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs index 83bd7c448320..143bc2f8a36e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRuleset_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRuleset(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRuleset(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +73,8 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -99,7 +100,7 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -115,7 +116,7 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -227,32 +228,32 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -516,12 +517,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -538,7 +539,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -556,12 +557,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -573,7 +574,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs index cfb133c0b4d0..295584e7c85d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverDomainList_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver domain list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System. private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver domain list. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainList(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainList(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +99,7 @@ public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System. Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -114,7 +115,7 @@ public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System. Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -226,32 +227,32 @@ public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System. ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -515,12 +516,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -537,7 +538,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -555,12 +556,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -572,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 57f7769c8fa1..46ca3266ae34 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverInboundEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -95,8 +96,8 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } /// Backing field for property. private string _ifMatch; @@ -110,7 +111,7 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -126,7 +127,7 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -238,32 +239,32 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -528,12 +529,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -550,7 +551,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -568,12 +569,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -585,7 +586,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index 5247e5999593..4e54baece16d 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverOutboundEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -114,7 +114,7 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -237,32 +237,32 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -527,12 +527,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -549,7 +549,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -567,12 +567,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -584,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs index 23be364f60ba..19fd853cd08f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyDnsSecurityRule_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS security rule for a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS security rule. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRule(); /// The type of action to take. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] @@ -74,15 +74,15 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob /// DNS resolver policy domains lists that the DNS security rule applies to. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } /// Backing field for property. private string _dnsResolverPolicyName; @@ -134,7 +134,7 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -150,7 +150,7 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -169,6 +169,19 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob PossibleTypes = new [] { typeof(string) })] public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + /// Managed domain lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed domain lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => _parametersBody.ManagedDomainList ?? null /* arrayOf */; set => _parametersBody.ManagedDomainList = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -273,32 +286,32 @@ public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : glob ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -563,12 +576,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -585,7 +598,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -603,12 +616,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -620,7 +633,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs index fe3f340e2974..774a3f85c7a8 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy virtual network link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : g private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy virtual network link. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLink(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLink(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : g Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -114,7 +114,7 @@ public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : g Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -228,8 +228,8 @@ public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : g ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Resource ID. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] @@ -247,24 +247,24 @@ public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : g /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -529,12 +529,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -551,7 +551,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -569,12 +569,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -586,7 +586,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs index 33ed1f8d97e0..8338483f9e28 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicy_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Mana private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicy(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Mana Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -100,7 +100,7 @@ public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Mana Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -212,32 +212,32 @@ public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Mana ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -501,12 +501,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -523,7 +523,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -541,12 +541,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -558,7 +558,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs index 55058b3b3195..27da1ed94041 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolver_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class NewAzDnsResolver_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolver(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolver(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -100,7 +100,7 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management Required = false, ReadOnly = false, Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", - SerializedName = @"If-None-Match", + SerializedName = @"if-none-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } @@ -212,8 +212,8 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Resource ID. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] @@ -231,24 +231,24 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -512,12 +512,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -534,7 +534,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -552,12 +552,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index 1a56435a43ef..e7f7da39618c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -92,7 +92,7 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -443,7 +443,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index c57a32e6ad01..5f9420efcdfb 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -78,7 +78,7 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -135,12 +135,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -414,7 +414,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index 5081821e496c..0b6d6d11d854 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -201,12 +201,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index 953b1f02e182..90b2c357b7f7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -148,12 +148,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -459,12 +459,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -481,7 +481,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs index 9c6fee529b80..c800732016ec 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -84,7 +84,7 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 5acb6744b473..776b7964a00c 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -84,7 +84,7 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -149,12 +149,12 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -453,12 +453,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -475,7 +475,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs index c0bc4c4421a5..d3969ab02e3f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverDomainList_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolverDomainList_Delete : global::System.Manag Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -185,12 +185,12 @@ public partial class RemoveAzDnsResolverDomainList_Delete : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -462,12 +462,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -484,7 +484,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs index 0f88aea06e38..c4e29096183f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverDomainList_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolverDomainList_DeleteViaIdentity : global::S Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,12 +146,12 @@ public partial class RemoveAzDnsResolverDomainList_DeleteViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -440,12 +440,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -462,7 +462,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 8423da261f51..458d6bd6a72b 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index a93664e88fa7..869acb5173ae 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index 1669402b8b8b..9470eaea0f55 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 9cf5b8781776..3c86ea6740fa 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs index 57a2fe49219d..59d5d37485ef 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_Delete : global::S Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_Delete : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -479,12 +479,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -501,7 +501,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs index 32166c1e3a15..ed96346cf452 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -448,12 +448,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -470,7 +470,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs index 9cec6928b689..ebe76d7cc41a 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -97,7 +97,7 @@ public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete : global Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -203,12 +203,12 @@ public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete : global /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -481,12 +481,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -503,7 +503,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs index 9e6bf113579e..cde14700b3b4 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -83,7 +83,7 @@ public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdenti Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdenti /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -448,12 +448,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -470,7 +470,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs index ccf690611af5..684a42164a16 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicy_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolverPolicy_Delete : global::System.Managemen Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -185,12 +185,12 @@ public partial class RemoveAzDnsResolverPolicy_Delete : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -462,12 +462,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -484,7 +484,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs index 350a6869edf9..7f511ba425f1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolverPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolverPolicy_DeleteViaIdentity : global::Syste Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,12 +146,12 @@ public partial class RemoveAzDnsResolverPolicy_DeleteViaIdentity : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -440,12 +440,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -462,7 +462,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs index dd80e1155d0f..2a2645bea133 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolver_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -185,12 +185,12 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -472,12 +472,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -494,7 +494,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs index 65c2c659ab22..a0bf6a1ca0af 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -81,7 +81,7 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,12 +146,12 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -450,12 +450,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index 966ab1711360..0ca8a8f90ad6 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetForwardingRule_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -105,7 +106,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -122,8 +123,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -210,32 +211,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +444,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -465,7 +466,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -483,12 +484,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -500,7 +501,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index 75e1c9130b61..f622b0efcfac 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -91,7 +92,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -116,8 +117,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -157,32 +158,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -415,12 +416,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +438,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -455,12 +456,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +473,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IForwardingRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index 598e1815fb78..dfec32e90643 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -115,8 +115,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -207,24 +207,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -490,12 +490,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -512,7 +512,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -530,12 +530,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -547,7 +547,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 159c5b04e593..1ad6cee3378e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -109,8 +109,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -154,24 +154,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -458,12 +458,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -480,7 +480,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -498,12 +498,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -515,7 +515,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index fd85678996e7..fb5aa7f74dd5 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRuleset_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +73,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -99,7 +100,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -200,32 +201,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +489,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +511,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +529,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +546,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index 6cc946a13b54..d3f0536f03ba 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRuleset_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +73,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -99,7 +100,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -161,32 +162,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -466,12 +467,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +489,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -506,12 +507,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -523,7 +524,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs index c73ea2e239e6..ce3f6bf92124 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::Syst private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver domain list for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -96,7 +97,7 @@ public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::Syst Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -197,32 +198,32 @@ public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::Syst ReadOnly = false, Description = @"Tags for DNS resolver domain list.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -485,12 +486,12 @@ public UpdateAzDnsResolverDomainList_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -507,7 +508,7 @@ public UpdateAzDnsResolverDomainList_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -525,12 +526,12 @@ public UpdateAzDnsResolverDomainList_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -542,7 +543,7 @@ public UpdateAzDnsResolverDomainList_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs index 8d6224e1b16b..1bce75505191 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : g private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver domain list for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverDomainListPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverDomainListPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -96,7 +97,7 @@ public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : g Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -158,32 +159,32 @@ public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : g ReadOnly = false, Description = @"Tags for DNS resolver domain list.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -463,12 +464,12 @@ public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -485,7 +486,7 @@ public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -503,12 +504,12 @@ public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -520,7 +521,7 @@ public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverDomainList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverDomainList WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index 77d8f95bc906..ce8e950bdaa2 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverInboundEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +99,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -199,32 +200,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +489,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +511,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +529,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +546,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index 862e650e0cd0..8e429abfe8fe 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PreviewMessage("*****************************************************************************************\r\n* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *\r\n* At least one change applies to this cmdlet. *\r\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\r\n**************************************************************************************************")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +36,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +85,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,32 +147,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +458,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +480,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +498,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +515,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 8a9735434c74..2c384ce40f85 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -199,32 +199,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index a672c5d09cbe..946e5801bb3e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +497,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs index 1fba0b648635..79b008be549e 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : g private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS security rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatch(); /// The type of action to take. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] @@ -81,8 +81,8 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : g ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } /// Backing field for property. private string _dnsResolverPolicyName; @@ -134,7 +134,7 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : g Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -142,6 +142,19 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : g /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// Managed domain lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed domain lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => _parametersBody.ManagedDomainList ?? null /* arrayOf */; set => _parametersBody.ManagedDomainList = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -246,32 +259,32 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : g ReadOnly = false, Description = @"Tags for DNS security rule.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -535,12 +548,12 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -557,7 +570,7 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -575,12 +588,12 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -592,7 +605,7 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs index 799ff3a47b51..0a0748dde790 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityE private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS security rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsSecurityRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsSecurityRulePatch(); /// The type of action to take. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] @@ -81,8 +81,8 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityE ReadOnly = false, Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", SerializedName = @"dnsResolverDomainLists", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } /// The state of DNS security rule. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security rule.")] @@ -120,7 +120,7 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityE Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -136,6 +136,19 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityE /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// Managed domain lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Managed domain lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Managed domain lists that the DNS security rule applies to.", + SerializedName = @"managedDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ManagedDomainList[] ManagedDomainList { get => _parametersBody.ManagedDomainList ?? null /* arrayOf */; set => _parametersBody.ManagedDomainList = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -193,32 +206,32 @@ public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityE ReadOnly = false, Description = @"Tags for DNS security rule.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -505,12 +518,12 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -527,7 +540,7 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -545,12 +558,12 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -562,7 +575,7 @@ public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsSecurityRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsSecurityRule WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs index 4e97be634532..760e359c6c32 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -98,7 +98,7 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -201,32 +201,32 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded ReadOnly = false, Description = @"Tags for the DNS resolver policy virtual network link.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -492,12 +492,12 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -532,12 +532,12 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -549,7 +549,7 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 11311aa3edde..4d150069141f 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdenti private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyVirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdenti Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdenti ReadOnly = false, Description = @"Tags for the DNS resolver policy virtual network link.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -458,12 +458,12 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -480,7 +480,7 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -498,12 +498,12 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -515,7 +515,7 @@ public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyVirtualNetworkLink WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs index d0ff6a3169eb..db6081bc2ca0 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.M private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.M Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -185,32 +185,32 @@ public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.M ReadOnly = false, Description = @"Tags for DNS resolver policy.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -473,12 +473,12 @@ public UpdateAzDnsResolverPolicy_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +495,7 @@ public UpdateAzDnsResolverPolicy_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +513,12 @@ public UpdateAzDnsResolverPolicy_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -530,7 +530,7 @@ public UpdateAzDnsResolverPolicy_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs index 20da46022a58..8bfc2dd08fba 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : globa private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver policy for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPolicyPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPolicyPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : globa Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : globa ReadOnly = false, Description = @"Tags for DNS resolver policy.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api60.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +473,7 @@ public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +491,12 @@ public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPolicy WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs index 8dce54d4708a..81f1621393c1 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -185,32 +185,32 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -473,12 +473,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +495,7 @@ public UpdateAzDnsResolver_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +513,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -530,7 +530,7 @@ public UpdateAzDnsResolver_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index d9e774957e0f..c8ea557e1262 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-05-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2025-10-01-preview")] public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -84,7 +84,7 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys Required = false, ReadOnly = false, Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", - SerializedName = @"If-Match", + SerializedName = @"if-match", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +473,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +491,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20250501.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20251001Preview.IDnsResolver WriteObject((await response)); } } diff --git a/generated/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/generated/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index ef2bc17b54d6..4a9d867d1ac7 100644 --- a/generated/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/generated/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"1.2.0-preview"); + string version = Convert.ToString(@"1.3.0-preview"); // Validate the module version should be semantic version // Following regex is official from https://semver.org/ Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled);