diff --git a/src/DnsResolver/Az.DnsResolver.format.ps1xml b/src/DnsResolver/Az.DnsResolver.format.ps1xml index 8a54821f0992..5f44e91e893d 100644 --- a/src/DnsResolver/Az.DnsResolver.format.ps1xml +++ b/src/DnsResolver/Az.DnsResolver.format.ps1xml @@ -218,9 +218,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody @@ -252,9 +252,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset @@ -286,9 +286,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult @@ -308,9 +308,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags @@ -330,9 +330,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties @@ -358,9 +358,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver @@ -392,9 +392,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult @@ -414,9 +414,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags @@ -436,9 +436,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties @@ -470,9 +470,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule @@ -498,9 +498,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult @@ -520,9 +520,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties @@ -542,9 +542,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata @@ -564,9 +564,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties @@ -598,9 +598,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata @@ -620,9 +620,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint @@ -654,9 +654,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult @@ -676,9 +676,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags @@ -698,9 +698,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties @@ -726,9 +726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration @@ -754,9 +754,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint @@ -788,9 +788,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult @@ -810,9 +810,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags @@ -832,9 +832,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties @@ -860,9 +860,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult @@ -882,9 +882,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer @@ -910,9 +910,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult @@ -932,9 +932,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink @@ -960,9 +960,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult @@ -982,9 +982,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata @@ -1004,9 +1004,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties @@ -1026,9 +1026,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata diff --git a/src/DnsResolver/Az.DnsResolver.psd1 b/src/DnsResolver/Az.DnsResolver.psd1 index 740b613e55a7..cd9addaaf8c5 100644 --- a/src/DnsResolver/Az.DnsResolver.psd1 +++ b/src/DnsResolver/Az.DnsResolver.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2/21/2022 +# Generated on: 7/6/2022 # @{ diff --git a/src/DnsResolver/Az.DnsResolver.psm1 b/src/DnsResolver/Az.DnsResolver.psm1 index 9fff5a6765f8..0f491d9ed316 100644 --- a/src/DnsResolver/Az.DnsResolver.psm1 +++ b/src/DnsResolver/Az.DnsResolver.psm1 @@ -25,17 +25,17 @@ } } if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0 + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru } } } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" @@ -50,6 +50,10 @@ # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Following two delegates are added for telemetry + $instance.GetTelemetryId = $VTable.GetTelemetryId + $instance.Telemetry = $VTable.Telemetry # Tweaks the pipeline per call diff --git a/src/DnsResolver/Changelog.md b/src/DnsResolver/Changelog.md index 5f6025923641..59e08a997191 100644 --- a/src/DnsResolver/Changelog.md +++ b/src/DnsResolver/Changelog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Upgraded API version to 2022-07-01 ## Version 0.2.0 * Preview release for module Az.DnsResolver diff --git a/src/DnsResolver/DnsResolver.sln b/src/DnsResolver/DnsResolver.sln index ed5cfdeee08c..19dc9b952e5e 100644 --- a/src/DnsResolver/DnsResolver.sln +++ b/src/DnsResolver/DnsResolver.sln @@ -1,19 +1,19 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 -VisualStudioVersion = 16.0.30114.105 +VisualStudioVersion = 16.6.30114.105 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{1AAF4496-1C62-4239-9FC9-45241679C601}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{7AD1DC11-29EC-4D98-8336-35713887406F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{D0F3FF3B-C2DB-446C-A7F2-0E094230B789}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{43A2C05E-F534-4E6F-8F27-7EEF49001CC8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{72C91295-B6CE-462D-B845-BEE9BFC91C4D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{3559AC31-6C95-4BB6-8081-D3E1FFA399B1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{DB823C03-6F58-4B24-9389-70E58CA4527D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{D95E12E1-E2E4-4E49-AAD2-F95857A060C9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DnsResolver", "Az.DnsResolver.csproj", "{B99BC3EF-8185-4231-8D07-39E33803AB1D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DnsResolver", "Az.DnsResolver.csproj", "{22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -28,77 +28,77 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|x64.ActiveCfg = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|x64.Build.0 = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|x86.ActiveCfg = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Debug|x86.Build.0 = Debug|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|Any CPU.Build.0 = Release|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|x64.ActiveCfg = Release|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|x64.Build.0 = Release|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|x86.ActiveCfg = Release|Any CPU - {1AAF4496-1C62-4239-9FC9-45241679C601}.Release|x86.Build.0 = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|x64.ActiveCfg = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|x64.Build.0 = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|x86.ActiveCfg = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Debug|x86.Build.0 = Debug|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|Any CPU.Build.0 = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|x64.ActiveCfg = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|x64.Build.0 = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|x86.ActiveCfg = Release|Any CPU - {7AD1DC11-29EC-4D98-8336-35713887406F}.Release|x86.Build.0 = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|x64.ActiveCfg = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|x64.Build.0 = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|x86.ActiveCfg = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Debug|x86.Build.0 = Debug|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|Any CPU.Build.0 = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|x64.ActiveCfg = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|x64.Build.0 = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|x86.ActiveCfg = Release|Any CPU - {D0F3FF3B-C2DB-446C-A7F2-0E094230B789}.Release|x86.Build.0 = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|x64.ActiveCfg = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|x64.Build.0 = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|x86.ActiveCfg = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Debug|x86.Build.0 = Debug|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|Any CPU.Build.0 = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|x64.ActiveCfg = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|x64.Build.0 = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|x86.ActiveCfg = Release|Any CPU - {72C91295-B6CE-462D-B845-BEE9BFC91C4D}.Release|x86.Build.0 = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|x64.ActiveCfg = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|x64.Build.0 = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|x86.ActiveCfg = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Debug|x86.Build.0 = Debug|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|Any CPU.Build.0 = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|x64.ActiveCfg = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|x64.Build.0 = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|x86.ActiveCfg = Release|Any CPU - {DB823C03-6F58-4B24-9389-70E58CA4527D}.Release|x86.Build.0 = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|x64.ActiveCfg = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|x64.Build.0 = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|x86.ActiveCfg = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Debug|x86.Build.0 = Debug|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|Any CPU.Build.0 = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|x64.ActiveCfg = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|x64.Build.0 = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|x86.ActiveCfg = Release|Any CPU - {B99BC3EF-8185-4231-8D07-39E33803AB1D}.Release|x86.Build.0 = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|x64.ActiveCfg = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|x64.Build.0 = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|x86.ActiveCfg = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Debug|x86.Build.0 = Debug|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|Any CPU.Build.0 = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|x64.ActiveCfg = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|x64.Build.0 = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|x86.ActiveCfg = Release|Any CPU + {0305F1CE-B0D2-4DDE-AAA8-673209A24BDE}.Release|x86.Build.0 = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|x64.ActiveCfg = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|x64.Build.0 = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|x86.ActiveCfg = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Debug|x86.Build.0 = Debug|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|Any CPU.Build.0 = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|x64.ActiveCfg = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|x64.Build.0 = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|x86.ActiveCfg = Release|Any CPU + {C2AB0A0E-536C-4BC1-8C55-48CB7EBD3748}.Release|x86.Build.0 = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|x64.ActiveCfg = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|x64.Build.0 = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|x86.ActiveCfg = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Debug|x86.Build.0 = Debug|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|Any CPU.Build.0 = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|x64.ActiveCfg = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|x64.Build.0 = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|x86.ActiveCfg = Release|Any CPU + {43A2C05E-F534-4E6F-8F27-7EEF49001CC8}.Release|x86.Build.0 = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|x64.ActiveCfg = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|x64.Build.0 = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|x86.ActiveCfg = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Debug|x86.Build.0 = Debug|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|Any CPU.Build.0 = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|x64.ActiveCfg = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|x64.Build.0 = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|x86.ActiveCfg = Release|Any CPU + {3559AC31-6C95-4BB6-8081-D3E1FFA399B1}.Release|x86.Build.0 = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|x64.ActiveCfg = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|x64.Build.0 = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|x86.ActiveCfg = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Debug|x86.Build.0 = Debug|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|Any CPU.Build.0 = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|x64.ActiveCfg = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|x64.Build.0 = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|x86.ActiveCfg = Release|Any CPU + {D95E12E1-E2E4-4E49-AAD2-F95857A060C9}.Release|x86.Build.0 = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|Any CPU.Build.0 = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|x64.ActiveCfg = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|x64.Build.0 = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|x86.ActiveCfg = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Debug|x86.Build.0 = Debug|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|Any CPU.ActiveCfg = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|Any CPU.Build.0 = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|x64.ActiveCfg = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|x64.Build.0 = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|x86.ActiveCfg = Release|Any CPU + {22BDF02C-5ACB-4919-94AE-34E3D0E5BA49}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/DnsResolver/README.md b/src/DnsResolver/README.md index 6d4f558d3d9a..ee978a4cd142 100644 --- a/src/DnsResolver/README.md +++ b/src/DnsResolver/README.md @@ -19,7 +19,7 @@ This directory contains the PowerShell module for the DnsResolver service. This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -70,15 +70,15 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -branch: c02f047046403abdcf578e38780b612c11ef6b0c +branch: 37072829f795ce840b8085035e8adf4721602f34 require: - $(this-folder)/../readme.azure.noprofile.md input-file: - - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2020-04-01-preview/dnsresolver.json + - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/dnsresolver.json -module-version: 0.1.6 +module-version: 0.2.1 title: DnsResolver -subject-prefix: $(service-name) +subject-prefix: DnsResolver inlining-threshold: 50 # If there are post APIs for some kinds of actions in the RP, you may need to diff --git a/src/DnsResolver/check-dependencies.ps1 b/src/DnsResolver/check-dependencies.ps1 index b02ae9135957..c29591c7bfe1 100644 --- a/src/DnsResolver/check-dependencies.ps1 +++ b/src/DnsResolver/check-dependencies.ps1 @@ -25,7 +25,7 @@ if(-not $Isolated) { function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { if($predicate) { $module = Get-Module -ListAvailable -Name $moduleName - if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." if ($requiredVersion) { @@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' diff --git a/src/DnsResolver/create-model-cmdlets.ps1 b/src/DnsResolver/create-model-cmdlets.ps1 index 0322b446bd17..1b5475fd42bc 100644 --- a/src/DnsResolver/create-model-cmdlets.ps1 +++ b/src/DnsResolver/create-model-cmdlets.ps1 @@ -23,7 +23,7 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'Az.DnsResolver'.Split(".")[1] + $ModuleName = 'DnsResolver' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir @@ -115,7 +115,9 @@ function CreateModelCmdlet { # check whether completer is needed $completer = ''; if($Type.Split('.').Split('.')[-2] -eq 'Support') { - $completer += "`n [ArgumentCompleter([${Type}])]" + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} diff --git a/src/DnsResolver/custom/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/custom/New-AzDnsResolverIPConfigurationObject.ps1 index c4209e59178e..5815405fae3b 100644 --- a/src/DnsResolver/custom/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/custom/New-AzDnsResolverIPConfigurationObject.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for IPConfiguration Create a in-memory object for IPConfiguration .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzDnsResolverIPConfigurationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration]::New() $Object.PrivateIPAddress = $PrivateIPAddress $Object.PrivateIPAllocationMethod = $PrivateIPAllocationMethod diff --git a/src/DnsResolver/custom/New-AzDnsResolverTargetDnsServer.ps1 b/src/DnsResolver/custom/New-AzDnsResolverTargetDnsServer.ps1 index 4177a21ca55b..274c2d62317e 100644 --- a/src/DnsResolver/custom/New-AzDnsResolverTargetDnsServer.ps1 +++ b/src/DnsResolver/custom/New-AzDnsResolverTargetDnsServer.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for Target DNS server Create a in-memory object for Target DNS server .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzDnsResolverTargetDnsServerObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer]::New() $Object.IPAddress = $IPAddress $Object.Port = $Port diff --git a/src/DnsResolver/examples/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/examples/Get-AzDnsForwardingRuleset.md index 7795a3a9e97a..3d8fc795194e 100644 --- a/src/DnsResolver/examples/Get-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/examples/Get-AzDnsForwardingRuleset.md @@ -56,15 +56,3 @@ westus2 dnsForwardingRuleset Microsoft.Network/dnsForwardingRulesets "04005 This command gets all DNS forwarding ruleset under the virtual network. -### Example 5: List all DNS forwarding ruleset under the Outbound Endpoint -```powershell -Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -DnsResolverName sampleDnsResolver -OutboundEndpointName sampleOutboundEndpoint -``` - -```output -Location Name Type Etag --------- ---- ---- ---- -westus2 dnsForwardingRuleset Microsoft.Network/dnsForwardingRulesets "04005592-0000-0800-0000-60e7ec170000" -``` - -This command gets all DNS forwarding ruleset under the outbound endpoint. \ No newline at end of file diff --git a/src/DnsResolver/examples/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/examples/Get-AzDnsForwardingRulesetVirtualNetworkLink.md index 3e3bd3015571..a1d8f198669d 100644 --- a/src/DnsResolver/examples/Get-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/examples/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -14,7 +14,7 @@ This command gets all virtual network link by name ### Example 2: Get single virtual network link by name ```powershell -Get-AzDnsResolverVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg ``` ```output diff --git a/src/DnsResolver/examples/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/examples/Get-AzDnsResolverInboundEndpoint.md index a2e07dba86df..a92dd7569544 100644 --- a/src/DnsResolver/examples/Get-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/examples/Get-AzDnsResolverInboundEndpoint.md @@ -15,7 +15,9 @@ This command lists Inbound Endpoints under a DNS Resolver ### Example 2: Get single Inbound Endpoint by name ```powershell Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +``` +```output Name Type Etag ---- ---- ---- sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0b008451-0000-0800-0000-60402b960000" diff --git a/src/DnsResolver/examples/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/examples/New-AzDnsResolverInboundEndpoint.md index 9e10420e8ba3..baed1973d066 100644 --- a/src/DnsResolver/examples/New-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/examples/New-AzDnsResolverInboundEndpoint.md @@ -1,4 +1,4 @@ -### Example 1: Create an Inbound Endpoint for DNS Resolver +### Example 1: Create an Inbound Endpoint for DNS Resolver ```powershell $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg @@ -13,9 +13,9 @@ sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0b008451- This command creates an Inbound Endpoint for DNS Resolver. -### Example 2: Create an Inbound Endpoint for DNS Resolver with Metadata +### Example 2: Create an Inbound Endpoint for DNS Resolver with Tag ```powershell -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Metadata @{"key0" = "value0"} +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} ``` ```output @@ -24,5 +24,5 @@ Name Type Etag sampleInboundEndpoint1 Microsoft.Network/dnsResolvers/inboundEndpoints "0b0071aa-0000-0800-0000-60406a2d0000" ``` -This command creates an Inbound Endpoint for DNS Resolver with Metadata. +This command creates an Inbound Endpoint for DNS Resolver with Tag. diff --git a/src/DnsResolver/examples/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/examples/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md index 33efdd44de2b..7c137f6fbbf7 100644 --- a/src/DnsResolver/examples/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/examples/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -7,8 +7,8 @@ This command removes an virtual network link by name. ### Example 2: Remove an virtual network link by identity ```powershell -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject ``` This command removes an virtual network link by identity. diff --git a/src/DnsResolver/examples/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/examples/Update-AzDnsForwardingRuleset.md index d0dc8daedc3e..368e571ccb06 100644 --- a/src/DnsResolver/examples/Update-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/examples/Update-AzDnsForwardingRuleset.md @@ -1,6 +1,6 @@ -### Example 1: Update DNS Forwarding ruleset by name (adding metadata) +### Example 1: Update DNS Forwarding ruleset by name (adding tag) ```powershell -Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} ``` ```output @@ -9,12 +9,12 @@ Location Name Type Etag westus2 dnsForwardingRuleset Microsoft.Network/dnsForwardingRulesets "04005592-0000-0800-0000-60e7ec170000" ``` -This command updates DNS Forwarding ruleset by name (adding metadata) +This command updates DNS Forwarding ruleset by name (adding tag) ### Example 2: Updates an existing DNS Forwarding ruleset by identity ```powershell $inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset -Update-AzDnsForwardingRuleset -InputObject $inputObject -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} ``` ```output @@ -23,5 +23,5 @@ Location Name Type Etag westus2 dnsForwardingRuleset Microsoft.Network/dnsForwardingRulesets "04005592-0000-0800-0000-60e7ec170000" ``` -This command updates DNS Forwarding ruleset via identity (adding metadata) +This command updates DNS Forwarding ruleset via identity (adding tag) diff --git a/src/DnsResolver/examples/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/examples/Update-AzDnsForwardingRulesetVirtualNetworkLink.md index 085dc9816d8f..96745a693e80 100644 --- a/src/DnsResolver/examples/Update-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/examples/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -13,7 +13,7 @@ This command updates virtual network link by name (adding metadata) ### Example 2: Update virtual network link via identity (adding metadata) ```powershell -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} ``` diff --git a/src/DnsResolver/examples/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/examples/Update-AzDnsResolverInboundEndpoint.md index 3d26549699b8..689a7904931d 100644 --- a/src/DnsResolver/examples/Update-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/examples/Update-AzDnsResolverInboundEndpoint.md @@ -1,6 +1,6 @@ -### Example 1: Update Inbound Endpoint by name (adding metadata) +### Example 1: Update Inbound Endpoint by name (adding tag) ```powershell -Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Metadata @{"value0" = "value1"} +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} ``` ```output @@ -9,20 +9,19 @@ Name Type Etag sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0c000868-0000-0800-0000-604112230000" ``` -This command updates Inbound Endpoint by name (adding metadata) +This command updates Inbound Endpoint by name (adding tag) -### Example 2: Update Inbound Endpoint via identity (adding metadata) +### Example 2: Update Inbound Endpoint via identity (adding tag) ```powershell -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Metadata @{"value0" = "value1"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} ``` ```output Name Type Etag ---- ---- ---- sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0c00e768-0000-0800-0000-604112af0000" - ``` -This command updates Inbound Endpoint via identity (adding metadata) +This command updates Inbound Endpoint via identity (adding tag) diff --git a/src/DnsResolver/examples/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/examples/Update-AzDnsResolverOutboundEndpoint.md index 03f885bd5bd1..b7816161a358 100644 --- a/src/DnsResolver/examples/Update-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/examples/Update-AzDnsResolverOutboundEndpoint.md @@ -1,6 +1,6 @@ -### Example 1: Update Outbound Endpoint by name (adding metadata) +### Example 1: Update Outbound Endpoint by name (adding tag) ```powershell -Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} ``` ```output @@ -9,12 +9,12 @@ Name Type Etag sampleOutbound Microsoft.Network/dnsResolvers/outboundEndpoints "02001eab-0000-0800-0000-60e792500000" ``` -This command updates Outbound Endpoint by name (adding metadata) +This command updates Outbound Endpoint by name (adding tag) -### Example 2: Update Outbound Endpoint via identity (adding metadata) +### Example 2: Update Outbound Endpoint via identity (adding tag) ```powershell $inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} ``` ```output @@ -23,5 +23,5 @@ Name Type Etag sampleOutbound Microsoft.Network/dnsResolvers/outboundEndpoints "02001eab-0000-0800-0000-60e792500000" ``` -This command updates Outbound Endpoint via identity (adding metadata) +This command updates Outbound Endpoint via identity (adding tag) diff --git a/src/DnsResolver/exports/Get-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/exports/Get-AzDnsForwardingRuleset.ps1 index 66f58aa8139f..fdb4116df3af 100644 --- a/src/DnsResolver/exports/Get-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/exports/Get-AzDnsForwardingRuleset.ps1 @@ -27,15 +27,13 @@ Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleR Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG .Example Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtualnetwork-test -.Example -Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -DnsResolverName sampleDnsResolver -OutboundEndpointName sampleOutboundEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -56,7 +54,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -162,6 +160,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRuleset_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRuleset_GetViaIdentity'; @@ -179,6 +195,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -187,15 +204,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 index 34912483308f..03352cde361e 100644 --- a/src/DnsResolver/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -150,6 +150,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetForwardingRule_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetForwardingRule_GetViaIdentity'; @@ -165,6 +183,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -173,15 +192,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index 765eae901b09..d12c4e04f560 100644 --- a/src/DnsResolver/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -22,12 +22,12 @@ Gets properties of a virtual network link to a DNS forwarding ruleset. .Example Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -ResourceGroupName powershell-test-rg .Example -Get-AzDnsResolverVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -150,6 +150,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetVirtualNetworkLink_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity'; @@ -165,6 +183,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -173,15 +192,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Get-AzDnsResolver.ps1 b/src/DnsResolver/exports/Get-AzDnsResolver.ps1 index 922dabec5858..6a24f15af695 100644 --- a/src/DnsResolver/exports/Get-AzDnsResolver.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -160,6 +160,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolver_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolver_GetViaIdentity'; @@ -177,6 +195,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -185,15 +204,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Get-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/exports/Get-AzDnsResolverInboundEndpoint.ps1 index 4b941c086415..2f0c9498551c 100644 --- a/src/DnsResolver/exports/Get-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/exports/Get-AzDnsResolverInboundEndpoint.ps1 @@ -24,14 +24,10 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Resourc .Example Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Name Type Etag ----- ---- ---- -sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0b008451-0000-0800-0000-60402b960000" - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -154,6 +150,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; @@ -169,6 +183,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -177,15 +192,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Get-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/exports/Get-AzDnsResolverOutboundEndpoint.ps1 index 7f0805b46e22..72ead318c201 100644 --- a/src/DnsResolver/exports/Get-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -150,6 +150,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; @@ -165,6 +183,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -173,15 +192,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/exports/New-AzDnsForwardingRuleset.ps1 index 97cbfc5bbd4a..e94520ec9502 100644 --- a/src/DnsResolver/exports/New-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/exports/New-AzDnsForwardingRuleset.ps1 @@ -27,19 +27,19 @@ 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.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. 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. - [Id ]: Resource ID. + Id : Resource ID. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,19 +79,19 @@ param( ${IfNoneMatch}, [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -166,6 +166,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRuleset_CreateExpanded'; } @@ -179,6 +197,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -187,15 +206,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 index 502d1d870796..01806026e07e 100644 --- a/src/DnsResolver/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 @@ -27,20 +27,20 @@ $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.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. TARGETDNSSERVER : DNS servers to forward the DNS query to. - [IPAddress ]: DNS server IP address. + IPAddress : DNS server IP address. [Port ]: DNS server port. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -85,12 +85,20 @@ param( # Other values will be ignored. ${IfNoneMatch}, - [Parameter()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] # The domain name for the forwarding rule. ${DomainName}, + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + # DNS servers to forward the DNS query to. + # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + ${TargetDnsServer}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] @@ -100,19 +108,11 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]] - # DNS servers to forward the DNS query to. - # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. - ${TargetDnsServer}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -168,6 +168,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetForwardingRule_CreateExpanded'; } @@ -181,6 +199,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -189,15 +208,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index 652121549d8c..9807d5b9d08e 100644 --- a/src/DnsResolver/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -75,19 +75,19 @@ param( # Other values will be ignored. ${IfNoneMatch}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${VirtualNetworkId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -155,6 +155,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded'; } @@ -168,6 +186,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -176,15 +195,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsResolver.ps1 b/src/DnsResolver/exports/New-AzDnsResolver.ps1 index d3cbe74f85b6..d7f83f4e601e 100644 --- a/src/DnsResolver/exports/New-AzDnsResolver.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -75,6 +75,12 @@ param( # The geo-location where the resource lives ${Location}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -82,12 +88,6 @@ param( # Resource tags. ${Tag}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${VirtualNetworkId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -155,6 +155,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolver_CreateExpanded'; } @@ -168,6 +186,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -176,15 +195,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/exports/New-AzDnsResolverIPConfigurationObject.ps1 index fc27142a6321..63d985bd3b5f 100644 --- a/src/DnsResolver/exports/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -57,6 +57,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DnsResolver.custom\New-AzDnsResolverIPConfigurationObject'; } @@ -67,6 +85,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -75,15 +94,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/exports/New-AzDnsResolverInboundEndpoint.ps1 index 36c08efa4982..028382bf8da5 100644 --- a/src/DnsResolver/exports/New-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/exports/New-AzDnsResolverInboundEndpoint.ps1 @@ -24,24 +24,24 @@ $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMe New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration .Example -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Metadata @{"key0" = "value0"} +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. IPCONFIGURATION : IP configurations for the inbound endpoint. + SubnetId : Resource ID. [PrivateIPAddress ]: Private IP address of the IP configuration. [PrivateIPAllocationMethod ]: Private IP address allocation method. - [SubnetId ]: Resource ID. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -87,19 +87,19 @@ param( ${IfNoneMatch}, [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -174,6 +174,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverInboundEndpoint_CreateExpanded'; } @@ -187,6 +205,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -195,15 +214,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/exports/New-AzDnsResolverOutboundEndpoint.ps1 index 068de63daa76..88f9051c2f4a 100644 --- a/src/DnsResolver/exports/New-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -81,7 +81,7 @@ param( # The geo-location where the resource lives ${Location}, - [Parameter()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] # Resource ID. @@ -161,6 +161,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverOutboundEndpoint_CreateExpanded'; } @@ -174,6 +192,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -182,15 +201,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/New-AzDnsResolverTargetDnsServerObject.ps1 b/src/DnsResolver/exports/New-AzDnsResolverTargetDnsServerObject.ps1 index 5043edcd0205..99d2675c4f0d 100644 --- a/src/DnsResolver/exports/New-AzDnsResolverTargetDnsServerObject.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -51,6 +51,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DnsResolver.custom\New-AzDnsResolverTargetDnsServerObject'; } @@ -61,6 +79,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -69,15 +88,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/ProxyCmdletDefinitions.ps1 b/src/DnsResolver/exports/ProxyCmdletDefinitions.ps1 index ce4b2d0ff93d..5acc41077d0e 100644 --- a/src/DnsResolver/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -150,6 +150,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetForwardingRule_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetForwardingRule_GetViaIdentity'; @@ -165,6 +183,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -173,17 +192,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -194,12 +230,12 @@ Gets properties of a virtual network link to a DNS forwarding ruleset. .Example Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -ResourceGroupName powershell-test-rg .Example -Get-AzDnsResolverVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -220,7 +256,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -322,6 +358,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetVirtualNetworkLink_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity'; @@ -337,6 +391,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -345,17 +400,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -371,15 +443,13 @@ Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleR Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG .Example Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtualnetwork-test -.Example -Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -DnsResolverName sampleDnsResolver -OutboundEndpointName sampleOutboundEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -400,7 +470,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -506,6 +576,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsForwardingRuleset_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsForwardingRuleset_GetViaIdentity'; @@ -523,6 +611,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -531,17 +620,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -554,14 +660,10 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Resourc .Example Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Name Type Etag ----- ---- ---- -sampleInboundEndpoint Microsoft.Network/dnsResolvers/inboundEndpoints "0b008451-0000-0800-0000-60402b960000" - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -582,7 +684,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -684,6 +786,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; @@ -699,6 +819,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -707,17 +828,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -733,7 +871,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -754,7 +892,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -856,6 +994,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; @@ -871,6 +1027,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -879,17 +1036,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -909,9 +1083,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -932,7 +1106,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1038,6 +1212,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DnsResolver.private\Get-AzDnsResolver_Get'; GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolver_GetViaIdentity'; @@ -1055,6 +1247,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1063,17 +1256,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1089,20 +1299,20 @@ $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.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. TARGETDNSSERVER : DNS servers to forward the DNS query to. - [IPAddress ]: DNS server IP address. + IPAddress : DNS server IP address. [Port ]: DNS server port. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1147,12 +1357,20 @@ param( # Other values will be ignored. ${IfNoneMatch}, - [Parameter()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] # The domain name for the forwarding rule. ${DomainName}, + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + # DNS servers to forward the DNS query to. + # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + ${TargetDnsServer}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] @@ -1162,19 +1380,11 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]] - # DNS servers to forward the DNS query to. - # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. - ${TargetDnsServer}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1230,6 +1440,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetForwardingRule_CreateExpanded'; } @@ -1243,6 +1471,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1251,17 +1480,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1275,12 +1521,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.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1325,19 +1571,19 @@ param( # Other values will be ignored. ${IfNoneMatch}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${VirtualNetworkId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1405,6 +1651,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded'; } @@ -1418,6 +1682,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1426,17 +1691,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1452,19 +1734,19 @@ 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.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. 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. - [Id ]: Resource ID. + Id : Resource ID. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1504,19 +1786,19 @@ param( ${IfNoneMatch}, [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -1591,6 +1873,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRuleset_CreateExpanded'; } @@ -1604,6 +1904,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1612,17 +1913,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1635,24 +1953,24 @@ $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMe New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration .Example -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Metadata @{"key0" = "value0"} +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. IPCONFIGURATION : IP configurations for the inbound endpoint. + SubnetId : Resource ID. [PrivateIPAddress ]: Private IP address of the IP configuration. [PrivateIPAllocationMethod ]: Private IP address allocation method. - [SubnetId ]: Resource ID. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1698,19 +2016,19 @@ param( ${IfNoneMatch}, [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -1785,6 +2103,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverInboundEndpoint_CreateExpanded'; } @@ -1798,6 +2134,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1806,17 +2143,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1830,12 +2184,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.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1886,7 +2240,7 @@ param( # The geo-location where the resource lives ${Location}, - [Parameter()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] # Resource ID. @@ -1966,6 +2320,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverOutboundEndpoint_CreateExpanded'; } @@ -1979,6 +2351,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1987,17 +2360,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2011,12 +2401,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.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2061,6 +2451,12 @@ param( # The geo-location where the resource lives ${Location}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] @@ -2068,12 +2464,6 @@ param( # Resource tags. ${Tag}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${VirtualNetworkId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2141,6 +2531,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolver_CreateExpanded'; } @@ -2154,6 +2562,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2162,17 +2571,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2319,6 +2745,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_DeleteViaIdentity'; @@ -2333,6 +2777,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2341,17 +2786,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2364,8 +2826,8 @@ WARNING: This operation cannot be undone. .Example Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -2509,6 +2971,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity'; @@ -2523,6 +3003,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2531,17 +3012,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2695,6 +3193,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_DeleteViaIdentity'; @@ -2709,6 +3225,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2717,17 +3234,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2886,6 +3420,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; @@ -2900,6 +3452,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2908,17 +3461,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3076,6 +3646,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; @@ -3090,6 +3678,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3098,17 +3687,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3260,6 +3866,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; @@ -3274,6 +3898,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3282,17 +3907,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3309,7 +3951,7 @@ Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -3328,13 +3970,13 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkName ]: The name of the virtual network. TARGETDNSSERVER : DNS servers to forward the DNS query to. - [IPAddress ]: DNS server IP address. + IPAddress : DNS server IP address. [Port ]: DNS server port. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -3388,7 +4030,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -3396,7 +4038,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -3456,6 +4098,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; @@ -3470,6 +4130,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3478,17 +4139,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3499,13 +4177,13 @@ Updates a virtual network link to a DNS forwarding ruleset. .Example Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -3526,7 +4204,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -3573,7 +4251,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, @@ -3645,6 +4323,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; @@ -3659,6 +4355,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3667,17 +4364,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3686,20 +4400,23 @@ Updates a DNS forwarding ruleset. .Description Updates a DNS forwarding ruleset. .Example -Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} .Example $inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset -Update-AzDnsForwardingRuleset -InputObject $inputObject -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +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. + Id : Resource ID. + INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. [DnsResolverName ]: The name of the DNS resolver. @@ -3715,7 +4432,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -3754,9 +4471,17 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -3828,6 +4553,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; @@ -3842,6 +4585,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3850,17 +4594,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3869,15 +4630,15 @@ Updates an inbound endpoint for a DNS resolver. .Description Updates an inbound endpoint for a DNS resolver. .Example -Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Metadata @{"value0" = "value1"} +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Metadata @{"value0" = "value1"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -3898,7 +4659,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -3945,7 +4706,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, @@ -4017,6 +4778,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; @@ -4031,6 +4810,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4039,17 +4819,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4058,15 +4855,15 @@ Updates an outbound endpoint for a DNS resolver. .Description Updates an outbound endpoint for a DNS resolver. .Example -Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} .Example $inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4087,7 +4884,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4134,7 +4931,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, @@ -4206,6 +5003,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; @@ -4220,6 +5035,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4228,17 +5044,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4255,7 +5088,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -4276,7 +5109,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4317,7 +5150,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -4389,6 +5222,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolver_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolver_UpdateViaIdentityExpanded'; @@ -4403,6 +5254,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4411,17 +5263,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4433,12 +5302,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.Api20200401Preview.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4467,6 +5336,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DnsResolver.custom\New-AzDnsResolverIPConfigurationObject'; } @@ -4477,6 +5364,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4485,17 +5373,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4507,12 +5412,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.Api20200401Preview.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4535,6 +5440,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DnsResolver.custom\New-AzDnsResolverTargetDnsServerObject'; } @@ -4545,6 +5468,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4553,15 +5477,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/exports/Remove-AzDnsForwardingRuleset.ps1 index 0c383c03e48f..c68ceaff1e2b 100644 --- a/src/DnsResolver/exports/Remove-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsForwardingRuleset.ps1 @@ -165,6 +165,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_DeleteViaIdentity'; @@ -179,6 +197,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -187,15 +206,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 index 6e04798e7c7f..f0ff5f712109 100644 --- a/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 @@ -158,6 +158,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_DeleteViaIdentity'; @@ -172,6 +190,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -180,15 +199,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index f8b0f46c8f29..0d3d5124bb82 100644 --- a/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -24,8 +24,8 @@ WARNING: This operation cannot be undone. .Example Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -169,6 +169,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity'; @@ -183,6 +201,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -191,15 +210,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsResolver.ps1 b/src/DnsResolver/exports/Remove-AzDnsResolver.ps1 index b631439b03e7..1def4133d31c 100644 --- a/src/DnsResolver/exports/Remove-AzDnsResolver.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsResolver.ps1 @@ -163,6 +163,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; @@ -177,6 +195,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -185,15 +204,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/exports/Remove-AzDnsResolverInboundEndpoint.ps1 index 04bced37b756..07d2d871ce0a 100644 --- a/src/DnsResolver/exports/Remove-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsResolverInboundEndpoint.ps1 @@ -170,6 +170,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; @@ -184,6 +202,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -192,15 +211,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 index 52eeab1c8871..e326b3c26167 100644 --- a/src/DnsResolver/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 @@ -169,6 +169,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; @@ -183,6 +201,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -191,15 +210,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/exports/Update-AzDnsForwardingRuleset.ps1 index e8183192e437..8091ae923039 100644 --- a/src/DnsResolver/exports/Update-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/exports/Update-AzDnsForwardingRuleset.ps1 @@ -20,20 +20,23 @@ Updates a DNS forwarding ruleset. .Description Updates a DNS forwarding ruleset. .Example -Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} .Example $inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset -Update-AzDnsForwardingRuleset -InputObject $inputObject -Metadata @{"key0" = "value0"} +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +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. + Id : Resource ID. + INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. [DnsResolverName ]: The name of the DNS resolver. @@ -49,7 +52,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -88,9 +91,17 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -162,6 +173,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; @@ -176,6 +205,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -184,15 +214,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 index 64e6e546ed2f..7b12b896d1a4 100644 --- a/src/DnsResolver/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -47,13 +47,13 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkName ]: The name of the virtual network. TARGETDNSSERVER : DNS servers to forward the DNS query to. - [IPAddress ]: DNS server IP address. + IPAddress : DNS server IP address. [Port ]: DNS server port. .Link https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -107,7 +107,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -115,7 +115,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -175,6 +175,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; @@ -189,6 +207,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -197,15 +216,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index 5570863a35f3..3b8bdeacf413 100644 --- a/src/DnsResolver/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -22,13 +22,13 @@ Updates a virtual network link to a DNS forwarding ruleset. .Example Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsResolverName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -96,7 +96,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, @@ -168,6 +168,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; @@ -182,6 +200,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -190,15 +209,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsResolver.ps1 b/src/DnsResolver/exports/Update-AzDnsResolver.ps1 index a63c462c682b..7e506fc6148a 100644 --- a/src/DnsResolver/exports/Update-AzDnsResolver.ps1 +++ b/src/DnsResolver/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.Api20200401Preview.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', 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.Api20200401Preview.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -162,6 +162,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolver_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolver_UpdateViaIdentityExpanded'; @@ -176,6 +194,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -184,15 +203,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/exports/Update-AzDnsResolverInboundEndpoint.ps1 index d8a52692e6a8..6c101eded5cb 100644 --- a/src/DnsResolver/exports/Update-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/exports/Update-AzDnsResolverInboundEndpoint.ps1 @@ -20,15 +20,15 @@ Updates an inbound endpoint for a DNS resolver. .Description Updates an inbound endpoint for a DNS resolver. .Example -Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Metadata @{"value0" = "value1"} +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Metadata @{"value0" = "value1"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -96,7 +96,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, @@ -168,6 +168,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; @@ -182,6 +200,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -190,15 +209,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/exports/Update-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/exports/Update-AzDnsResolverOutboundEndpoint.ps1 index df0058b0b2e1..5bff0dc5404a 100644 --- a/src/DnsResolver/exports/Update-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/exports/Update-AzDnsResolverOutboundEndpoint.ps1 @@ -20,15 +20,15 @@ Updates an outbound endpoint for a DNS resolver. .Description Updates an outbound endpoint for a DNS resolver. .Example -Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} .Example $inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -96,7 +96,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, @@ -168,6 +168,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; @@ -182,6 +200,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -190,15 +209,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DnsResolver/generate-info.json b/src/DnsResolver/generate-info.json index 4740d4093be9..75235d4732d6 100644 --- a/src/DnsResolver/generate-info.json +++ b/src/DnsResolver/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_modelerfour": "4.15.414", - "autorest_core": "3.7.6", - "autorest_powershell": "3.0.476", - "autorest": "`-- (empty)", + "swagger_commit": "bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d", "node": "v14.15.5", - "swagger_commit": "efd3d669a86d2e123f57ac3a43e5af4bb9e3a29f" + "autorest": "`-- (empty)", + "autorest_core": "3.8.4", + "autorest_modelerfour": "4.15.414", + "autorest_powershell": "3.0.491" } diff --git a/src/DnsResolver/generated/Module.cs b/src/DnsResolver/generated/Module.cs index fdae90be054c..c1c6ae6785ba 100644 --- a/src/DnsResolver/generated/Module.cs +++ b/src/DnsResolver/generated/Module.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver using GetParameterDelegate = global::System.Func; using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using ArgumentCompleterDelegate = global::System.Func; + using GetTelemetryIdDelegate = global::System.Func; + using TelemetryDelegate = global::System.Action; using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; @@ -46,6 +48,9 @@ public partial class Module /// The delegate to call to get parameter data from a common module. public GetParameterDelegate GetParameterValue { get; set; } + /// The delegate to get the telemetry Id. + public GetTelemetryIdDelegate GetTelemetryId { get; set; } + /// Backing field for property. private static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module _instance; @@ -67,6 +72,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.DnsResolver"; + /// The delegate for creating a telemetry. + public TelemetryDelegate Telemetry { get; set; } + /// The from the cmdlet /// The HttpPipeline for the request @@ -117,7 +125,7 @@ public void Init() /// Creates the module instance. private Module() { - /// constructor + // constructor ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver(); _handler.Proxy = _webProxy; _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); diff --git a/src/DnsResolver/generated/api/DnsResolver.cs b/src/DnsResolver/generated/api/DnsResolver.cs index b9de52330dc7..541e075eace3 100644 --- a/src/DnsResolver/generated/api/DnsResolver.cs +++ b/src/DnsResolver/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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -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 ) { @@ -264,6 +264,7 @@ public partial class DnsResolver // 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; } } @@ -274,13 +275,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -311,7 +312,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.Api20200401Preview.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.Api20220701.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -346,9 +347,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -399,9 +400,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -459,7 +460,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 ) { @@ -566,6 +567,7 @@ public partial class DnsResolver // 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; } } @@ -588,7 +590,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -642,9 +644,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -683,9 +685,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -736,7 +738,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 ) { @@ -754,13 +756,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -810,9 +812,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -852,9 +854,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -895,9 +897,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -950,7 +952,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 ) { @@ -968,13 +970,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1025,9 +1027,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1070,9 +1072,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1128,7 +1130,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 ) { @@ -1146,13 +1148,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1203,9 +1205,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1253,7 +1255,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 ) { @@ -1271,13 +1273,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1326,9 +1328,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1380,9 +1382,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1443,7 +1445,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 ) { @@ -1549,6 +1551,7 @@ public partial class DnsResolver // 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; } } @@ -1559,13 +1562,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1594,7 +1597,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.Api20200401Preview.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.Api20220701.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1627,9 +1630,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1687,9 +1690,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1754,7 +1757,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 ) { @@ -1860,6 +1863,7 @@ public partial class DnsResolver // 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; } } @@ -1870,13 +1874,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1907,7 +1911,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.Api20200401Preview.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.Api20220701.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1939,9 +1943,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1989,9 +1993,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2049,7 +2053,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 ) { @@ -2156,6 +2160,7 @@ public partial class DnsResolver // 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; } } @@ -2178,7 +2183,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2232,9 +2237,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2273,9 +2278,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2326,7 +2331,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 ) { @@ -2344,13 +2349,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2400,9 +2405,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2442,9 +2447,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2485,9 +2490,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2538,7 +2543,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 ) { @@ -2556,13 +2561,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2613,9 +2618,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2658,9 +2663,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2714,7 +2719,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 ) { @@ -2732,13 +2737,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2789,9 +2794,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2839,7 +2844,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 ) { @@ -2857,13 +2862,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2912,9 +2917,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2966,9 +2971,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3029,7 +3034,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 ) { @@ -3135,6 +3140,7 @@ public partial class DnsResolver // 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; } } @@ -3145,13 +3151,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3180,7 +3186,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.Api20200401Preview.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.Api20220701.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3215,9 +3221,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3278,9 +3284,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3349,7 +3355,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 ) { @@ -3367,19 +3373,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3411,7 +3417,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.Api20200401Preview.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.Api20220701.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3447,9 +3453,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3501,9 +3507,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3564,7 +3570,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 ) { @@ -3594,7 +3600,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3651,9 +3657,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3694,9 +3700,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3750,7 +3756,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 ) { @@ -3768,13 +3774,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3828,9 +3834,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3873,9 +3879,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3929,7 +3935,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 ) { @@ -3947,13 +3953,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4009,9 +4015,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4065,9 +4071,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4131,7 +4137,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 ) { @@ -4149,13 +4155,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4185,7 +4191,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.Api20200401Preview.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.Api20220701.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4220,9 +4226,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4282,9 +4288,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4352,7 +4358,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 ) { @@ -4458,6 +4464,7 @@ public partial class DnsResolver // 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; } } @@ -4468,13 +4475,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4506,7 +4513,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.Api20200401Preview.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.Api20220701.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4542,9 +4549,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4596,9 +4603,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4659,7 +4666,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 ) { @@ -4766,6 +4773,7 @@ public partial class DnsResolver // 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; } } @@ -4788,7 +4796,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4845,9 +4853,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4888,9 +4896,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4944,7 +4952,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 ) { @@ -4962,13 +4970,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5022,9 +5030,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5067,9 +5075,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5123,7 +5131,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 ) { @@ -5141,13 +5149,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5203,9 +5211,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5259,9 +5267,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5325,7 +5333,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 ) { @@ -5431,6 +5439,7 @@ public partial class DnsResolver // 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; } } @@ -5441,13 +5450,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5477,7 +5486,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.Api20200401Preview.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.Api20220701.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5512,9 +5521,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5574,9 +5583,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5644,7 +5653,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 ) { @@ -5750,6 +5759,7 @@ public partial class DnsResolver // 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; } } @@ -5760,13 +5770,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5798,7 +5808,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.Api20200401Preview.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.Api20220701.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5834,9 +5844,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5888,9 +5898,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5951,7 +5961,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 ) { @@ -6058,6 +6068,7 @@ public partial class DnsResolver // 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; } } @@ -6080,7 +6091,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6137,9 +6148,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6180,9 +6191,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6236,7 +6247,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 ) { @@ -6254,13 +6265,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6314,9 +6325,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6359,9 +6370,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6415,7 +6426,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 ) { @@ -6433,13 +6444,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6495,9 +6506,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6551,9 +6562,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6617,7 +6628,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 ) { @@ -6723,6 +6734,7 @@ public partial class DnsResolver // 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; } } @@ -6733,13 +6745,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6769,7 +6781,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.Api20200401Preview.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.Api20220701.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6804,9 +6816,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6866,9 +6878,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6936,7 +6948,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 ) { @@ -7042,6 +7054,7 @@ public partial class DnsResolver // 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; } } @@ -7052,13 +7065,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7090,7 +7103,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.Api20200401Preview.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.Api20220701.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -7126,9 +7139,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7180,9 +7193,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7243,7 +7256,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 ) { @@ -7350,6 +7363,7 @@ public partial class DnsResolver // 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; } } @@ -7372,7 +7386,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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7429,9 +7443,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7472,9 +7486,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7528,7 +7542,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 ) { @@ -7546,13 +7560,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7606,9 +7620,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7651,9 +7665,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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7707,7 +7721,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 ) { @@ -7725,13 +7739,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7787,9 +7801,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7843,9 +7857,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.Api20200401Preview.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.Api20220701.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 = @"2020-04-01-preview"; + var apiVersion = @"2022-07-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7909,7 +7923,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 ) { @@ -8015,6 +8029,7 @@ public partial class DnsResolver // 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; } } @@ -8025,13 +8040,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.Api20200401Preview.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.Api20220701.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.Api20200401Preview.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8061,7 +8076,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.Api20200401Preview.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.Api20220701.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.PowerShell.cs index c92af6a24230..794ab3a4fad3 100644 --- a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class ProxyResource /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class ProxyResource /// /// 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. + /// 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. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxy /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.TypeConverter.cs index d74f237363f8..c3a4ac86557b 100644 --- a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProxyResourceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.cs b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.cs index 87ef162de148..cf4fd778a2c8 100644 --- a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.cs +++ b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.cs @@ -55,7 +55,7 @@ public ProxyResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { diff --git a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.json.cs b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.json.cs index 3177c0ff2d04..440ab172e2b6 100644 --- a/src/DnsResolver/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20/ProxyResource.json.cs @@ -22,7 +22,7 @@ public partial class ProxyResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class ProxyResource /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class ProxyResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Models/Api20/Resource.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20/Resource.PowerShell.cs index 9019cfd83c42..c2dcff836393 100644 --- a/src/DnsResolver/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20/Resource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class Resource /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class Resource /// /// 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. + /// 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. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResou /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DnsResolver/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20/Resource.TypeConverter.cs index 117818091f77..28a8e072d850 100644 --- a/src/DnsResolver/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20/Resource.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class ResourceTypeConverter : global::System.Management.Automatio { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/Api20/Resource.json.cs b/src/DnsResolver/generated/api/Models/Api20/Resource.json.cs index 4c641d7d6e3d..4e256692960d 100644 --- a/src/DnsResolver/generated/api/Models/Api20/Resource.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20/Resource.json.cs @@ -22,7 +22,7 @@ public partial class Resource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class Resource /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class Resource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20/SystemData.PowerShell.cs index 5b484a9eba29..6acfeceb24d1 100644 --- a/src/DnsResolver/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20/SystemData.PowerShell.cs @@ -31,7 +31,8 @@ public partial class SystemData /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class SystemData /// /// 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. + /// 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. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISyste /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DnsResolver/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20/SystemData.TypeConverter.cs index 9ec532635ae0..8ef1d1476283 100644 --- a/src/DnsResolver/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20/SystemData.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/Api20/SystemData.json.cs b/src/DnsResolver/generated/api/Models/Api20/SystemData.json.cs index ebd00b9de835..3a5042930069 100644 --- a/src/DnsResolver/generated/api/Models/Api20/SystemData.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20/SystemData.json.cs @@ -20,7 +20,7 @@ public partial class SystemData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SystemData /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class SystemData /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.PowerShell.cs index 7b7a39051abf..1672dce7002a 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class TrackedResource /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class TrackedResource /// /// 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. + /// 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. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.TypeConverter.cs index 72ed46a0324e..112bd4ee3d1b 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class TrackedResourceTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.cs index 4036031d28ad..0b1e3c0dbce6 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.cs @@ -69,7 +69,7 @@ public TrackedResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.json.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.json.cs index bbe2bd91ef91..aa9504ef6a1b 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResource.json.cs @@ -22,7 +22,7 @@ public partial class TrackedResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class TrackedResource /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class TrackedResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs index 016834f77403..eecb38fca01c 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs @@ -31,7 +31,8 @@ public partial class TrackedResourceTags /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class TrackedResourceTags /// /// 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. + /// 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. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs index 24d0b6be466b..f5eb0b6c1e1a 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class TrackedResourceTagsTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.json.cs b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.json.cs index 3843ec539bd1..e6139af9fe5d 100644 --- a/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20/TrackedResourceTags.json.cs @@ -20,7 +20,7 @@ public partial class TrackedResourceTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TrackedResourceTags /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class TrackedResourceTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.cs b/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.cs deleted file mode 100644 index 0961b00aea39..000000000000 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.cs +++ /dev/null @@ -1,51 +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.Api20200401Preview -{ - 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.Api20200401Preview.IDnsForwardingRulesetPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20200401Preview.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatchTags()); set => this._tag = value; } - - /// Creates an new instance. - public DnsForwardingRulesetPatch() - { - - } - } - /// Describes a DNS forwarding ruleset PATCH operation. - public partial interface IDnsForwardingRulesetPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable - { - /// 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.Api20200401Preview.IDnsForwardingRulesetPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } - - } - /// Describes a DNS forwarding ruleset PATCH operation. - internal partial interface IDnsForwardingRulesetPatchInternal - - { - /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.PowerShell.cs deleted file mode 100644 index 4f8c917cd8c3..000000000000 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.PowerShell.cs +++ /dev/null @@ -1,264 +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.Api20200401Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - - /// Describes a virtual network link. - [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkTypeConverter))] - public partial class VirtualNetworkLink - { - - /// - /// 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.Api20200401Preview.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VirtualNetworkLink(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.Api20200401Preview.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VirtualNetworkLink(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.Api20200401Preview.IVirtualNetworkLink 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 VirtualNetworkLink(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)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("VirtualNetwork")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Metadata")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)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("VirtualNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, 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 VirtualNetworkLink(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)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("VirtualNetwork")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); - } - if (content.Contains("Metadata")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)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("VirtualNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Describes a virtual network link. - [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkTypeConverter))] - public partial interface IVirtualNetworkLink - - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.PowerShell.cs deleted file mode 100644 index 87321c69d137..000000000000 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.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.Api20200401Preview -{ - 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 - { - - /// - /// 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.Api20200401Preview.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.Api20200401Preview.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.Api20200401Preview.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.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// The response to an enumeration operation on virtual network links. - [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] - public partial interface IVirtualNetworkLinkListResult - - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudError.PowerShell.cs similarity index 63% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudError.PowerShell.cs index 192e93731a76..1ba564f8ecf9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CloudError /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class CloudError /// /// 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. + /// 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. @@ -53,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. @@ -68,29 +70,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -105,49 +107,49 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -156,8 +158,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudError.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudError.TypeConverter.cs index 3d8aadef22a4..e952f014075a 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class CloudErrorTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudError.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudError.cs index 02cb6f460296..c6c5637ac0bf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// An error message public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBody()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBody()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } /// The error message body - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudError.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudError.json.cs index 0f635d903f05..aad9d6c763dd 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudError.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CloudError partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CloudError /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CloudError /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs similarity index 66% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs index 80c0509347bb..3a5ed9dd9ed6 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CloudErrorBody /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class CloudErrorBody /// /// 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. + /// 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. @@ -53,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. @@ -68,25 +70,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -101,45 +103,45 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudErrorBody(content); } @@ -148,8 +150,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs index 45f43c103f86..584169d04d2d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class CloudErrorBodyTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.cs index 221a811ae0ea..fbdd9631991e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBodyInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/CloudErrorBody.json.cs index 99695e0b2ad3..630f8eedf1f2 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/CloudErrorBody.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CloudErrorBody partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CloudErrorBody /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CloudErrorBody /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -66,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.Api20200401Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs similarity index 55% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs index 305b1e205695..d0be054420a2 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsForwardingRuleset /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsForwardingRuleset /// /// 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. + /// 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. @@ -53,35 +55,33 @@ 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.Api20200401Preview.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,15 +96,15 @@ internal DnsForwardingRuleset(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -128,45 +128,45 @@ internal DnsForwardingRuleset(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)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.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)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.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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. @@ -181,15 +181,15 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -213,39 +213,39 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)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.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal)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.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } @@ -254,8 +254,8 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont /// 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.Api20200401Preview.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs index 33e346848435..b15b7ec4c47f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsForwardingRulesetTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.cs index 5f5e5c87f00c..38a5da332b69 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset. public partial class DnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -24,7 +24,7 @@ public partial class DnsForwardingRuleset : /// 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.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } /// Backing field for property. private string _etag; @@ -53,41 +53,41 @@ public partial class DnsForwardingRuleset : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = 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.Api20.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -140,7 +140,7 @@ public DnsForwardingRuleset() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -158,12 +158,12 @@ public partial interface IDnsForwardingRuleset : /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, 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.Api20200401Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// ETag of the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -249,11 +249,11 @@ internal partial interface IDnsForwardingRulesetInternal : /// 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.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// ETag of the DNS forwarding ruleset. string Etag { get; set; } /// Properties of the DNS forwarding ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs index 1d56a68b21c0..f4e747055536 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRuleset.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsForwardingRuleset partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsForwardingRuleset /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsForwardingRuleset /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -64,20 +66,20 @@ internal DnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_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.Api20200401Preview.IDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs similarity index 70% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs index 886a5f29bb63..3c5ca4ebceeb 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsForwardingRulesetListResult /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsForwardingRulesetListResult /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -96,17 +98,17 @@ internal DnsForwardingRulesetListResult(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -121,11 +123,11 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -134,8 +136,8 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO /// 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.Api20200401Preview.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs index fd6eb4b974a5..2431a5310cc8 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsForwardingRulesetListResultTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs index 87866a8ea55b..8631e480797e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on DNS forwarding rulesets. public partial class DnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class DnsForwardingRulesetListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] _value; /// Enumeration of the DNS forwarding rulesets. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsForwardingRulesetListResult() @@ -54,8 +54,8 @@ public partial interface IDnsForwardingRulesetListResult : ReadOnly = false, Description = @"Enumeration of the DNS forwarding rulesets.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get; set; } } /// The response to an enumeration operation on DNS forwarding rulesets. @@ -65,7 +65,7 @@ internal partial interface IDnsForwardingRulesetListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the DNS forwarding rulesets. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs index a5ad201d241d..77471a03c481 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsForwardingRulesetListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsForwardingRulesetListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsForwardingRulesetListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs similarity index 66% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs index 511fadcd9e85..a036f84c1895 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsForwardingRulesetPatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsForwardingRulesetPatch /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -94,15 +96,19 @@ internal DnsForwardingRulesetPatch(global::System.Collections.IDictionary conten return; } // actually deserialize + if (content.Contains("DnsResolverOutboundEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -115,9 +121,13 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject return; } // actually deserialize + if (content.Contains("DnsResolverOutboundEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -126,8 +136,8 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject /// 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.Api20200401Preview.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs index dcc5f406bb85..432ee51657c0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsForwardingRulesetPatchTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs new file mode 100644 index 000000000000..38319d0a841f --- /dev/null +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs @@ -0,0 +1,77 @@ +// 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.Api20220701 +{ + 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.Api20220701.IDnsForwardingRulesetPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsForwardingRulesetPatch() + { + + } + } + /// Describes a DNS forwarding ruleset PATCH operation. + public partial interface IDnsForwardingRulesetPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// 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.Runtime.Info( + Required = false, + 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.Api20220701.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20220701.IDnsForwardingRulesetPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get; set; } + + } + /// Describes a DNS forwarding ruleset PATCH operation. + 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.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + /// Tags for DNS Resolver. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs similarity index 76% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs index 61fc442e1eee..e975c9db9beb 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsForwardingRulesetPatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsForwardingRulesetPatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsForwardingRulesetPatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,18 +65,19 @@ internal DnsForwardingRulesetPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -98,6 +101,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs { return container; } + if (null != this._dnsResolverOutboundEndpoint) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._dnsResolverOutboundEndpoint ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("dnsResolverOutboundEndpoints",__w); + } AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs index 7e5f32ca5e91..d421fcab82ee 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsForwardingRulesetPatchTags /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsForwardingRulesetPatchTags /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -100,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. @@ -122,8 +124,8 @@ internal DnsForwardingRulesetPatchTags(global::System.Management.Automation.PSOb /// 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.Api20200401Preview.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs index 97e6130acecc..434a9b7addbf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsForwardingRulesetPatchTagsTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs index 19db720e623d..1b642db2d3e0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsForwardingRulesetPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs index 7dd39548c56d..8b0fc4ed4ac9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs index 60ecaed65af1..e10a55364a9b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetPatchTags.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsForwardingRulesetPatchTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsForwardingRulesetPatchTags /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsForwardingRulesetPatchTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -69,13 +71,13 @@ internal DnsForwardingRulesetPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs similarity index 65% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs index e3f53465e29a..5c57e01d2858 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsForwardingRulesetProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsForwardingRulesetProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -96,21 +98,21 @@ internal DnsForwardingRulesetProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -125,15 +127,15 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -142,8 +144,8 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO /// 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.Api20200401Preview.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs index 7679fa734341..cd9cfa3e265d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsForwardingRulesetPropertiesTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs index a9b6517aa6c3..88fc573be22f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IDnsForwardingRulesetProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -61,12 +61,12 @@ public partial interface IDnsForwardingRulesetProperties : /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, 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.Api20200401Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs index c4edec8ee0fa..cd0e889f8843 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsForwardingRulesetProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsForwardingRulesetProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsForwardingRulesetProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsForwardingRulesetProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsForwardingRulesetProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs new file mode 100644 index 000000000000..54b812707106 --- /dev/null +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs @@ -0,0 +1,288 @@ +// 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.Api20220701 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver. + [System.ComponentModel.TypeConverter(typeof(DnsResolverTypeConverter))] + public partial class DnsResolver + { + + /// + /// 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.Api20220701.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolver(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.Api20220701.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolver(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolver(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId, 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 DnsResolver(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId, 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.Api20220701.IDnsResolver 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(); + } + /// Describes a DNS resolver. + [System.ComponentModel.TypeConverter(typeof(DnsResolverTypeConverter))] + public partial interface IDnsResolver + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs index 45d0e4dbb2ce..8ceec59ebfca 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsResolverTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.cs index 04840ae555bd..b4d8d1abee4b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver. public partial class DnsResolver : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -46,53 +46,53 @@ public partial class DnsResolver : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for State - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetwork = 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.Api20.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -137,7 +137,7 @@ public partial class DnsResolver : /// 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.Api20200401Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ?? null; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } /// Creates an new instance. public DnsResolver() @@ -149,7 +149,7 @@ public DnsResolver() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -249,7 +249,7 @@ public partial interface IDnsResolver : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -264,7 +264,7 @@ internal partial interface IDnsResolverInternal : /// ETag of the DNS resolver. string Etag { get; set; } /// Properties of the DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -291,7 +291,7 @@ internal partial interface IDnsResolverInternal : /// The type of identity that last modified the resource. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolver.json.cs index e924bb7e27cd..13970e9573ac 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsResolver partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsResolver /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsResolver /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -64,20 +66,20 @@ internal DnsResolver(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_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.Api20200401Preview.IDnsResolver. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs new file mode 100644 index 000000000000..18cec693e83a --- /dev/null +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Api20220701 +{ + 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.Api20220701.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.Api20220701.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.Api20220701.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20220701.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs index 60a8873e05ca..63eb0be066b4 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsResolverListResultTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.cs index 492d63702477..ea4fb0d956b8 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on DNS resolvers. public partial class DnsResolverListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class DnsResolverListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] _value; /// Enumeration of the DNS resolvers. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsResolverListResult() @@ -54,8 +54,8 @@ public partial interface IDnsResolverListResult : ReadOnly = false, Description = @"Enumeration of the DNS resolvers.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get; set; } } /// The response to an enumeration operation on DNS resolvers. @@ -65,7 +65,7 @@ internal partial interface IDnsResolverListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the DNS resolvers. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.json.cs index f78530e99a4a..413f92b82c23 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsResolverListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsResolverListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsResolverListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs similarity index 77% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs index 39c70b0f445c..55bdb0fe8dfb 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsResolverPatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsResolverPatch /// /// 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. + /// 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. @@ -53,35 +55,33 @@ 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.Api20200401Preview.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +96,13 @@ internal DnsResolverPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +117,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -126,8 +126,8 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject 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.Api20200401Preview.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs index dfd36b8df7c6..1d3a59f016a5 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsResolverPatchTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.cs similarity index 78% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.cs index eef034f2e934..62a05992e729 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IDnsResolverPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatch.json.cs index bb693688af38..bcbe472e0a55 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsResolverPatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsResolverPatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsResolverPatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs index f566899119d9..62f0546ce9a3 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsResolverPatchTags /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsResolverPatchTags /// /// 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. + /// 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. @@ -53,35 +55,33 @@ 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.Api20200401Preview.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +100,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. @@ -122,8 +122,8 @@ internal DnsResolverPatchTags(global::System.Management.Automation.PSObject cont /// 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.Api20200401Preview.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs index 1eab244e36d9..dd03d4c74d80 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsResolverPatchTagsTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.cs similarity index 92% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.cs index eb317fdb14d5..fe2ece2f1fce 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsResolverPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs index 5eb8d443e630..d1c371364b18 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.DnsResolverPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs index 12bed53a86ae..bac9cf3bbf53 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverPatchTags.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsResolverPatchTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsResolverPatchTags /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsResolverPatchTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -69,13 +71,13 @@ internal DnsResolverPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs similarity index 61% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs index a4906e14aefd..c34b5e1a95b9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DnsResolverProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsResolverProperties /// /// 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. + /// 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. @@ -53,35 +55,33 @@ 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.Api20200401Preview.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +96,29 @@ internal DnsResolverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +133,23 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -158,8 +158,8 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con /// 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.Api20200401Preview.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs index addc360698aa..c0993466f78f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DnsResolverPropertiesTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.cs similarity index 83% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.cs index d86e620f2ed1..b2959afd5227 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IDnsResolverProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)VirtualNetwork).Id = value ?? null; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public DnsResolverProperties() @@ -103,7 +103,7 @@ public partial interface IDnsResolverProperties : string ResourceGuid { get; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -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.Api20200401Preview.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/DnsResolverProperties.json.cs index 03357db217c6..f22e041c7d84 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DnsResolverProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DnsResolverProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DnsResolverProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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;} @@ -71,13 +73,13 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs similarity index 50% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs index a55c05493c0d..49614dee8ba0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ForwardingRule /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class ForwardingRule /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -94,15 +96,15 @@ internal ForwardingRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -118,53 +120,53 @@ internal ForwardingRule(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)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.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)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("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)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.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)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. @@ -179,15 +181,15 @@ internal ForwardingRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -203,47 +205,47 @@ internal ForwardingRule(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)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.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)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("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal)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.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } @@ -252,8 +254,8 @@ internal ForwardingRule(global::System.Management.Automation.PSObject 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.Api20200401Preview.IForwardingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs index 46c5fa56119a..25862c567610 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRuleTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.cs index 89e7dca35c57..0d5b29727e43 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IForwardingRule, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -20,7 +20,7 @@ public partial class ForwardingRule : /// 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.Api20200401Preview.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).DomainName = value ?? null; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName = value ; } /// Backing field for property. private string _etag; @@ -37,7 +37,7 @@ public partial class ForwardingRule : /// 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.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } @@ -49,38 +49,38 @@ public partial class ForwardingRule : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = 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.Api20.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -115,7 +115,7 @@ public partial class ForwardingRule : /// 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.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -133,7 +133,7 @@ public ForwardingRule() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -148,7 +148,7 @@ public partial interface IForwardingRule : { /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The domain name for the forwarding rule.", SerializedName = @"domainName", @@ -168,8 +168,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.Api20200401Preview.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -239,12 +239,12 @@ public partial interface IForwardingRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule within a DNS forwarding ruleset. @@ -256,9 +256,9 @@ internal partial interface IForwardingRuleInternal : /// ETag of the forwarding rule. string Etag { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } /// Properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -281,7 +281,7 @@ internal partial interface IForwardingRuleInternal : /// The type of identity that last modified the resource. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRule.json.cs index eaa4facedb43..ab26d7858a62 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRule.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ForwardingRule partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardingRule /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardingRule /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -64,20 +66,20 @@ internal ForwardingRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_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.Api20200401Preview.IForwardingRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs index 9d99fdbcebb9..fecd00625934 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class ForwardingRuleListResult /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class ForwardingRuleListResult /// /// 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. + /// 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. @@ -55,35 +57,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.Api20200401Preview.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -98,17 +100,17 @@ internal ForwardingRuleListResult(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -123,11 +125,11 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -136,8 +138,8 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject /// 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.Api20200401Preview.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs index 6c5e25cae365..dbed8bcfc0a3 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRuleListResultTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.cs index 402d1a7fe159..9058b6b7d1a2 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. /// public partial class ForwardingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class ForwardingRuleListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] _value; /// Enumeration of the forwarding rules. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ForwardingRuleListResult() @@ -56,8 +56,8 @@ public partial interface IForwardingRuleListResult : ReadOnly = false, Description = @"Enumeration of the forwarding rules.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get; set; } } /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. @@ -67,7 +67,7 @@ internal partial interface IForwardingRuleListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the forwarding rules. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs index 8848c056f42b..621ad3a09fcf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class ForwardingRuleListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class ForwardingRuleListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class ForwardingRuleListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -65,19 +67,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.Api20200401Preview.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRuleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs similarity index 60% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs index c5304ab63e4d..0edcbcf13cb1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ForwardingRulePatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class ForwardingRulePatch /// /// 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. + /// 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. @@ -53,35 +55,33 @@ 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.Api20200401Preview.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +96,25 @@ internal ForwardingRulePatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +129,19 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -150,8 +150,8 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte /// 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.Api20200401Preview.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs index b917ee67874e..ec1c813abb92 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRulePatchTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.cs similarity index 65% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.cs index 1194ae54f02a..15b050567681 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IForwardingRulePatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Property { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs index 6947329aa04c..fbc49b63d9d0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ForwardingRulePatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardingRulePatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardingRulePatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -63,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.Api20200401Preview.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs similarity index 63% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs index f5d3266d3ef2..4e62fd755403 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class ForwardingRulePatchProperties /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class ForwardingRulePatchProperties /// /// 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. + /// 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. @@ -55,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.Api20200401Preview.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -98,21 +100,21 @@ internal ForwardingRulePatchProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -127,15 +129,15 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -144,8 +146,8 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb /// 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.Api20200401Preview.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs index 0d84d890a506..ed4845501c0c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRulePatchPropertiesTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs similarity index 80% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs index 3762727f0c47..c9478ca22310 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. /// public partial class ForwardingRulePatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs index 39e174806205..6a359ba8885b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class ForwardingRulePatchProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class ForwardingRulePatchProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class ForwardingRulePatchProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -65,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.Api20200401Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs index b28759d74423..4f5d758850c4 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ForwardingRulePatchPropertiesMetadata /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class ForwardingRulePatchPropertiesMetadata /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -100,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. @@ -123,8 +125,10 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Management.Automat /// 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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs index d331aecb44af..5d01952195ed 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class ForwardingRulePatchPropertiesMetadataTypeConverter : global { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,21 +102,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs index e74102905554..a38682dda835 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs index 1ccb183ae4ee..ef6a62a8b40d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs index 52edfa5c8cad..10d8ec48d8c1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ForwardingRulePatchPropertiesMetadata partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardingRulePatchPropertiesMetadata /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardingRulePatchPropertiesMetadata /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -69,13 +71,13 @@ internal ForwardingRulePatchPropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs similarity index 58% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs index d982285c009b..3109ec11654c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ForwardingRuleProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class ForwardingRuleProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -96,29 +98,29 @@ internal ForwardingRuleProperties(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -133,23 +135,23 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -158,8 +160,8 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject /// 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.Api20200401Preview.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs index db6015698736..05157078349f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRulePropertiesTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.cs index c54e315d6e3a..2da9c297d2ee 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IForwardingRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs index bd36b86f2559..380dcd23d006 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRuleProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ForwardingRuleProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardingRuleProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardingRuleProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -64,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.Api20200401Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRuleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs index a4595833275d..bf0596f1c88f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ForwardingRulePropertiesMetadata /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class ForwardingRulePropertiesMetadata /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -100,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. @@ -122,8 +124,8 @@ internal ForwardingRulePropertiesMetadata(global::System.Management.Automation.P /// 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.Api20200401Preview.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs index 549836aa3f1e..9c63a6f8a72a 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ForwardingRulePropertiesMetadataTypeConverter : global::Sys { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs index 8e48d3f7118c..78199ba9c653 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IForwardingRulePropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs index fd677d3cd4c7..cbd2c3ad4654 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs index 07c3a22c31a6..b8d2fbac064c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/ForwardingRulePropertiesMetadata.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ForwardingRulePropertiesMetadata partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardingRulePropertiesMetadata /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardingRulePropertiesMetadata /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -69,13 +71,13 @@ internal ForwardingRulePropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlets.Dns } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs similarity index 65% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs index f8fb3b78d66d..91dbeb3d4191 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class IPConfiguration /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class IPConfiguration /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IPConfiguration(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -101,25 +103,25 @@ internal IPConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -134,19 +136,19 @@ internal IPConfiguration(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs index 6b0d7bfd0439..106c1f343565 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class IPConfigurationTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.cs b/src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.cs similarity index 83% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.cs rename to src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.cs index 95d12c50fbf2..b8c055b37d37 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// IP configuration. public partial class IPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal { /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)Subnet).Id = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public IPConfiguration() @@ -69,7 +69,7 @@ public partial interface IIPConfiguration : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -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.Api20200401Preview.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/IPConfiguration.json.cs index 8ba8b2709920..56ac268f77eb 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/IPConfiguration.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class IPConfiguration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class IPConfiguration /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class IPConfiguration /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IIPConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs similarity index 56% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs index d0967cece847..06a0f51cf7e0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class InboundEndpoint /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class InboundEndpoint /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpoint(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -101,15 +103,15 @@ internal InboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -133,45 +135,45 @@ internal InboundEndpoint(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)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.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)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.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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. @@ -186,15 +188,15 @@ internal InboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -218,39 +220,39 @@ internal InboundEndpoint(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)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.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal)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.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs index 9f081dd4a1ee..8d1d021e28ee 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InboundEndpointTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.cs index d7d4d3783702..68955f6a0e07 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IInboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -28,7 +28,7 @@ public partial class InboundEndpoint : /// 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.Api20200401Preview.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -50,41 +50,41 @@ public partial class InboundEndpoint : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = 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.Api20.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -137,7 +137,7 @@ public InboundEndpoint() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -160,12 +160,12 @@ public partial interface IInboundEndpoint : string Etag { get; } /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -242,9 +242,9 @@ internal partial interface IInboundEndpointInternal : /// ETag of the inbound endpoint. string Etag { get; set; } /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } /// Properties of the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpoint.json.cs index 58914a665dcb..100bd3aca65d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpoint.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class InboundEndpoint partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class InboundEndpoint /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class InboundEndpoint /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IInboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -76,7 +78,7 @@ internal InboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs index 23fbf07b516c..aa483c0fea7c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class InboundEndpointListResult /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class InboundEndpointListResult /// /// 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. + /// 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. @@ -55,29 +57,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.Api20200401Preview.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointListResult(content); } @@ -86,11 +88,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -105,17 +107,17 @@ internal InboundEndpointListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -130,11 +132,11 @@ internal InboundEndpointListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs index de72fc8fe5e7..660f5bbc3ef9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InboundEndpointListResultTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.cs index 70c7a11d53dd..fe36b79cf76c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// The response to an enumeration operation on inbound endpoints for a DNS resolver. /// public partial class InboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class InboundEndpointListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] _value; /// Enumeration of the inbound endpoints for a DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public InboundEndpointListResult() @@ -56,8 +56,8 @@ public partial interface IInboundEndpointListResult : ReadOnly = false, Description = @"Enumeration of the inbound endpoints for a DNS resolver.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get; set; } } /// The response to an enumeration operation on inbound endpoints for a DNS resolver. @@ -67,7 +67,7 @@ internal partial interface IInboundEndpointListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the inbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs index da5e8756956e..a8766060badf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class InboundEndpointListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class InboundEndpointListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class InboundEndpointListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -54,13 +56,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.Api20200401Preview.IInboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -77,7 +79,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.Api20200401Preview.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs similarity index 77% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs index 51fe566b12b3..40214fdbe0ad 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class InboundEndpointPatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class InboundEndpointPatch /// /// 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. + /// 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. @@ -53,29 +55,27 @@ 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.Api20200401Preview.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatch(content); } @@ -84,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +103,13 @@ internal InboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +124,7 @@ internal InboundEndpointPatch(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs index 0091bb7a2b7a..56e41f4a9c33 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InboundEndpointPatchTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.cs index 2990a875a0bb..96109ecd9d4a 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IInboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs index 9d464f8c9fe6..6cfa6e30f9b0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class InboundEndpointPatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class InboundEndpointPatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class InboundEndpointPatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IInboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs index 1e071474fd0e..7950b70fd88c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class InboundEndpointPatchTags /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class InboundEndpointPatchTags /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatchTags(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -107,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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs index a33c0eace40e..3b00551788cf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InboundEndpointPatchTagsTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs index b244982c69b6..335f0660f9ee 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for inbound endpoint. public partial class InboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs index 4f7446888b76..e346575d7026 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.InboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs index 5ecf6ba45ec7..3b722d43f8a0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class InboundEndpointPatchTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class InboundEndpointPatchTags /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class InboundEndpointPatchTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IInboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs similarity index 66% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs index c3359c9e4c14..b0bf1326c1f6 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class InboundEndpointProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class InboundEndpointProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointProperties(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -103,21 +105,21 @@ internal InboundEndpointProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -132,15 +134,15 @@ internal InboundEndpointProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs index ff7cb1c1e424..bd2d972667e8 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InboundEndpointPropertiesTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.cs index dcd1fe094f3a..ca3df8faa80b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IInboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] _iPConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -55,12 +55,12 @@ public partial interface IInboundEndpointProperties : { /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs index ff8add2c0a98..154618a5f5e8 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/InboundEndpointProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class InboundEndpointProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class InboundEndpointProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class InboundEndpointProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IInboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs similarity index 56% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs index bb01db9b6f17..12a7165208ca 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OutboundEndpoint /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class OutboundEndpoint /// /// 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. + /// 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. @@ -53,29 +55,27 @@ 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.Api20200401Preview.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpoint(content); } @@ -84,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,15 +103,15 @@ internal OutboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -135,49 +135,49 @@ internal OutboundEndpoint(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)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.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)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.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,15 +192,15 @@ internal OutboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -224,43 +224,43 @@ internal OutboundEndpoint(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)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.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)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.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs index f58549096611..861feecc7d0b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OutboundEndpointTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.cs index e9444768415c..4b0e6c37d8c7 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IOutboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -46,48 +46,48 @@ public partial class OutboundEndpoint : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = 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.Api20.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -140,7 +140,7 @@ public OutboundEndpoint() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -182,7 +182,7 @@ public partial interface IOutboundEndpoint : string ResourceGuid { get; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -245,7 +245,7 @@ internal partial interface IOutboundEndpointInternal : /// ETag of the outbound endpoint. string Etag { get; set; } /// Properties of the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -254,7 +254,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.Api20200401Preview.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } /// Metadata pertaining to creation and last modification of the resource. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpoint.json.cs index 2d2790322189..9a9485ed02bc 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpoint.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OutboundEndpoint partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OutboundEndpoint /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OutboundEndpoint /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IOutboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -76,7 +78,7 @@ internal OutboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs index 5b6a55fdf74f..97109d7435dc 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class OutboundEndpointListResult /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class OutboundEndpointListResult /// /// 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. + /// 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. @@ -55,29 +57,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.Api20200401Preview.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointListResult(content); } @@ -86,11 +88,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -105,17 +107,17 @@ internal OutboundEndpointListResult(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -130,11 +132,11 @@ internal OutboundEndpointListResult(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs index e5b1d9df89b3..463f74582d3a 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OutboundEndpointListResultTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.cs index d8b3ac870e93..5d7c9153390e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// The response to an enumeration operation on outbound endpoints for a DNS resolver. /// public partial class OutboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class OutboundEndpointListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] _value; /// Enumeration of the outbound endpoints for a DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OutboundEndpointListResult() @@ -56,8 +56,8 @@ public partial interface IOutboundEndpointListResult : ReadOnly = false, Description = @"Enumeration of the outbound endpoints for a DNS resolver.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get; set; } } /// The response to an enumeration operation on outbound endpoints for a DNS resolver. @@ -67,7 +67,7 @@ internal partial interface IOutboundEndpointListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the outbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs index 082b408f8e98..81dd90bc649c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class OutboundEndpointListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class OutboundEndpointListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class OutboundEndpointListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -54,13 +56,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.Api20200401Preview.IOutboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -77,7 +79,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.Api20200401Preview.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs similarity index 76% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs index eac86c3480be..176e4f48ed55 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OutboundEndpointPatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class OutboundEndpointPatch /// /// 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. + /// 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. @@ -53,29 +55,27 @@ 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.Api20200401Preview.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatch(content); } @@ -84,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +103,13 @@ internal OutboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +124,7 @@ internal OutboundEndpointPatch(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs index 0d0ec889bd72..b512d1281e41 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OutboundEndpointPatchTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.cs index f8dde9d4393d..c7ee4173f585 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IOutboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs index e9f96dfb0e5f..d7253c3bc968 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OutboundEndpointPatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OutboundEndpointPatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OutboundEndpointPatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IOutboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs index 303b4db99f0e..28f7e0a653ac 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OutboundEndpointPatchTags /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class OutboundEndpointPatchTags /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatchTags(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -107,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/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs index 76d4d1ff31cf..e5bedcbc1431 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OutboundEndpointPatchTagsTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs index 2792888bb4f8..130257540a62 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for outbound endpoint. public partial class OutboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs index a0d17f0492e1..74ee8c05e364 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.OutboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs index 19ec1102743f..8bc6c526f870 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OutboundEndpointPatchTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OutboundEndpointPatchTags /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OutboundEndpointPatchTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IOutboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs similarity index 65% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs index 00d0a5fec746..e28e50cc427f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OutboundEndpointProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class OutboundEndpointProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointProperties(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -103,25 +105,25 @@ internal OutboundEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -136,19 +138,19 @@ internal OutboundEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs index a159182b10d8..0cd594336d55 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OutboundEndpointPropertiesTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.cs index e72562f1c7fe..355b502e8150 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IOutboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)Subnet).Id = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public OutboundEndpointProperties() @@ -81,7 +81,7 @@ public partial interface IOutboundEndpointProperties : string ResourceGuid { get; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -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.Api20200401Preview.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs index e00fd9c1bc80..ca18053f0810 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/OutboundEndpointProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OutboundEndpointProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OutboundEndpointProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OutboundEndpointProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IOutboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResource.PowerShell.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResource.PowerShell.cs index fa6e68ea8cc3..d481d6b924ad 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SubResource /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class SubResource /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResource(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -101,13 +103,13 @@ internal SubResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -122,7 +124,7 @@ internal SubResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResource.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResource.TypeConverter.cs index 99379cc5b9f2..9cb243578dd2 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SubResourceTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResource.cs similarity index 94% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResource.cs index d3e76ad7b0a8..555f66b0e2bf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to another ARM resource. public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal { /// Backing field for property. @@ -32,7 +32,7 @@ public partial interface ISubResource : { /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResource.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResource.json.cs index 456d32936907..116e62cd5df1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResource.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SubResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SubResource /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class SubResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.ISubResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs index 34fd38f72edb..07055eaa2003 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SubResourceListResult /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class SubResourceListResult /// /// 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. + /// 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. @@ -53,29 +55,27 @@ 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.Api20200401Preview.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResourceListResult(content); } @@ -84,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +103,17 @@ internal SubResourceListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +128,11 @@ internal SubResourceListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs index 34f624c5965d..322c1ab9f3d8 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SubResourceListResultTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.cs similarity index 85% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.cs index 1453fceca4d6..45f381ebacd3 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.ISubResourceListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class SubResourceListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _value; /// Enumeration of the sub-resources. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public SubResourceListResult() @@ -54,8 +54,8 @@ public partial interface ISubResourceListResult : ReadOnly = false, Description = @"Enumeration of the sub-resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get; set; } } /// The response to an enumeration operation on sub-resources. @@ -65,7 +65,7 @@ internal partial interface ISubResourceListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the sub-resources. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/SubResourceListResult.json.cs index fc6b5826765e..b37106718017 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/SubResourceListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SubResourceListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SubResourceListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class SubResourceListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.ISubResourceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -75,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.Api20200401Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs similarity index 76% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs index 28b3412c8a2f..17baedeb7fb3 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TargetDnsServer /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class TargetDnsServer /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDnsServer(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -101,17 +103,17 @@ internal TargetDnsServer(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -126,11 +128,11 @@ internal TargetDnsServer(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs index ec437c1a5149..cc3174d9aa71 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TargetDnsServerTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.cs b/src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.cs similarity index 95% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.cs rename to src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.cs index e0c7fe0bf648..d318ad4f8e75 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.ITargetDnsServer, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServerInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal { /// Backing field for property. @@ -39,7 +39,7 @@ public partial interface ITargetDnsServer : { /// DNS server IP address. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"DNS server IP address.", SerializedName = @"ipAddress", diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.json.cs similarity index 91% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/TargetDnsServer.json.cs index 347e7887f343..2b14acb7109c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/TargetDnsServer.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class TargetDnsServer partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TargetDnsServer /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class TargetDnsServer /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.ITargetDnsServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs similarity index 63% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs index a7656e8bcc46..0ea253ff3a1c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkDnsForwardingRuleset /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkDnsForwardingRuleset /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRuleset(content); } @@ -84,8 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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,25 +112,25 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -141,19 +145,19 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Management.Automation // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs index d80323c7dd01..5cc9eb2810c6 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkDnsForwardingRulesetTypeConverter : global::S { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -76,19 +76,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -100,21 +101,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs similarity index 68% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs index 2d764a6f60cf..2b14ab7467e4 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get; set; } /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs index f14595e3fcd1..7d3f79c4410c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRuleset.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkDnsForwardingRuleset /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkDnsForwardingRuleset /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -101,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.Api20200401Preview.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs similarity index 69% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs index 93698980bd33..a40bb6b23b6e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult /// /// 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. + /// 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. @@ -55,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.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } @@ -87,8 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -96,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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. @@ -111,17 +115,17 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Collections // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -136,11 +140,11 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Management. // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs index 7bd78fbc0c54..e8a843a8e83d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class VirtualNetworkDnsForwardingRulesetListResultTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs similarity index 83% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs index a6b4ecf97f2b..41d59b7e9052 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. /// public partial class VirtualNetworkDnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] _value; /// Enumeration of the Virtual Network DNS Forwarding Ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// /// Creates an new instance. @@ -58,8 +58,8 @@ public partial interface IVirtualNetworkDnsForwardingRulesetListResult : ReadOnly = false, Description = @"Enumeration of the Virtual Network DNS Forwarding Ruleset.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. @@ -69,7 +69,7 @@ internal partial interface IVirtualNetworkDnsForwardingRulesetListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the Virtual Network DNS Forwarding Ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs similarity index 86% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs index b4adfa855e3c..dcf0c58e01ff 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -54,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.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -116,7 +118,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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs similarity index 64% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs index 1024cf0aa3bc..eca5ef3d1a0e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolver.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// Describes a DNS resolver. - [System.ComponentModel.TypeConverter(typeof(DnsResolverTypeConverter))] - public partial class DnsResolver + /// Describes a virtual network link. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkTypeConverter))] + public partial class VirtualNetworkLink { /// @@ -31,7 +31,8 @@ public partial class DnsResolver /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsResolver /// /// 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. + /// 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. @@ -53,37 +55,49 @@ 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.Api20200401Preview.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new DnsResolver(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.Api20200401Preview.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new DnsResolver(content); + return new VirtualNetworkLink(content); } /// - /// Deserializes a into 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.Api20220701.IVirtualNetworkLink 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 DnsResolver(global::System.Collections.IDictionary content) + internal VirtualNetworkLink(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -94,15 +108,15 @@ internal DnsResolver(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -116,67 +130,55 @@ internal DnsResolver(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)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.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)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.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. - internal DnsResolver(global::System.Management.Automation.PSObject content) + internal VirtualNetworkLink(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -187,15 +189,15 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -209,76 +211,52 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceGuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)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.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)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.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId, 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.Api20200401Preview.IDnsResolver 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(); } - /// Describes a DNS resolver. - [System.ComponentModel.TypeConverter(typeof(DnsResolverTypeConverter))] - public partial interface IDnsResolver + /// Describes a virtual network link. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkTypeConverter))] + public partial interface IVirtualNetworkLink { diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs index 118cb981acf0..7e755ef18058 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkLinkTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.cs index 4cc1f231e9ad..6bee450d2dce 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link. public partial class VirtualNetworkLink : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// @@ -33,7 +33,7 @@ public partial class VirtualNetworkLink : /// 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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } @@ -45,37 +45,37 @@ public partial class VirtualNetworkLink : string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = 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.Api20.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; @@ -116,13 +116,13 @@ public partial class VirtualNetworkLink : /// 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.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ?? null; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { @@ -155,8 +155,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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -218,7 +218,7 @@ public partial interface IVirtualNetworkLink : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -233,9 +233,9 @@ internal partial interface IVirtualNetworkLinkInternal : /// ETag of the virtual network link. string Etag { get; set; } /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// Properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -256,7 +256,7 @@ internal partial interface IVirtualNetworkLinkInternal : /// The type of identity that last modified the resource. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs index 5e8490849e2f..81318b1c9845 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLink.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLink partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLink /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLink /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLink. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -109,7 +111,7 @@ internal VirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runti return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs index f4b4a7363011..4a3b5c1b3c59 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/DnsResolverListResult.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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 + /// The response to an enumeration operation on virtual network links. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] + public partial class VirtualNetworkLinkListResult { /// @@ -31,7 +31,8 @@ public partial class DnsResolverListResult /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class DnsResolverListResult /// /// 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. + /// 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. @@ -53,39 +55,51 @@ public partial class DnsResolverListResult 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.Api20200401Preview.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new DnsResolverListResult(content); + return new VirtualNetworkLinkListResult(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.Api20200401Preview.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new DnsResolverListResult(content); + return new VirtualNetworkLinkListResult(content); } /// - /// Deserializes a into 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.Api20220701.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 DnsResolverListResult(global::System.Collections.IDictionary content) + internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -96,21 +110,21 @@ internal DnsResolverListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)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 DnsResolverListResult(global::System.Management.Automation.PSObject content) + internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -121,30 +135,18 @@ internal DnsResolverListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)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.Api20200401Preview.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 + /// The response to an enumeration operation on virtual network links. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkLinkListResultTypeConverter))] + public partial interface IVirtualNetworkLinkListResult { diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs index ba955dea4c6d..5b4ee1d339ad 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkLinkListResultTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs index e55ca88d9a36..f310785ee642 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on virtual network links. public partial class VirtualNetworkLinkListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class VirtualNetworkLinkListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] _value; /// Enumeration of the virtual network links. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public VirtualNetworkLinkListResult() @@ -54,8 +54,8 @@ public partial interface IVirtualNetworkLinkListResult : ReadOnly = false, Description = @"Enumeration of the virtual network links.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get; set; } } /// The response to an enumeration operation on virtual network links. @@ -65,7 +65,7 @@ internal partial interface IVirtualNetworkLinkListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the virtual network links. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs similarity index 87% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs index 13ebe0d54611..f9e9fd768a1e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkListResult.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkListResult /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -111,7 +113,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.Api20200401Preview.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.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.Api20220701.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs similarity index 69% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs index 1f798f0beb36..dce21976d2af 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkLinkPatch /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkLinkPatch /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatch(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch 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.Api20200401P 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,17 +110,17 @@ internal VirtualNetworkLinkPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,11 +135,11 @@ internal VirtualNetworkLinkPatch(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs index b1283720eda2..a3c43382c9c1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkLinkPatchTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs similarity index 64% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs index 70bf4d5bc767..5e0c2c790828 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkLinkPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs index 7840e98b6c8b..b84f28aae57f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatch.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkPatch partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkPatch /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkPatch /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -99,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.Api20200401Preview.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs similarity index 75% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs index 9c2b9b30d605..b12d2311bd2e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkLinkPatchProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkLinkPatchProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchProperties(content); } @@ -84,8 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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,13 +112,13 @@ internal VirtualNetworkLinkPatchProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -129,7 +133,7 @@ internal VirtualNetworkLinkPatchProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs index 9f6592472d09..4e27ea7f0fb9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkLinkPatchPropertiesTypeConverter : global::Sy { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs similarity index 75% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs index f546d5800526..fbdb65fb001d 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkLinkPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs index 20594a68561f..83ebe0898b36 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkPatchProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkPatchProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkPatchProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -99,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.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} AfterFromJson(json); } } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs index 1b88cd2f4d9a..a736cf78ade1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } @@ -85,8 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -94,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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. @@ -113,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/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs index 014908be7991..91f36d502dd4 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadataTypeConverter : gl { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs index ee2faa915004..7cdb81fe10f0 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadataInternal { /// diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs index 6aa7c5135124..51de82331a66 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs index 8e901d5abb1f..f51fb19de78a 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs similarity index 62% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs index 8731a17815ac..07f49313c29e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkLinkProperties /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkLinkProperties /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkProperties(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties 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.Api20200401P 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,25 +110,25 @@ internal VirtualNetworkLinkProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -141,19 +143,19 @@ internal VirtualNetworkLinkProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs similarity index 82% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs index b0c5f248600f..6f10192e6806 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class VirtualNetworkLinkPropertiesTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs similarity index 75% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs index cec0fb722abc..44b68ef9573f 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkLinkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)VirtualNetwork).Id = value ?? null; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -78,7 +78,7 @@ public partial interface IVirtualNetworkLinkProperties : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", @@ -91,14 +91,14 @@ internal partial interface IVirtualNetworkLinkPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs similarity index 89% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs index 7c01e2e41311..ee386a9bdd1c 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -104,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.Api20200401Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs similarity index 84% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs index b5ef378f6edd..9ee4db66733b 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VirtualNetworkLinkPropertiesMetadata /// /// 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. + /// 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. @@ -43,7 +44,8 @@ public partial class VirtualNetworkLinkPropertiesMetadata /// /// 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. + /// 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. @@ -53,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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPropertiesMetadata(content); } @@ -84,8 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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 +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/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs index 71d7340e60ab..e01842de8ee1 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class VirtualNetworkLinkPropertiesMetadataTypeConverter : global: { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,21 +102,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs index 304ed81f85d5..3576f90ca9bf 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs index aa8e39b45ac4..708e4ecb5587 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { 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.Api20200401Preview.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs similarity index 90% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs index c60f2ce3ef81..a93a70e85797 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkPropertiesMetadata.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class VirtualNetworkLinkPropertiesMetadata /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class VirtualNetworkLinkPropertiesMetadata /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -52,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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs index 7ffe3ecf67d3..e38d28e5a0b9 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class VirtualNetworkLinkSubResourceProperties /// /// 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. + /// 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. @@ -45,7 +46,8 @@ public partial class VirtualNetworkLinkSubResourceProperties /// /// 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. + /// 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. @@ -55,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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkSubResourceProperties(content); } @@ -87,8 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P /// 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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -96,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401P 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. @@ -111,17 +115,17 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Collections.IDic // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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. @@ -136,11 +140,11 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Management.Autom // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs similarity index 81% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs index fdffd179add9..ae5061684e6e 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class VirtualNetworkLinkSubResourcePropertiesTypeConverter : glob { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs similarity index 71% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs index d3ff46380c0e..dffc2b4168a5 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Previ /// 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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal { /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set { {_virtualNetworkLink = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_virtualNetworkLink = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource _virtualNetworkLink; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource()); set => this._virtualNetworkLink = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20200401Preview.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.json.cs b/src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs similarity index 88% rename from src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.json.cs rename to src/DnsResolver/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs index fead164d4df3..dd327b9768ed 100644 --- a/src/DnsResolver/generated/api/Models/Api20200401Preview/VirtualNetworkLinkSubResourceProperties.json.cs +++ b/src/DnsResolver/generated/api/Models/Api20220701/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.Api20200401Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class VirtualNetworkLinkSubResourceProperties /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class VirtualNetworkLinkSubResourceProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -54,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.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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; } @@ -103,7 +105,7 @@ internal VirtualNetworkLinkSubResourceProperties(Microsoft.Azure.PowerShell.Cmdl { return; } - {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} + {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} AfterFromJson(json); } } diff --git a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.PowerShell.cs b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.PowerShell.cs index f7a01d99f6f4..abb9beed30b7 100644 --- a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.PowerShell.cs +++ b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.PowerShell.cs @@ -30,7 +30,8 @@ public partial class DnsResolverIdentity /// /// 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. + /// 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. @@ -42,7 +43,8 @@ public partial class DnsResolverIdentity /// /// 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. + /// 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. @@ -195,7 +197,7 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.TypeConverter.cs b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.TypeConverter.cs index 3c78788e2865..d99c39894204 100644 --- a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class DnsResolverIdentityTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.json.cs b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.json.cs index 4475e1de0603..4bff27802e07 100644 --- a/src/DnsResolver/generated/api/Models/DnsResolverIdentity.json.cs +++ b/src/DnsResolver/generated/api/Models/DnsResolverIdentity.json.cs @@ -19,7 +19,7 @@ public partial class DnsResolverIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class DnsResolverIdentity /// /// BeforeFromJson will be called before the json 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. + /// 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 JsonNode that should be deserialized into this object. @@ -41,7 +42,8 @@ public partial class DnsResolverIdentity /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/DnsResolver/generated/api/Support/CreatedByType.TypeConverter.cs b/src/DnsResolver/generated/api/Support/CreatedByType.TypeConverter.cs index f31353ef7fe2..32c534a2049c 100644 --- a/src/DnsResolver/generated/api/Support/CreatedByType.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Support/CreatedByType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class CreatedByTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DnsResolver/generated/api/Support/CreatedByType.cs b/src/DnsResolver/generated/api/Support/CreatedByType.cs index bfa29a42f440..e6d4224f30c5 100644 --- a/src/DnsResolver/generated/api/Support/CreatedByType.cs +++ b/src/DnsResolver/generated/api/Support/CreatedByType.cs @@ -28,7 +28,7 @@ internal static object CreateFrom(object value) return new CreatedByType(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private CreatedByType(string underlyingValue) { @@ -82,8 +82,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding != operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType e2) { @@ -91,8 +91,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding == operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType e2) { diff --git a/src/DnsResolver/generated/api/Support/DnsResolverState.TypeConverter.cs b/src/DnsResolver/generated/api/Support/DnsResolverState.TypeConverter.cs index 13445b1c4e0e..645c7199bee4 100644 --- a/src/DnsResolver/generated/api/Support/DnsResolverState.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Support/DnsResolverState.TypeConverter.cs @@ -14,32 +14,32 @@ public partial class DnsResolverStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DnsResolver/generated/api/Support/DnsResolverState.cs b/src/DnsResolver/generated/api/Support/DnsResolverState.cs index 3cc6a846f12b..48eebfce9ff9 100644 --- a/src/DnsResolver/generated/api/Support/DnsResolverState.cs +++ b/src/DnsResolver/generated/api/Support/DnsResolverState.cs @@ -26,7 +26,7 @@ internal static object CreateFrom(object value) return new DnsResolverState(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DnsResolverState(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding != operator for enum DnsResolverState - /// the value to compare against - /// the value to compare against + /// 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.DnsResolverState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding == operator for enum DnsResolverState - /// the value to compare against - /// the value to compare against + /// 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.DnsResolverState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState e2) { diff --git a/src/DnsResolver/generated/api/Support/ForwardingRuleState.TypeConverter.cs b/src/DnsResolver/generated/api/Support/ForwardingRuleState.TypeConverter.cs index c12d629b7a34..9b8e9d59ec2e 100644 --- a/src/DnsResolver/generated/api/Support/ForwardingRuleState.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Support/ForwardingRuleState.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ForwardingRuleStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DnsResolver/generated/api/Support/ForwardingRuleState.cs b/src/DnsResolver/generated/api/Support/ForwardingRuleState.cs index be8b16459018..25f033192ed6 100644 --- a/src/DnsResolver/generated/api/Support/ForwardingRuleState.cs +++ b/src/DnsResolver/generated/api/Support/ForwardingRuleState.cs @@ -40,7 +40,7 @@ public override bool Equals(object obj) return obj is ForwardingRuleState && Equals((ForwardingRuleState)obj); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ForwardingRuleState(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding != operator for enum ForwardingRuleState - /// the value to compare against - /// the value to compare against + /// 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.ForwardingRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding == operator for enum ForwardingRuleState - /// the value to compare against - /// the value to compare against + /// 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.ForwardingRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState e2) { diff --git a/src/DnsResolver/generated/api/Support/IPAllocationMethod.TypeConverter.cs b/src/DnsResolver/generated/api/Support/IPAllocationMethod.TypeConverter.cs index 93e790f0ead5..27e36296eb67 100644 --- a/src/DnsResolver/generated/api/Support/IPAllocationMethod.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Support/IPAllocationMethod.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class IPAllocationMethodTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DnsResolver/generated/api/Support/IPAllocationMethod.cs b/src/DnsResolver/generated/api/Support/IPAllocationMethod.cs index 842a6b7bcd14..20565a289ed9 100644 --- a/src/DnsResolver/generated/api/Support/IPAllocationMethod.cs +++ b/src/DnsResolver/generated/api/Support/IPAllocationMethod.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private IPAllocationMethod(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding != operator for enum IPAllocationMethod - /// the value to compare against - /// the value to compare against + /// 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.IPAllocationMethod e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding == operator for enum IPAllocationMethod - /// the value to compare against - /// the value to compare against + /// 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.IPAllocationMethod e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod e2) { diff --git a/src/DnsResolver/generated/api/Support/ProvisioningState.TypeConverter.cs b/src/DnsResolver/generated/api/Support/ProvisioningState.TypeConverter.cs index 526e7572c374..bb340736ad49 100644 --- a/src/DnsResolver/generated/api/Support/ProvisioningState.TypeConverter.cs +++ b/src/DnsResolver/generated/api/Support/ProvisioningState.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ProvisioningStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DnsResolver/generated/api/Support/ProvisioningState.cs b/src/DnsResolver/generated/api/Support/ProvisioningState.cs index 96ef0cb2b948..34071ae40d4a 100644 --- a/src/DnsResolver/generated/api/Support/ProvisioningState.cs +++ b/src/DnsResolver/generated/api/Support/ProvisioningState.cs @@ -55,7 +55,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ProvisioningState(string underlyingValue) { @@ -86,8 +86,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding != operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against + /// 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.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState e2) { @@ -95,8 +95,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// Overriding == operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against + /// 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.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState e2) { diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs index 937458edfb86..2c6e380db2e9 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::System.Management.Automation.PSCmdlet, @@ -80,11 +80,11 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,30 +160,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +200,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -303,7 +308,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -349,12 +353,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -371,7 +375,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 } @@ -389,12 +393,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -406,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index 5935d06d8688..7a37e5cc4622 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : gl public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -317,12 +321,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -339,7 +343,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 } @@ -357,12 +361,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs index b3fb439d7cfb..98bfe6aae73e 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists forwarding rules in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::System.Management.Automation.PSCmdlet, @@ -86,11 +86,11 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -310,7 +315,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -356,12 +360,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -378,7 +382,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 } @@ -396,12 +400,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index 1962ca3463fd..362ebce9b978 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, @@ -80,11 +80,11 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,30 +160,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +200,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -303,7 +308,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -349,12 +353,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -371,7 +375,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 } @@ -389,12 +393,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -406,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 1895b6bd2b41..81d6a4ea9e72 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -317,12 +321,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -339,7 +343,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 } @@ -357,12 +361,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index d4d942e2923d..043a39ed9843 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists virtual network links to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, @@ -86,11 +86,11 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -310,7 +315,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -356,12 +360,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -378,7 +382,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 } @@ -396,12 +400,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs index 5744698beecf..e6aa36819300 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.Automation.PSCmdlet, @@ -66,11 +66,11 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -146,30 +146,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -181,7 +186,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -289,7 +294,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -335,12 +339,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -357,7 +361,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 } @@ -375,12 +379,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -392,7 +396,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs index d7eaab8e035f..5d016ccdfc04 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -313,12 +317,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -335,7 +339,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 } @@ -353,12 +357,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -370,7 +374,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs index 2b00c86478d5..d3f31baad43f 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsForwardingRuleset_List : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -153,30 +153,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -188,7 +193,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -296,7 +301,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -342,12 +346,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -364,7 +368,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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +386,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs index dbe3e24d8009..55654368661b 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -139,30 +139,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -174,7 +179,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -282,7 +287,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -328,12 +332,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -350,7 +354,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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -368,12 +372,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs index 0b20d9b8c591..e518c989bd9d 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -313,7 +318,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -359,12 +363,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -381,7 +385,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 } @@ -399,12 +403,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs index 94b9df64bac8..0d1f53e2f2ea 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, @@ -80,11 +80,11 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,30 +160,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +200,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -303,7 +308,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -349,12 +353,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -371,7 +375,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 } @@ -389,12 +393,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -406,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index d601375bdc4f..fff05529129b 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -317,12 +321,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -339,7 +343,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 } @@ -357,12 +361,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs index fb83ea86e0fb..54b57ddbc967 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists inbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Management.Automation.PSCmdlet, @@ -86,11 +86,11 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -310,7 +315,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -356,12 +360,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -378,7 +382,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 } @@ -396,12 +400,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs index bea9b829d48d..6240c52bb98b 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, @@ -80,11 +80,11 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,30 +160,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +200,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -303,7 +308,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -349,12 +353,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -371,7 +375,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 } @@ -389,12 +393,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -406,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index 3da82ed79052..81bc7af74816 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::S public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -317,12 +321,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -339,7 +343,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 } @@ -357,12 +361,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs index f8cb2e2c4c23..2fa03dad6766 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists outbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Management.Automation.PSCmdlet, @@ -86,11 +86,11 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -310,7 +315,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -356,12 +360,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -378,7 +382,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 } @@ -396,12 +400,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_Get.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_Get.cs index d24090efdc0d..d756a71aa83e 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_Get.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_Get.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsResolver_Get : global::System.Management.Automation.PSCmdlet, @@ -66,11 +66,11 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -146,30 +146,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -181,7 +186,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -289,7 +294,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -335,12 +339,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -357,7 +361,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 } @@ -375,12 +379,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -392,7 +396,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs index dd35daa358d6..795f18028c68 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -74,11 +74,11 @@ public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -313,12 +317,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -335,7 +339,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 } @@ -353,12 +357,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -370,7 +374,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List.cs index 5842a41b121d..01109013cf6c 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class GetAzDnsResolver_List : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -153,30 +153,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -188,7 +193,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -296,7 +301,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -342,12 +346,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -364,7 +368,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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +386,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List1.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List1.cs index 1aa27eeb2e3e..8b356b2389f2 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List1.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolver_List1 : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -139,30 +139,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -174,7 +179,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -282,7 +287,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -328,12 +332,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -350,7 +354,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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -368,12 +372,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { diff --git a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List2.cs b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List2.cs index e97bd7313fcf..9e94bc64190a 100644 --- a/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List2.cs +++ b/src/DnsResolver/generated/cmdlets/GetAzDnsResolver_List2.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.ISubResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class GetAzDnsResolver_List2 : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -167,30 +167,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,7 +207,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -313,7 +318,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -359,12 +363,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -381,7 +385,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 } @@ -399,12 +403,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index 83b7539a2a36..d3e5b2f809b7 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -65,15 +68,15 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl public string DnsForwardingRulesetName { get => this._dnsForwardingRulesetName; set => this._dnsForwardingRulesetName = value; } /// The domain name for the forwarding rule. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The domain name for the forwarding rule.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The domain name for the forwarding rule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The domain name for the forwarding rule.", SerializedName = @"domainName", PossibleTypes = new [] { typeof(string) })] - public string DomainName { get => ParametersBody.DomainName ?? null; set => ParametersBody.DomainName = value; } + public string DomainName { get => _parametersBody.DomainName ?? null; set => _parametersBody.DomainName = value; } /// The state of forwarding rule. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of forwarding rule.")] @@ -85,7 +88,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl SerializedName = @"forwardingRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState))] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => ParametersBody.State ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => ParametersBody.State = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => _parametersBody.State ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => _parametersBody.State = 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")] @@ -144,15 +147,15 @@ 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.Api20200401Preview.IForwardingRulePropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -170,12 +173,6 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRule(); - - /// Describes a forwarding rule within a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -231,57 +228,62 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl /// DNS servers to forward the DNS query to. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS servers to forward the DNS query to.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "DNS servers to forward the DNS query 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, + Required = true, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => ParametersBody.TargetDnsServer ?? null /* arrayOf */; set => ParametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -293,7 +295,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -404,7 +406,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -419,12 +420,12 @@ protected override void ProcessRecord() try { 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.ForwardingRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onCreated, onDefault, this, Pipeline); + await this.Client.ForwardingRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, onOk, onCreated, 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,DnsForwardingRulesetName=DnsForwardingRulesetName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -445,12 +446,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -462,7 +463,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } @@ -471,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -493,15 +494,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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -511,12 +512,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -528,7 +529,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index 8c920878aa85..7efdd2751cf7 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -126,15 +129,15 @@ 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.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,12 +163,6 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLink(); - - /// Describes a virtual network link. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -220,45 +217,50 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] - public string VirtualNetworkId { get => ParametersBody.VirtualNetworkId ?? null; set => ParametersBody.VirtualNetworkId = value; } + public string VirtualNetworkId { get => _parametersBody.VirtualNetworkId ?? null; set => _parametersBody.VirtualNetworkId = 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -286,7 +288,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsForwarding clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsForwardingRulesetName = this.DnsForwardingRulesetName; @@ -299,7 +301,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsForwarding /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -440,7 +442,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -455,12 +456,12 @@ protected override void ProcessRecord() try { 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.VirtualNetworkLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.VirtualNetworkLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, 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,DnsForwardingRulesetName=DnsForwardingRulesetName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -483,12 +484,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -505,15 +506,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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -523,12 +524,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -540,7 +541,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs index b0946fc90088..c2c1206bccec 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -60,15 +63,15 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M /// in the ruleset to the target DNS servers. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "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.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "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.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, 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.Api20200401Preview.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] DnsResolverOutboundEndpoint { get => ParametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => ParametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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")] @@ -127,14 +130,14 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,12 +163,6 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRuleset(); - - /// Describes a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -229,37 +226,42 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -285,7 +287,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsForwarding clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -297,7 +299,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsForwarding /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -438,7 +440,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -453,12 +454,12 @@ protected override void ProcessRecord() try { 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.DnsForwardingRulesetsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, 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,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -481,12 +482,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -503,15 +504,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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -521,12 +522,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -538,7 +539,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 30ee02f76034..de163d2eda30 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -83,15 +86,15 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy /// IP configurations for the inbound endpoint. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "IP configurations for the inbound endpoint.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "IP configurations for the inbound endpoint.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] IPConfiguration { get => ParametersBody.IPConfiguration ?? null /* arrayOf */; set => ParametersBody.IPConfiguration = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } /// Backing field for property. private string _ifMatch; @@ -138,14 +141,14 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -171,12 +174,6 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpoint(); - - /// Describes an inbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -240,37 +237,42 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -296,7 +298,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverIn clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsResolverName = this.DnsResolverName; @@ -309,7 +311,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverIn /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -450,7 +452,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -465,12 +466,12 @@ protected override void ProcessRecord() try { 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.InboundEndpointsCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.InboundEndpointsCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, 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,DnsResolverName=DnsResolverName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -493,12 +494,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -515,15 +516,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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -533,12 +534,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -550,7 +551,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index 2bf512e8bd67..49503218a54d 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -126,14 +129,14 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -159,12 +162,6 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpoint(); - - /// Describes an outbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -201,15 +198,15 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] - public string SubnetId { get => ParametersBody.SubnetId ?? null; set => ParametersBody.SubnetId = value; } + public string SubnetId { get => _parametersBody.SubnetId ?? null; set => _parametersBody.SubnetId = value; } /// Backing field for property. private string _subscriptionId; @@ -239,37 +236,42 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -295,7 +297,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverOu clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsResolverName = this.DnsResolverName; @@ -308,7 +310,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverOu /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -449,7 +451,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -464,12 +465,12 @@ protected override void ProcessRecord() try { 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.OutboundEndpointsCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.OutboundEndpointsCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, 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,DnsResolverName=DnsResolverName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -492,12 +493,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -514,15 +515,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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -532,12 +533,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -549,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs index 4bb5e61dca69..bfabc63794da 100644 --- a/src/DnsResolver/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class NewAzDnsResolver_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -112,14 +115,14 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -145,12 +148,6 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolver(); - - /// Describes a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -214,48 +211,53 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Resource ID. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource ID.")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Resource ID.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] - public string VirtualNetworkId { get => ParametersBody.VirtualNetworkId ?? null; set => ParametersBody.VirtualNetworkId = value; } + public string VirtualNetworkId { get => _parametersBody.VirtualNetworkId ?? null; set => _parametersBody.VirtualNetworkId = 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -281,7 +283,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolver_C clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -293,7 +295,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolver_C /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -434,7 +436,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -449,12 +450,12 @@ protected override void ProcessRecord() try { 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.DnsResolversCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, 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,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -477,12 +478,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -499,15 +500,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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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 } }); } 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=ParametersBody }) + 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, 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -517,12 +518,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -534,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index ad22943f5a48..4af1f7757c30 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -99,11 +99,11 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -186,12 +186,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -218,6 +218,11 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -229,7 +234,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -332,7 +337,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -383,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -405,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, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index 82ecdb3d97b8..b245ce402be2 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -93,11 +93,11 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -133,12 +133,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -165,6 +165,11 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -176,7 +181,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -279,7 +284,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -354,12 +358,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -376,7 +380,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index 12a43edf467f..7024f49d4d11 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -104,11 +104,11 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -199,12 +199,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -231,6 +231,11 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -267,7 +272,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -400,7 +405,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -451,12 +455,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +477,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index 864156f6c6b2..ec33f77e3701 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -98,11 +98,11 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -146,12 +146,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -178,6 +178,11 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -212,7 +217,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -345,7 +350,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -421,12 +425,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +447,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs index 7f84eeb0d583..37dc1760a8aa 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs @@ -91,11 +91,11 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -186,12 +186,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -218,6 +218,11 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -253,7 +258,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -386,7 +391,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -437,12 +441,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -459,7 +463,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 4a5151de8431..30f8843a646a 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -99,11 +99,11 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -147,12 +147,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -179,6 +179,11 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -211,7 +216,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -344,7 +349,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -415,12 +419,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +441,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 2395ee2b9c95..4c657c2faf6a 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -104,11 +104,11 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -199,12 +199,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -231,6 +231,11 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -267,7 +272,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -400,7 +405,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -451,12 +455,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +477,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index 095bf709edef..18ffb9a6a31b 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -98,11 +98,11 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -146,12 +146,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -178,6 +178,11 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -210,7 +215,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -343,7 +348,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -418,12 +422,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -440,7 +444,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index ccb6ce1c84b7..a791e8851533 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -104,11 +104,11 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -199,12 +199,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -231,6 +231,11 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -267,7 +272,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -400,7 +405,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -451,12 +455,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +477,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 6ff543384d5c..474abbd9859d 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -98,11 +98,11 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -146,12 +146,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -178,6 +178,11 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -210,7 +215,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -343,7 +348,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -418,12 +422,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -440,7 +444,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_Delete.cs index 53a28ac35fef..6b31187aca80 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_Delete.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_Delete.cs @@ -88,11 +88,11 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -183,12 +183,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -215,6 +215,11 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -250,7 +255,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -383,7 +388,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -434,12 +438,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -456,7 +460,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/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs index df60a7654cdd..2167c4151546 100644 --- a/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/src/DnsResolver/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -96,11 +96,11 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -144,12 +144,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 @@ -176,6 +176,11 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -208,7 +213,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -341,7 +346,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -412,12 +416,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -434,7 +438,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/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index a8028cfd8479..d07b39f4e040 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -74,7 +77,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : SerializedName = @"forwardingRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState))] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => ParametersBody.ForwardingRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => ParametersBody.ForwardingRuleState = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => _parametersBody.ForwardingRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => _parametersBody.ForwardingRuleState = 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")] @@ -117,15 +120,15 @@ 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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -143,12 +146,6 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatch(); - - /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -211,38 +208,43 @@ 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.Api20200401Preview.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => ParametersBody.TargetDnsServer ?? null /* arrayOf */; set => ParametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -254,7 +256,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -357,7 +359,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -372,12 +373,12 @@ protected override void ProcessRecord() try { 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.ForwardingRulesUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.ForwardingRulesUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,DnsForwardingRulesetName=DnsForwardingRulesetName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -408,12 +409,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -430,15 +431,15 @@ 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); - 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 }) + 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 } }); } 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -448,12 +449,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -465,7 +466,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index 0ca0c32eaf9f..7aef2498baf5 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -60,7 +63,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit SerializedName = @"forwardingRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState))] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => ParametersBody.ForwardingRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => ParametersBody.ForwardingRuleState = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState ForwardingRuleState { get => _parametersBody.ForwardingRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); set => _parametersBody.ForwardingRuleState = 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")] @@ -111,23 +114,17 @@ 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.Api20200401Preview.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ForwardingRulePatch(); - - /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRulePatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -158,38 +155,43 @@ 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.Api20200401Preview.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] TargetDnsServer { get => ParametersBody.TargetDnsServer ?? null /* arrayOf */; set => ParametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -201,7 +203,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -304,7 +306,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -321,7 +322,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.ForwardingRulesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.ForwardingRulesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -342,13 +343,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ForwardingRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ForwardingRulesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, InputObject.ForwardingRuleName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.ForwardingRulesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, InputObject.ForwardingRuleName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -380,12 +381,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 +403,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -420,12 +421,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -437,7 +438,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index a24030deeead..4f995743ed49 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -110,15 +113,15 @@ 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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -144,12 +147,6 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatch(); - - /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -208,30 +205,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -259,7 +261,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsForwardingRulesetName = this.DnsForwardingRulesetName; @@ -271,7 +273,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -404,7 +406,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -419,12 +420,12 @@ protected override void ProcessRecord() try { 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.VirtualNetworkLinksUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.VirtualNetworkLinksUpdate(SubscriptionId, ResourceGroupName, DnsForwardingRulesetName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,DnsForwardingRulesetName=DnsForwardingRulesetName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -455,12 +456,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -477,15 +478,15 @@ 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); - 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 }) + 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 } }); } 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -495,12 +496,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -512,7 +513,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 52b10d842952..0c37ab84c255 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -104,15 +107,15 @@ 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.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ParametersBody.Metadata ?? null /* object */; set => ParametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -123,12 +126,6 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.VirtualNetworkLinkPatch(); - - /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLinkPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -155,30 +152,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -206,7 +208,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.IfMatch = this.IfMatch; return clone; } @@ -214,7 +216,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -347,7 +349,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -364,7 +365,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.VirtualNetworkLinksUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.VirtualNetworkLinksUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -385,13 +386,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.VirtualNetworkLinksUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, InputObject.VirtualNetworkLinkName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.VirtualNetworkLinksUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, InputObject.VirtualNetworkLinkName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -423,12 +424,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -445,15 +446,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -463,12 +464,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -480,7 +481,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index 4593e91d29a1..3afdecd416fc 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -55,6 +58,21 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// + /// 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. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "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.")] + [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 = @"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.Api20220701.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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")] [global::System.Management.Automation.ValidateNotNull] @@ -88,11 +106,11 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -118,12 +136,6 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatch(); - - /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -186,38 +198,43 @@ 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.Api20200401Preview.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -243,7 +260,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -254,7 +271,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -387,7 +404,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -402,12 +418,12 @@ protected override void ProcessRecord() try { 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.DnsForwardingRulesetsUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -438,12 +454,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -460,15 +476,15 @@ 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); - 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 }) + 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 } }); } 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -478,12 +494,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -495,7 +511,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index 9b93183b3735..e9527aa205c1 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -55,6 +58,21 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// + /// 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. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "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.")] + [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 = @"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.Api20220701.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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")] [global::System.Management.Automation.ValidateNotNull] @@ -96,11 +114,11 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -111,12 +129,6 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsForwardingRulesetPatch(); - - /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -147,38 +159,43 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRulesetPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -204,7 +221,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.IfMatch = this.IfMatch; return clone; } @@ -212,7 +229,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsForward /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -345,7 +362,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -362,7 +378,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.DnsForwardingRulesetsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -379,13 +395,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsForwardingRulesetName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.DnsForwardingRulesetsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsForwardingRulesetsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsForwardingRulesetName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -416,12 +432,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -438,15 +454,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -456,12 +472,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -473,7 +489,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index 70becf6e4072..8f34e37a8a25 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -102,11 +105,11 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -132,12 +135,6 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatch(); - - /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -200,38 +197,43 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -257,7 +259,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsResolverName = this.DnsResolverName; @@ -269,7 +271,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -402,7 +404,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -417,12 +418,12 @@ protected override void ProcessRecord() try { 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.InboundEndpointsUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.InboundEndpointsUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,DnsResolverName=DnsResolverName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -453,12 +454,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,15 +476,15 @@ 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); - 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 }) + 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 } }); } 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -493,12 +494,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -510,7 +511,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index bee70bdb2745..9dccfdab1e1a 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -96,11 +99,11 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -111,12 +114,6 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.InboundEndpointPatch(); - - /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -147,38 +144,43 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpointPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -206,7 +208,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.IfMatch = this.IfMatch; return clone; } @@ -214,7 +216,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -347,7 +349,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -364,7 +365,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.InboundEndpointsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.InboundEndpointsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -385,13 +386,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.InboundEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.InboundEndpointsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, InputObject.InboundEndpointName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.InboundEndpointsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, InputObject.InboundEndpointName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -422,12 +423,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -444,15 +445,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -462,12 +463,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -479,7 +480,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 7e3579cb2886..8fe65b71634c 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -102,11 +105,11 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -132,12 +135,6 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatch(); - - /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -200,38 +197,43 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -257,7 +259,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.DnsResolverName = this.DnsResolverName; @@ -269,7 +271,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -402,7 +404,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -417,12 +418,12 @@ protected override void ProcessRecord() try { 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.OutboundEndpointsUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.OutboundEndpointsUpdate(SubscriptionId, ResourceGroupName, DnsResolverName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,DnsResolverName=DnsResolverName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -453,12 +454,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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,15 +476,15 @@ 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); - 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 }) + 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 } }); } 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -493,12 +494,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -510,7 +511,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index 9185bf106d5c..f383db3e3ef5 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -96,11 +99,11 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -111,12 +114,6 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.OutboundEndpointPatch(); - - /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -147,38 +144,43 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpointPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -206,7 +208,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.IfMatch = this.IfMatch; return clone; } @@ -214,7 +216,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -347,7 +349,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -364,7 +365,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.OutboundEndpointsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.OutboundEndpointsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -385,13 +386,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OutboundEndpointName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.OutboundEndpointsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, InputObject.OutboundEndpointName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.OutboundEndpointsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, InputObject.OutboundEndpointName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -422,12 +423,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -444,15 +445,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -462,12 +463,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -479,7 +480,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs index 3a7c617dd492..0e27052ef2ea 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -88,11 +91,11 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -118,12 +121,6 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatch(); - - /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -186,38 +183,43 @@ 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.Api20200401Preview.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -243,7 +245,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -254,7 +256,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -387,7 +389,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -402,12 +403,12 @@ protected override void ProcessRecord() try { 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.DnsResolversUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -438,12 +439,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -460,15 +461,15 @@ 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); - 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 }) + 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 } }); } 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + 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, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -478,12 +479,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -495,7 +496,7 @@ public UpdateAzDnsResolver_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index 67de54936817..8231ee6b2de5 100644 --- a/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ 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.Api20200401Preview.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,9 @@ 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.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] @@ -96,11 +99,11 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -111,12 +114,6 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.DnsResolverPatch(); - - /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatch ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -147,38 +144,43 @@ 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.Api20200401Preview.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolverPatchTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -204,7 +206,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.IfMatch = this.IfMatch; return clone; } @@ -212,7 +214,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolve /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -345,7 +347,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -362,7 +363,7 @@ protected override void ProcessRecord() 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; } if (InputObject?.Id != null) { - await this.Client.DnsResolversUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -379,13 +380,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.DnsResolversUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DnsResolversUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, 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 { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -416,12 +417,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -438,15 +439,15 @@ 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); - 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 }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -456,12 +457,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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 ) { @@ -473,7 +474,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/generated/runtime/AsyncOperationResponse.cs b/src/DnsResolver/generated/runtime/AsyncOperationResponse.cs index 9ccaf8e12956..55dd3c3567d3 100644 --- a/src/DnsResolver/generated/runtime/AsyncOperationResponse.cs +++ b/src/DnsResolver/generated/runtime/AsyncOperationResponse.cs @@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets /// - /// Creates a new instance of , deserializing the content from a json string. + /// 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. + /// an instance of the model class. public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); } @@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the + /// 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 + /// true if the converter can convert the parameter to the /// parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to a type /// parameter. /// /// the instance to check if it can be converted to the - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DnsResolver/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/DnsResolver/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 13e250d9847b..d3cf533fd946 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/DnsResolver/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(@"0.1.6"); + string version = Convert.ToString(@"0.2.1"); // 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); diff --git a/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index 7e16f1da0e5b..ec58ddb721db 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 5f25439ca2a9..116ca757083c 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/DnsResolver/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/DnsResolver/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/DnsResolver/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index 8cf51f837ecb..378c26263049 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/DnsResolver/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/DnsResolver/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/DnsResolver/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ebd56cac6bf8..46106b207223 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/DnsResolver/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -168,19 +168,56 @@ public ParameterNameOutput(string parameterName, bool isLast) public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; } - internal class BeginOutput + internal class BaseOutput { public VariantGroup VariantGroup { get; } - public BeginOutput(VariantGroup variantGroup) + protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; } + public string ClearTelemetryContext() + { + return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; + } + } + + internal class BeginOutput : BaseOutput + { + public BeginOutput(VariantGroup variantGroup) : base(variantGroup) + { + } public string GetProcessCustomAttributesAtRuntime() { return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}}} +{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' +{Indent}{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"begin {{ {Indent}try {{ {Indent}{Indent}$outBuffer = $null @@ -188,6 +225,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -195,6 +233,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} }} @@ -231,28 +270,69 @@ private string GetDefaultValuesStatements() } } - internal class ProcessOutput + internal class ProcessOutput : BaseOutput { + public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetFinally() + { + if (IsAzure && !VariantGroup.IsInternal) + { + return $@" +{Indent}finally {{ +{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"process {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.Process($_) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} +{GetFinally()} }} - "; } - internal class EndOutput + internal class EndOutput : BaseOutput { + public EndOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}{Indent}}} +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId +"; + } + return ""; + } public override string ToString() => $@"end {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.End() +{GetTelemetry()} {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} -}} +}} "; } @@ -493,9 +573,9 @@ public static string ToSyntaxTypeName(this Type type) public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); - public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); - public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); @@ -524,7 +604,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool return ni.IsComplexInterface ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); return String.Join(Environment.NewLine, nested); } } diff --git a/src/DnsResolver/generated/runtime/BuildTime/PsHelpers.cs b/src/DnsResolver/generated/runtime/BuildTime/PsHelpers.cs index 6291e11b29e2..f52c67496d4e 100644 --- a/src/DnsResolver/generated/runtime/BuildTime/PsHelpers.cs +++ b/src/DnsResolver/generated/runtime/BuildTime/PsHelpers.cs @@ -39,9 +39,10 @@ public static IEnumerable GetModuleCmdlets(params string[] modulePa public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) { // https://stackoverflow.com/a/40969712/294804 + var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; var getCmdletsCommand = $@" $currentFunctions = Get-ChildItem function: -Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} "; return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); diff --git a/src/DnsResolver/generated/runtime/Customizations/IJsonSerializable.cs b/src/DnsResolver/generated/runtime/Customizations/IJsonSerializable.cs index a0154db4e056..565a652fc647 100644 --- a/src/DnsResolver/generated/runtime/Customizations/IJsonSerializable.cs +++ b/src/DnsResolver/generated/runtime/Customizations/IJsonSerializable.cs @@ -129,7 +129,7 @@ private static JsonNode TryToJsonValue(dynamic oValue) /// /// Serialize an object by using a variety of methods. /// - /// the object to be serialized. + /// the object to be serialized. /// the serialized JsonNode (if successful), otherwise, null internal static JsonNode ToJsonValue(object value) { diff --git a/src/DnsResolver/generated/runtime/EventDataExtensions.cs b/src/DnsResolver/generated/runtime/EventDataExtensions.cs index 2528d791fec1..99c3ecfdcd58 100644 --- a/src/DnsResolver/generated/runtime/EventDataExtensions.cs +++ b/src/DnsResolver/generated/runtime/EventDataExtensions.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { using System; - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] /// /// PowerShell-specific data on top of the llc# EventData /// @@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime /// Obviously, this code would need to be duplcated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] public partial class EventData : EventArgs { } diff --git a/src/DnsResolver/generated/runtime/ISendAsync.cs b/src/DnsResolver/generated/runtime/ISendAsync.cs index 016b4396484c..90c7f8c12503 100644 --- a/src/DnsResolver/generated/runtime/ISendAsync.cs +++ b/src/DnsResolver/generated/runtime/ISendAsync.cs @@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// Clones an HttpRequestMessage (without the content) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { @@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { /* **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); @@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } - + return clone; } @@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// Clones an HttpRequestMessage (including the content stream and content headers) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { diff --git a/src/DnsResolver/generated/runtime/MessageAttribute.cs b/src/DnsResolver/generated/runtime/MessageAttribute.cs index 45111be6cddc..f287dcb0999a 100644 --- a/src/DnsResolver/generated/runtime/MessageAttribute.cs +++ b/src/DnsResolver/generated/runtime/MessageAttribute.cs @@ -276,7 +276,7 @@ protected override string GetAttributeSpecificMessage() /// then the attribbute is applicable /// If the invocationInfo is null we return true /// - /// + /// /// bool public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) { diff --git a/src/DnsResolver/generated/runtime/PipelineMocking.cs b/src/DnsResolver/generated/runtime/PipelineMocking.cs index 4673ce6685e0..21aef17e2f70 100644 --- a/src/DnsResolver/generated/runtime/PipelineMocking.cs +++ b/src/DnsResolver/generated/runtime/PipelineMocking.cs @@ -259,4 +259,4 @@ public async Task SendAsync(HttpRequestMessage request, IEv } } } -} \ No newline at end of file +} diff --git a/src/DnsResolver/help/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/help/Get-AzDnsForwardingRuleset.md index a2fb0aaa761c..432b8f447381 100644 --- a/src/DnsResolver/help/Get-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/help/Get-AzDnsForwardingRuleset.md @@ -256,9 +256,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset ## NOTES @@ -269,7 +269,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md index 135a4302851b..74d123f899a8 100644 --- a/src/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ## NOTES @@ -192,7 +192,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md index 9320163d6c79..bc7a0a1d5ea3 100644 --- a/src/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ## NOTES @@ -192,7 +192,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Get-AzDnsResolver.md b/src/DnsResolver/help/Get-AzDnsResolver.md index 91d71e9e5a10..70850dfc2dd4 100644 --- a/src/DnsResolver/help/Get-AzDnsResolver.md +++ b/src/DnsResolver/help/Get-AzDnsResolver.md @@ -260,9 +260,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource ## NOTES @@ -273,7 +273,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md index d5d218305986..e62a777dff95 100644 --- a/src/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ## NOTES @@ -192,7 +192,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md index 09d8c25f1123..db3f89717665 100644 --- a/src/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md @@ -46,6 +46,7 @@ Name Type Etag sampleOutbound Microsoft.Network/dnsResolvers/outboundEndpoints "0a001a28-0000-0800-0000-60e3846a0000" sampleOutbound2 Microsoft.Network/dnsResolvers/outboundEndpoints "0a001a27-0000-0800-0000-60e3846a0000" ``` + This command gets all outbound endpoints under the DNS resolver in a resouce group. ### Example 2: Get single outbound endpoint by name @@ -180,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ## NOTES @@ -191,7 +192,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/New-AzDnsForwardingRuleset.md b/src/DnsResolver/help/New-AzDnsForwardingRuleset.md index a45d40f6a694..bddc7f20253d 100644 --- a/src/DnsResolver/help/New-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/help/New-AzDnsForwardingRuleset.md @@ -13,9 +13,9 @@ Creates or updates a DNS forwarding ruleset. ## SYNTAX ``` -New-AzDnsForwardingRuleset -Name -ResourceGroupName -Location - [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] - [-DnsResolverOutboundEndpoint ] [-Tag ] [-DefaultProfile ] [-AsJob] +New-AzDnsForwardingRuleset -Name -ResourceGroupName + -DnsResolverOutboundEndpoint -Location [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -89,11 +89,11 @@ The reference to the DNS resolver outbound endpoints that are used to route DNS To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -262,7 +262,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset ## NOTES @@ -273,8 +273,8 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -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. - - `[Id ]`: Resource ID. +`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. + - `Id `: Resource ID. ## RELATED LINKS diff --git a/src/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md index a344a3626cbd..08534c791440 100644 --- a/src/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md @@ -14,10 +14,10 @@ Creates or updates a forwarding rule in a DNS forwarding ruleset. ``` New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -Name - -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] - [-DomainName ] [-ForwardingRuleState ] [-Metadata ] - [-TargetDnsServer ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] + -ResourceGroupName -DomainName -TargetDnsServer + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-ForwardingRuleState ] [-Metadata ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -93,7 +93,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -214,11 +214,11 @@ DNS servers to forward the DNS query to. To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -263,7 +263,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ## NOTES @@ -274,8 +274,8 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -TARGETDNSSERVER : DNS servers to forward the DNS query to. - - `[IPAddress ]`: DNS server IP address. +`TARGETDNSSERVER `: DNS servers to forward the DNS query to. + - `IPAddress `: DNS server IP address. - `[Port ]`: DNS server port. ## RELATED LINKS diff --git a/src/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md index 940eb14d7fa1..78e6b9efe3ea 100644 --- a/src/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -14,9 +14,9 @@ Creates or updates a virtual network link to a DNS forwarding ruleset. ``` New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -Name - -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] - [-Metadata ] [-VirtualNetworkId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + -ResourceGroupName -VirtualNetworkId [-SubscriptionId ] [-IfMatch ] + [-IfNoneMatch ] [-Metadata ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -214,7 +214,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -259,7 +259,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/help/New-AzDnsResolver.md b/src/DnsResolver/help/New-AzDnsResolver.md index b8e4203216ed..31af71d3b4dd 100644 --- a/src/DnsResolver/help/New-AzDnsResolver.md +++ b/src/DnsResolver/help/New-AzDnsResolver.md @@ -13,8 +13,8 @@ Creates or updates a DNS resolver. ## SYNTAX ``` -New-AzDnsResolver -Name -ResourceGroupName -Location [-SubscriptionId ] - [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-VirtualNetworkId ] +New-AzDnsResolver -Name -ResourceGroupName -Location -VirtualNetworkId + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -213,7 +213,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -258,7 +258,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver ## NOTES diff --git a/src/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md b/src/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md index d678babd047a..2ea440660278 100644 --- a/src/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md +++ b/src/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md @@ -89,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration ## NOTES diff --git a/src/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md index 604608f46f09..9559d941f8e2 100644 --- a/src/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md @@ -14,9 +14,9 @@ Creates or updates an inbound endpoint for a DNS resolver. ``` New-AzDnsResolverInboundEndpoint -DnsResolverName -Name -ResourceGroupName - -Location [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] - [-IPConfiguration ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + -IPConfiguration -Location [-SubscriptionId ] [-IfMatch ] + [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -137,11 +137,11 @@ IP configurations for the inbound endpoint. To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -277,7 +277,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ## NOTES @@ -288,10 +288,10 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -IPCONFIGURATION : IP configurations for the inbound endpoint. +`IPCONFIGURATION `: IP configurations for the inbound endpoint. + - `SubnetId `: Resource ID. - `[PrivateIPAddress ]`: Private IP address of the IP configuration. - `[PrivateIPAllocationMethod ]`: Private IP address allocation method. - - `[SubnetId ]`: Resource ID. ## RELATED LINKS diff --git a/src/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md index 1b659adfb52b..c878d220b34e 100644 --- a/src/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md @@ -14,9 +14,8 @@ Creates or updates an outbound endpoint for a DNS resolver. ``` New-AzDnsResolverOutboundEndpoint -DnsResolverName -Name -ResourceGroupName - -Location [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] - [-SubnetId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + -Location -SubnetId [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -199,7 +198,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -274,7 +273,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md b/src/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md index 735be7705466..03877cfa89fa 100644 --- a/src/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md +++ b/src/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.TargetDnsServer +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer ## NOTES diff --git a/src/DnsResolver/help/Remove-AzDnsForwardingRuleset.md b/src/DnsResolver/help/Remove-AzDnsForwardingRuleset.md index 00ce1db52fe6..f0ed0082a6fc 100644 --- a/src/DnsResolver/help/Remove-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/help/Remove-AzDnsForwardingRuleset.md @@ -241,7 +241,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md index 869ea3245d7c..471655ef49d8 100644 --- a/src/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md @@ -225,7 +225,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md index faa0ce13ceed..2de7c27f362c 100644 --- a/src/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -254,7 +254,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Remove-AzDnsResolver.md b/src/DnsResolver/help/Remove-AzDnsResolver.md index b7b447e11ee5..50386b65dcbd 100644 --- a/src/DnsResolver/help/Remove-AzDnsResolver.md +++ b/src/DnsResolver/help/Remove-AzDnsResolver.md @@ -238,7 +238,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md index af2a1337d2cc..70a86bd5f2b6 100644 --- a/src/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md @@ -255,7 +255,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md index 0d938fc01eff..9bc03f9e40d8 100644 --- a/src/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md @@ -254,7 +254,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/help/Update-AzDnsForwardingRuleset.md index 8c914a0fa4a8..658eec909104 100644 --- a/src/DnsResolver/help/Update-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/help/Update-AzDnsForwardingRuleset.md @@ -15,14 +15,15 @@ Updates a DNS forwarding ruleset. ### UpdateExpanded (Default) ``` Update-AzDnsForwardingRuleset -Name -ResourceGroupName [-SubscriptionId ] - [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-IfMatch ] [-DnsResolverOutboundEndpoint ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzDnsForwardingRuleset -InputObject [-IfMatch ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzDnsForwardingRuleset -InputObject [-IfMatch ] + [-DnsResolverOutboundEndpoint ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -89,6 +90,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -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. +To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IfMatch ETag of the resource. Omit this value to always overwrite the current resource. @@ -238,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset ## NOTES @@ -249,7 +266,10 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`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. + - `Id `: Resource ID. + +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md index 8bfd81f1dc06..ee514eb7681a 100644 --- a/src/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md @@ -205,7 +205,7 @@ DNS servers to forward the DNS query to. To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -256,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ## NOTES @@ -267,7 +267,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. @@ -279,8 +279,8 @@ INPUTOBJECT ``: Identity Parameter - `[VirtualNetworkLinkName ]`: The name of the virtual network link. - `[VirtualNetworkName ]`: The name of the virtual network. -TARGETDNSSERVER : DNS servers to forward the DNS query to. - - `[IPAddress ]`: DNS server IP address. +`TARGETDNSSERVER `: DNS servers to forward the DNS query to. + - `IPAddress `: DNS server IP address. - `[Port ]`: DNS server port. ## RELATED LINKS diff --git a/src/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md index 1ac01324fbe7..90a03aa9bbf0 100644 --- a/src/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ## NOTES @@ -265,7 +265,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Update-AzDnsResolver.md b/src/DnsResolver/help/Update-AzDnsResolver.md index 75233b930d94..c72b03031042 100644 --- a/src/DnsResolver/help/Update-AzDnsResolver.md +++ b/src/DnsResolver/help/Update-AzDnsResolver.md @@ -53,6 +53,7 @@ Location Name Type Etag -------- ---- ---- ---- westus2 psdnsresolvername33nmy1fz Microsoft.Network/dnsResolvers "0000efd6-0000-0800-0000-60401c7c0000" ``` + This command updates an existing DNS Resolver by identity ( removing tag ). ## PARAMETERS @@ -236,7 +237,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver ## NOTES @@ -247,7 +248,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md index 2d6c9e8be0fe..6570b66f5346 100644 --- a/src/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md @@ -253,7 +253,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ## NOTES @@ -264,7 +264,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md index 3b23121b89e8..19a45532b2d2 100644 --- a/src/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md @@ -253,7 +253,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20200401Preview.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ## NOTES @@ -264,7 +264,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter - `[DnsForwardingRulesetName ]`: The name of the DNS forwarding ruleset. - `[DnsResolverName ]`: The name of the DNS resolver. - `[ForwardingRuleName ]`: The name of the forwarding rule. diff --git a/src/DnsResolver/internal/README.md b/src/DnsResolver/internal/README.md index 1fc4edc83f25..81697bc9dea8 100644 --- a/src/DnsResolver/internal/README.md +++ b/src/DnsResolver/internal/README.md @@ -1,5 +1,5 @@ # Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no @@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that The `Az.DnsResolver.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.DnsResolver`. Instead, this sub-module is imported by the `..\custom\Az.DnsResolver.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.DnsResolver.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose -This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.DnsResolver`. \ No newline at end of file +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.DnsResolver`. diff --git a/src/DnsResolver/test/Constants.ps1 b/src/DnsResolver/test/Constants.ps1 index 346953893e11..57c35dc50f84 100644 --- a/src/DnsResolver/test/Constants.ps1 +++ b/src/DnsResolver/test/Constants.ps1 @@ -1,4 +1,5 @@ $NRP_SIMULATOR_URI = "https://eastus2.test.azuremresolver.net:9002" $LOCATION = "eastus2" $SUBSCRIPTION_ID = "0e5a46b1-de0b-4ec3-a5d7-dda908b4e076" -$RESOURCE_GROUP_NAME = "rg-dev-eastus2-sdk-powershell" \ No newline at end of file +$RESOURCE_GROUP_NAME = "rg-dev-eastus2-sdk-powershell" +$SUBNET_NAME = "snet-sim2" \ No newline at end of file diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Recording.json index 4e543bdab1e2..1648c7aa4a56 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "cf83967e-b52a-42a0-b6ae-e08e3c7019e0" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "cac553af-736b-4ed9-8fee-25812a75eea5" ], "x-ms-correlation-request-id": [ "cac553af-736b-4ed9-8fee-25812a75eea5" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "da4a9944-4b1d-488d-8dfc-c91d532275f0" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "ba40130c-6667-4d21-abe9-3d38d7117428" ], "x-ms-correlation-request-id": [ "ba40130c-6667-4d21-abe9-3d38d7117428" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "afc5ed0f-7ef1-4a9f-ba45-70965d0f6dea" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "549e99bd-799c-4c6b-8d97-74ec6c3ab0c9" ], "x-ms-correlation-request-id": [ "549e99bd-799c-4c6b-8d97-74ec6c3ab0c9" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -466,10 +466,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -484,10 +484,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "bd665075-3b9a-426f-9cf2-326159b5e0fb" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "85e76d10-9144-4c62-bee6-64acbbdf9a64" ], "x-ms-correlation-request-id": [ "85e76d10-9144-4c62-bee6-64acbbdf9a64" ], @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -593,10 +593,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -611,10 +611,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "9b38fb39-3882-410e-b78f-4cb2a4005e8b" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "671ae013-acbc-425b-9225-6a44ccae1b7d" ], "x-ms-correlation-request-id": [ "671ae013-acbc-425b-9225-6a44ccae1b7d" ], @@ -634,10 +634,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -677,10 +677,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -720,10 +720,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -763,10 +763,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -781,10 +781,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "0d457bd6-8d89-4777-9f37-be96b39f8b75" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "3fdf9314-e653-4703-a6b2-1981031bd1b6" ], "x-ms-correlation-request-id": [ "3fdf9314-e653-4703-a6b2-1981031bd1b6" ], @@ -804,10 +804,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -847,10 +847,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -890,10 +890,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRuleset+[NoContext]+List all DNS forwarding ruleset under the resouce group, expect all DNS forwarding rulesets retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Tests.ps1 index 87e61ca21cbb..f38694f036b2 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsForwardingRuleset.Tests.ps1 @@ -26,9 +26,9 @@ function CreateDnsForwardingRuleset([String]$DnsForwardingRulesetName, [String]$ $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $DnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.id;} } @@ -41,7 +41,8 @@ Describe 'Get-AzDnsForwardingRuleset' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname28" $virtualNetworkName = "psvirtualnetworkname28"; $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" - + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; + CreateDnsForwardingRuleset -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName # ACT @@ -58,6 +59,7 @@ Describe 'Get-AzDnsForwardingRuleset' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname29" $virtualNetworkName = "psvirtualnetworkname29"; $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateDnsForwardingRuleset -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json index d5ce8e3c61f6..85d44ad340a4 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "b718ca58-402d-4ed7-a8c5-594ab132ede7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11993" ], "x-ms-request-id": [ "f6cc3030-1c09-4f81-bc11-93ff7de74702" ], "x-ms-correlation-request-id": [ "f6cc3030-1c09-4f81-bc11-93ff7de74702" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "e4a9ace4-4c5e-475e-be28-74e350d3e215" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "80d0b270-2318-45b6-b307-d7ac3ebf646c" ], "x-ms-correlation-request-id": [ "80d0b270-2318-45b6-b307-d7ac3ebf646c" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "4c23aca5-4dc2-418d-8160-a1aac838d8f3" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "0356898b-8196-4127-ad5d-d15134850382" ], "x-ms-correlation-request-id": [ "0356898b-8196-4127-ad5d-d15134850382" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"domainName\": \"psdomainName40.com.\",\r\n \"targetDnsServers\": [\r\n {\r\n \"ipAddress\": \"10.0.0.3\",\r\n \"port\": 53\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -461,10 +461,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2020-04-01-preview+12": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -504,10 +504,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -522,10 +522,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "a728dacd-84c3-4159-99c6-ae1df2e579d4" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11992" ], "x-ms-request-id": [ "a5ac921c-1e0d-4b7a-9bab-53e4fb1d0687" ], "x-ms-correlation-request-id": [ "a5ac921c-1e0d-4b7a-9bab-53e4fb1d0687" ], @@ -545,10 +545,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -588,10 +588,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -631,10 +631,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -649,10 +649,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "9a6a1333-c4d5-4836-b03b-2cec8e968699" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "a0b2742b-1543-4a5c-9e02-62b13ff61be7" ], "x-ms-correlation-request-id": [ "a0b2742b-1543-4a5c-9e02-62b13ff61be7" ], @@ -672,10 +672,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -715,10 +715,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -758,10 +758,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -801,10 +801,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -819,10 +819,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7b649c5d-db27-431a-9de8-2320a74f526e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "bb94d483-f9c7-4e70-979b-7ef7ad3edc42" ], "x-ms-correlation-request-id": [ "bb94d483-f9c7-4e70-979b-7ef7ad3edc42" ], @@ -842,10 +842,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -885,10 +885,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -928,10 +928,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"domainName\": \"psdomainName41.com.\",\r\n \"targetDnsServers\": [\r\n {\r\n \"ipAddress\": \"10.0.0.3\",\r\n \"port\": 53\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -966,10 +966,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2020-04-01-preview+12": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Tests.ps1 index 520a59fbb48f..813a8e9810f6 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsForwardingRulesetForwardingRule.Tests.ps1 @@ -26,9 +26,9 @@ function CreateForwardingRule([String]$ForwardingRuleName, [String]$DomainName, $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $DnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.id;} @@ -45,6 +45,8 @@ Describe 'Get-AzDnsForwardingRulesetForwardingRule' { $forwardingRuleName = "psdnsforwardingrulename40"; $domainName = "psdomainName40.com." $virtualNetworkName = "psvirtualnetworkname40"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateForwardingRule -ForwardingRuleName $forwardingRuleName -DomainName $domainName -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName @@ -63,6 +65,8 @@ Describe 'Get-AzDnsForwardingRulesetForwardingRule' { $forwardingRuleName = "psdnsforwardingrulename41"; $domainName = "psdomainName41.com." $virtualNetworkName = "psvirtualnetworkname41"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateForwardingRule -ForwardingRuleName $forwardingRuleName -DomainName $domainName -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index 9984c5769bb7..dbe3d3f960f6 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "759060b4-34d5-4092-a4d9-f0668d10acae" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "5847a3ca-2d32-4856-943f-81280fd80d1e" ], "x-ms-correlation-request-id": [ "5847a3ca-2d32-4856-943f-81280fd80d1e" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "a57bb1d6-b9b5-4be5-be78-7563dfc01c40" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "d154c259-390b-43fe-a58e-0d58ee6b7337" ], "x-ms-correlation-request-id": [ "d154c259-390b-43fe-a58e-0d58ee6b7337" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "711c9280-e451-4b61-a7d9-ada881cb8c9e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "05b27117-4601-42bb-98f1-9f23bff17e28" ], "x-ms-correlation-request-id": [ "05b27117-4601-42bb-98f1-9f23bff17e28" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -441,10 +441,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "17ee49e8-070c-4067-aeab-914e28714be4" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e6bbc1fa-3e3e-426f-aeb7-580da67c6930" ], "x-ms-correlation-request-id": [ "e6bbc1fa-3e3e-426f-aeb7-580da67c6930" ], @@ -464,10 +464,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2020-04-01-preview+12": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview+13": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview+14": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -593,10 +593,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2020-04-01-preview+1": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -611,10 +611,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "36492689-02c7-435c-9874-925450538ca0" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "cb8d20a6-005c-473d-bd3c-20a4f3ff91af" ], "x-ms-correlation-request-id": [ "cb8d20a6-005c-473d-bd3c-20a4f3ff91af" ], @@ -634,10 +634,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -677,10 +677,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2020-04-01-preview+3": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -720,10 +720,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2020-04-01-preview+4": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -738,10 +738,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d310238d-9b37-4278-a159-d959cbe9a553" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "cd810955-b852-49de-a0b7-f75fb3fcb38d" ], "x-ms-correlation-request-id": [ "cd810955-b852-49de-a0b7-f75fb3fcb38d" ], @@ -761,10 +761,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -804,10 +804,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -847,10 +847,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2020-04-01-preview+7": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -890,10 +890,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2020-04-01-preview+8": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -908,10 +908,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "dd0cdb0d-75d2-4f0a-914e-dc2c92564b4c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "761e5b82-5c5b-421c-902c-e0a6941091db" ], "x-ms-correlation-request-id": [ "761e5b82-5c5b-421c-902c-e0a6941091db" ], @@ -931,10 +931,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2020-04-01-preview+9": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -974,10 +974,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2020-04-01-preview+10": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1017,10 +1017,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2020-04-01-preview+11": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -1035,10 +1035,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7ad427c0-3627-473f-ac18-d64ff1915103" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "29c80a52-9ebf-4db5-9a7e-ac8488375780" ], "x-ms-correlation-request-id": [ "29c80a52-9ebf-4db5-9a7e-ac8488375780" ], @@ -1058,10 +1058,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2020-04-01-preview+12": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1101,10 +1101,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2020-04-01-preview+13": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1144,10 +1144,10 @@ "isContentBase64": false } }, - "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2020-04-01-preview+14": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+List all virtual network links under the DNS forwarding ruleset, expect all virtual network links retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2022-07-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 index 54c772767bc4..a6c58dca8235 100644 --- a/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 @@ -26,13 +26,13 @@ function CreateVirtualNetworkLink([String]$VirtualNetworkLinkName, [String]$DnsF $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $OutboundEndpointName -DnsResolverName $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $DnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.id;} - New-AzDnsForwardingRulesetVirtualNetworkLink -Name $virtualNetworkLinkName -DnsForwardingRulesetName $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id + New-AzDnsForwardingRulesetVirtualNetworkLink -Name $virtualNetworkLinkName -DnsForwardingRulesetName $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId } Describe 'Get-AzDnsForwardingRulesetVirtualNetworkLink' { @@ -43,6 +43,8 @@ Describe 'Get-AzDnsForwardingRulesetVirtualNetworkLink' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname45"; $virtualNetworkLinkName = "psdnsvirtualnetworklinkname45"; $virtualNetworkName = "psvirtualnetworkname45"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateVirtualNetworkLink -VirtualNetworkLinkName $virtualNetworkLinkName -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName @@ -60,6 +62,8 @@ Describe 'Get-AzDnsForwardingRulesetVirtualNetworkLink' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname46"; $virtualNetworkLinkName = "psdnsvirtualnetworklinkname46"; $virtualNetworkName = "psvirtualnetworkname46"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateVirtualNetworkLink -VirtualNetworkLinkName $virtualNetworkLinkName -DnsForwardingRulesetName $dnsForwardingRulesetName -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/Get-AzDnsResolver.Recording.json b/src/DnsResolver/test/Get-AzDnsResolver.Recording.json index ef461e0352c6..33cb31828738 100644 --- a/src/DnsResolver/test/Get-AzDnsResolver.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsResolver.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "256a3c44-a52d-436b-82fc-813b3a960e1c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11985" ], "x-ms-request-id": [ "28e83fd3-83c2-415a-a0f0-837f6ccb1da8" ], "x-ms-correlation-request-id": [ "28e83fd3-83c2-415a-a0f0-837f6ccb1da8" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -187,10 +187,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "881c3fa5-6923-4781-a124-2ad9f7eaa915" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11984" ], "x-ms-request-id": [ "37530922-72c2-4328-846d-be773aa43beb" ], "x-ms-correlation-request-id": [ "37530922-72c2-4328-846d-be773aa43beb" ], @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2022-07-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsResolver.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsResolver.Tests.ps1 index ff43d851b43b..fe56e8781f3c 100644 --- a/src/DnsResolver/test/Get-AzDnsResolver.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsResolver.Tests.ps1 @@ -24,10 +24,9 @@ function CreateDnsResolver([String]$DnsResolverName, [String]$VirtualNetworkName if ($TestMode -eq "Record") { $virtualNetwork = CreateVirtualNetwork -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; - $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION } Describe 'Get-AzDnsResolver' { @@ -35,6 +34,7 @@ Describe 'Get-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername62"; $virtualNetworkName = "psvirtualnetworkname62"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" CreateDnsResolver -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName @@ -49,6 +49,7 @@ Describe 'Get-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername63"; $virtualNetworkName = "psvirtualnetworkname63"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" CreateDnsResolver -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Recording.json index c70f9eafc9a8..05af342c88cd 100644 --- a/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "c61f1cc5-ac32-4ee5-ab92-10ebfbd13014" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e62ca4b5-9a6c-4f65-a276-27c03bd96994" ], "x-ms-correlation-request-id": [ "e62ca4b5-9a6c-4f65-a276-27c03bd96994" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17/subnets/snet-sim2\"\r\n },\r\n \"privateIpAddress\": \"\",\r\n \"privateIpAllocationMethod\": \"Dynamic\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "631ee247-c865-445b-a978-a19df2cf1c55" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "80217f6f-76af-4612-b9cb-3f382b36e5f6" ], "x-ms-correlation-request-id": [ "80217f6f-76af-4612-b9cb-3f382b36e5f6" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview+5": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview+6": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview+7": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview+8": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -339,10 +339,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -357,10 +357,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "56bc1091-aa7c-4b43-8c18-c965b2341b77" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "84a5b8cd-25fe-40be-ae85-71b7b35b8ea9" ], "x-ms-correlation-request-id": [ "84a5b8cd-25fe-40be-ae85-71b7b35b8ea9" ], @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -466,10 +466,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18/subnets/snet-sim2\"\r\n },\r\n \"privateIpAddress\": \"\",\r\n \"privateIpAllocationMethod\": \"Dynamic\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -484,10 +484,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "b4da85cd-575b-410e-beaa-403f6a63b182" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "cce9d908-55e1-4c0e-9c8f-606a595c9b20" ], "x-ms-correlation-request-id": [ "cce9d908-55e1-4c0e-9c8f-606a595c9b20" ], @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview+5": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview+6": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -593,10 +593,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2020-04-01-preview+7": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -636,10 +636,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2020-04-01-preview+8": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+List Inbound Endpoints under a DNS Resolver name, expected exact number of inbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2022-07-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Tests.ps1 index c5df8205dda2..8916d42881e7 100644 --- a/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsResolverInboundEndpoint.Tests.ps1 @@ -27,9 +27,9 @@ function CreateInboundEndpoint([String]$InboundEndpointName, [String]$DnsResolve $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId New-AzDnsResolverInboundEndpoint -DnsResolverName $DnsResolverName -Name $InboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -IPConfiguration $ipConfiguration -Location $LOCATION } @@ -39,6 +39,8 @@ Describe 'Get-AzDnsResolverInboundEndpoint' { $dnsResolverName = "psdnsresolvername17"; $inboundEndpointName = "psinboundendpointname17"; $virtualNetworkName = "psvirtualnetworkname17"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateInboundEndpoint -InboundEndpointName $inboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName @@ -54,6 +56,8 @@ Describe 'Get-AzDnsResolverInboundEndpoint' { $dnsResolverName = "psdnsresolvername18"; $inboundEndpointName = "psinboundendpointname18"; $virtualNetworkName = "psvirtualnetworkname18"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateInboundEndpoint -InboundEndpointName $inboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Recording.json index 64fc97bf9978..3863a733cb7b 100644 --- a/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "91e797e6-3325-450a-9c27-2f5527864184" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "30134838-ebab-466b-99b8-af37ae1376ef" ], "x-ms-correlation-request-id": [ "30134838-ebab-466b-99b8-af37ae1376ef" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2022-07-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview+5": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01+5": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -187,10 +187,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "dc552dbb-ff10-4718-856e-7aa5b8530ff2" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e2e0e4cc-74b7-4ec2-b675-94892db09d1b" ], "x-ms-correlation-request-id": [ "e2e0e4cc-74b7-4ec2-b675-94892db09d1b" ], @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview+7": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview+8": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -339,10 +339,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview+9": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -382,10 +382,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2020-04-01-preview+1": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -400,10 +400,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d71817bd-e036-4938-a76e-e467de647e39" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11996" ], "x-ms-request-id": [ "3ce8439c-d587-4066-9ab1-0737db78854d" ], "x-ms-correlation-request-id": [ "3ce8439c-d587-4066-9ab1-0737db78854d" ], @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2020-04-01-preview+2": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -466,10 +466,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2020-04-01-preview+3": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -509,10 +509,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2020-04-01-preview+4": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -527,10 +527,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7bf21e25-505f-4520-937e-1e4b083d9678" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "5cefe4f4-8718-4f4e-858a-ee12d6d7a60b" ], "x-ms-correlation-request-id": [ "5cefe4f4-8718-4f4e-858a-ee12d6d7a60b" ], @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview+5": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -593,10 +593,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview+6": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -636,10 +636,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2020-04-01-preview+7": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -679,10 +679,10 @@ "isContentBase64": false } }, - "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2020-04-01-preview+8": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+List Outbound Endpoints under a DNS Resolver name, expected exact number of outbound endpoints retrieved+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2022-07-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Tests.ps1 index 849afc50a793..4f716c8056da 100644 --- a/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Get-AzDnsResolverOutboundEndpoint.Tests.ps1 @@ -27,9 +27,9 @@ function CreateOutboundEndpoint([String]$OutboundEndpointName, [String]$DnsResol $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $VirtualNetworkName; } - New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $DnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - New-AzDnsResolverOutboundEndpoint -DnsResolverName $DnsResolverName -Name $OutboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolverOutboundEndpoint -DnsResolverName $DnsResolverName -Name $OutboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION } Describe 'Get-AzDnsResolverOutboundEndpoint' { @@ -38,6 +38,8 @@ Describe 'Get-AzDnsResolverOutboundEndpoint' { $dnsResolverName = "psdnsresolvername21"; $outboundEndpointName = "psoutboundendpointname21"; $virtualNetworkName = "psvirtualnetworkname21"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateOutboundEndpoint -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName @@ -53,6 +55,8 @@ Describe 'Get-AzDnsResolverOutboundEndpoint' { $dnsResolverName = "psdnsresolvername22"; $outboundEndpointName = "psoutboundendpointname22"; $virtualNetworkName = "psvirtualnetworkname22"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; CreateOutboundEndpoint -OutboundEndpointName $outboundEndpointName -DnsResolverName $dnsResolverName -VirtualNetworkName $virtualNetworkName diff --git a/src/DnsResolver/test/New-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/test/New-AzDnsForwardingRuleset.Recording.json index 62f5c6ff7d5d..077275511044 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/test/New-AzDnsForwardingRuleset.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2020-04-01-preview+1": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "3b37ed28-545b-489a-81ce-20719347d004" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "100014a9-647c-4d23-ae5b-3e81a7ade180" ], "x-ms-correlation-request-id": [ "100014a9-647c-4d23-ae5b-3e81a7ade180" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2020-04-01-preview+3": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2020-04-01-preview+4": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "0acefa04-fc62-45b1-8c0f-227277481559" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "5385d5f9-2fa7-4300-9949-b85c8f7cbe18" ], "x-ms-correlation-request-id": [ "5385d5f9-2fa7-4300-9949-b85c8f7cbe18" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview+5": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview+6": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2020-04-01-preview+7": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2020-04-01-preview+8": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7eaeb256-b6d8-45a9-8df0-ff054c436734" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "51677311-d03d-4a2b-94c3-97e79d56220f" ], "x-ms-correlation-request-id": [ "51677311-d03d-4a2b-94c3-97e79d56220f" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2020-04-01-preview+9": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2020-04-01-preview+10": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsForwardingRuleset.Tests.ps1 b/src/DnsResolver/test/New-AzDnsForwardingRuleset.Tests.ps1 index 7980e3e93b3e..5d191229cc1c 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRuleset.Tests.ps1 +++ b/src/DnsResolver/test/New-AzDnsForwardingRuleset.Tests.ps1 @@ -23,6 +23,8 @@ Describe 'New-AzDnsForwardingRuleset' { $outboundEndpointName = "psoutboundendpointname24"; $dnsForwardingRulesetName = "psdnsforwardingrulesetname24"; $virtualNetworkName = "psvirtualnetworkname24"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -30,8 +32,8 @@ Describe 'New-AzDnsForwardingRuleset' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION # ACT $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} diff --git a/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json index 0e62de9e3c1f..dae099cae194 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2020-04-01-preview+1": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "1ef0bfa6-9f47-4273-bad5-0acefb68da62" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11991" ], "x-ms-request-id": [ "14e1d83b-db6d-43bc-b724-9eef690512c8" ], "x-ms-correlation-request-id": [ "14e1d83b-db6d-43bc-b724-9eef690512c8" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2020-04-01-preview+3": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2020-04-01-preview+4": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7b03a57e-e103-48bf-9c2a-4a93db76d2f6" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11996" ], "x-ms-request-id": [ "67f0aae8-e47c-4241-8da4-a8fcf0fce73f" ], "x-ms-correlation-request-id": [ "67f0aae8-e47c-4241-8da4-a8fcf0fce73f" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview+5": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview+6": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2020-04-01-preview+7": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2020-04-01-preview+8": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "ef4f8671-70c2-49a1-9d01-4fea6e13c7ea" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11996" ], "x-ms-request-id": [ "c673fb15-89a6-42f4-bb7c-613bcfd76f23" ], "x-ms-correlation-request-id": [ "c673fb15-89a6-42f4-bb7c-613bcfd76f23" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2020-04-01-preview+9": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2020-04-01-preview+10": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2020-04-01-preview+11": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"domainName\": \"psdomainName39.com.\",\r\n \"targetDnsServers\": [\r\n {\r\n \"ipAddress\": \"10.0.0.3\",\r\n \"port\": 53\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Tests.ps1 b/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Tests.ps1 index 8a42bc33e6c1..e7fea46bd9fa 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Tests.ps1 +++ b/src/DnsResolver/test/New-AzDnsForwardingRulesetForwardingRule.Tests.ps1 @@ -24,6 +24,8 @@ Describe 'New-AzDnsForwardingRulesetForwardingRule' { $forwardingRuleName = "psdnsforwardingrulename39"; $domainName = "psdomainName39.com." $virtualNetworkName = "psvirtualnetworkname39"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -31,8 +33,8 @@ Describe 'New-AzDnsForwardingRulesetForwardingRule' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} $targetDnsServer = New-AzDnsResolverTargetDnsServerObject -IPAddress 10.0.0.3 diff --git a/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index ba9551117fd6..9b802e40dde5 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2020-04-01-preview+1": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "8bb29308-558b-4e36-b4d9-d434b7b2b22e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11993" ], "x-ms-request-id": [ "b1e15625-1957-4942-985b-140b693d847b" ], "x-ms-correlation-request-id": [ "b1e15625-1957-4942-985b-140b693d847b" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2020-04-01-preview+3": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2020-04-01-preview+4": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "b94297b1-ac3a-48de-b933-a47614a9b218" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "36b4181e-dbd5-4b2d-aa62-ce670f0feb5f" ], "x-ms-correlation-request-id": [ "36b4181e-dbd5-4b2d-aa62-ce670f0feb5f" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview+5": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview+6": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2020-04-01-preview+7": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2020-04-01-preview+8": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "2afa7ed7-d6d6-48de-bb65-5ba97cf449ff" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "a721bd10-06af-44c5-b4f2-9318536c1f4b" ], "x-ms-correlation-request-id": [ "a721bd10-06af-44c5-b4f2-9318536c1f4b" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2020-04-01-preview+9": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2020-04-01-preview+10": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2020-04-01-preview+11": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -441,10 +441,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "29410c9c-2b55-46b0-86e2-1b36cc057b11" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e8348aa8-dcbb-4111-a6a1-f4f0f883b525" ], "x-ms-correlation-request-id": [ "e8348aa8-dcbb-4111-a6a1-f4f0f883b525" ], @@ -464,10 +464,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2020-04-01-preview+12": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2020-04-01-preview+13": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 index da2871314a28..6835e9f0078c 100644 --- a/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 +++ b/src/DnsResolver/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 @@ -23,6 +23,8 @@ Describe 'New-AzDnsForwardingRulesetVirtualNetworkLink' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname43"; $virtualNetworkLinkName = "psvirtualnetworklinkname43"; $virtualNetworkName = "psvirtualnetworkname43"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -30,12 +32,12 @@ Describe 'New-AzDnsForwardingRulesetVirtualNetworkLink' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} # ACT - $virtualNetworkLink = New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id + $virtualNetworkLink = New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId # ASSERT $virtualNetworkLink | Should -BeSuccessfullyCreatedVirtualNetworkLink diff --git a/src/DnsResolver/test/New-AzDnsResolver.Recording.json b/src/DnsResolver/test/New-AzDnsResolver.Recording.json index a01fcd0afebd..510f4fd76465 100644 --- a/src/DnsResolver/test/New-AzDnsResolver.Recording.json +++ b/src/DnsResolver/test/New-AzDnsResolver.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2020-04-01-preview+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2022-07-01", "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0879evh\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d75fa07f-ad0c-4022-a902-e7f8374b0938" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2022-07-01" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "2376ac15-a534-4d9b-9a66-7521907ca11a" ], @@ -38,10 +38,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2020-04-01-preview+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -122,10 +122,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a malformed virtual network ARM ID+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2020-04-01-preview+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a malformed virtual network ARM ID+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2022-07-01", "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -161,10 +161,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2020-04-01-preview+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"keyd2epq\": \"valued2epq\",\r\n \"key41to6\": \"value41to6\",\r\n \"keyi53q9\": \"valuei53q9\"\r\n },\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -179,10 +179,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "4aec5637-0e17-4fd2-b62a-f5a3e080dfd8" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2022-07-01" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "307c63f8-f4c0-4093-9171-55bf6a0f2f48" ], @@ -200,10 +200,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -242,10 +242,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2020-04-01-preview+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -284,10 +284,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2020-04-01-preview+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2022-07-01", "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9aywbo511111\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -302,10 +302,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "5aa52dc3-1aab-4dee-ab46-8789f24f4916" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2022-07-01" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "f0593230-7fd6-4c36-b776-d8eb8b50c493" ], @@ -323,10 +323,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -365,10 +365,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2020-04-01-preview+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -407,10 +407,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview+1": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01", "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -425,10 +425,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "c1ac1ef9-fb94-4c20-9d7b-9f5f40926d24" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2022-07-01" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "a1cb5f17-70ee-4a28-94e2-e80fa38071b0" ], @@ -446,10 +446,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -488,10 +488,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview+3": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -530,10 +530,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview+4": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"keyk6lei\": \"valuek6lei\",\r\n \"keyylaxi\": \"valueylaxi\",\r\n \"keyujexh\": \"valueujexh\"\r\n },\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -548,10 +548,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "1f586a06-90af-42ae-a65b-bc15fae40435" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2022-07-01" ], "Server": [ "Kestrel" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11996" ], "x-ms-request-id": [ "4af0c44e-d5c0-4ae8-bf5f-ada0006c80c7" ], @@ -569,10 +569,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2020-04-01-preview+5": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -611,10 +611,10 @@ "isContentBase64": false } }, - "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview+6": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Recording.json index fbb1e142cc7e..6fd0e80011ec 100644 --- a/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2020-04-01-preview+1": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "fd10d2a2-c82c-4840-818b-a725c0259263" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "297ad2e0-91d7-424a-b44a-0450284b6bf5" ], "x-ms-correlation-request-id": [ "297ad2e0-91d7-424a-b44a-0450284b6bf5" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2020-04-01-preview+3": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2020-04-01-preview+4": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15/subnets/snet-sim2\"\r\n },\r\n \"privateIpAddress\": \"\",\r\n \"privateIpAllocationMethod\": \"Dynamic\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "5e6cb13b-b275-415d-ae71-e4d2d0cf3c1c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "7bf84893-0563-4b94-a6ea-654fa03d8117" ], "x-ms-correlation-request-id": [ "7bf84893-0563-4b94-a6ea-654fa03d8117" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview+5": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview+6": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2020-04-01-preview+7": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Tests.ps1 b/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Tests.ps1 index 6c8b531625b4..ac258766c6d3 100644 --- a/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/New-AzDnsResolverInboundEndpoint.Tests.ps1 @@ -24,6 +24,8 @@ Describe 'New-AzDnsResolverInboundEndpoint' { $dnsResolverName = "psdnsresolvername15"; $inboundEndpointName = "psinboundendpointname15"; $virtualNetworkName = "psvirtualnetworkname15"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -31,8 +33,8 @@ Describe 'New-AzDnsResolverInboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId # ACT $inboundEndpoint = New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -IPConfiguration $ipConfiguration -Location $LOCATION diff --git a/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Recording.json index fb24e56976bc..cf4351616514 100644 --- a/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2020-04-01-preview+1": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "79c1bbe6-b872-48e2-b7db-666b348cf353" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e5bf9b02-7e58-441e-9c75-f700dbd5eb0e" ], "x-ms-correlation-request-id": [ "e5bf9b02-7e58-441e-9c75-f700dbd5eb0e" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2020-04-01-preview+2": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2020-04-01-preview+3": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2020-04-01-preview+4": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "2089d60e-fb0f-4a5f-85b0-7914bda1fb74" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "0a747eff-464d-490b-a110-c97d63695209" ], "x-ms-correlation-request-id": [ "0a747eff-464d-490b-a110-c97d63695209" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview+5": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview+6": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2020-04-01-preview+7": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Tests.ps1 b/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Tests.ps1 index 765ab779c442..436303c8a3e8 100644 --- a/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/New-AzDnsResolverOutboundEndpoint.Tests.ps1 @@ -21,6 +21,8 @@ Describe 'New-AzDnsResolverOutboundEndpoint' { $dnsResolverName = "psdnsresolvername20"; $outboundEndpointName = "psoutboundendpointname20"; $virtualNetworkName = "psvirtualnetworkname20"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -28,10 +30,10 @@ Describe 'New-AzDnsResolverOutboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION # ACT - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION # ASSERT $outboundEndpoint | Should -BeSuccessfullyCreatedOutboundEndpoint diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Recording.json index e0253371c9c1..c14a3b850792 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2020-04-01-preview+1": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "b28b021e-a4a3-41db-b296-70871911e3c4" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11983" ], "x-ms-request-id": [ "816306cf-8e7f-4f00-94a9-daea3cc54043" ], "x-ms-correlation-request-id": [ "816306cf-8e7f-4f00-94a9-daea3cc54043" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2020-04-01-preview+3": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2020-04-01-preview+4": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "3e678923-df72-44fe-842b-2f29d05d3718" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "56690a1a-7326-4ce3-ac52-2ede4971dea6" ], "x-ms-correlation-request-id": [ "56690a1a-7326-4ce3-ac52-2ede4971dea6" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview+5": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview+6": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2020-04-01-preview+7": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview+8": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,11 +314,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-activity-id": [ "528b0da2-b4f6-4f97-b3c7-db45c1ba5852" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2022-07-01" ], "x-ms-request-id": [ "9fd5e9c8-d9b5-4639-bd4f-5201b03cef9e" ], "x-ms-correlation-request-id": [ "9fd5e9c8-d9b5-4639-bd4f-5201b03cef9e" ], "x-ms-routing-request-id": [ "CENTRALUS:20220216T184653Z:9fd5e9c8-d9b5-4639-bd4f-5201b03cef9e" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2020-04-01-preview+9": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview+10": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview+11": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01+11": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -446,10 +446,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d1962e71-73b8-4f19-a2f2-07a5143389a3" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "4f7a073b-7742-4851-96e4-3f8b77745a40" ], "x-ms-correlation-request-id": [ "4f7a073b-7742-4851-96e4-3f8b77745a40" ], @@ -468,10 +468,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview+12": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -511,10 +511,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview+13": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -553,10 +553,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview+14": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Tests.ps1 index a472ae1440bc..b245d5e87a4a 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRuleset.Tests.ps1 @@ -23,6 +23,8 @@ Describe 'Remove-AzDnsForwardingRuleset' { $outboundEndpointName = "psoutboundendpointname30"; $dnsForwardingRulesetName = "psdnsforwardingrulesetname30" $virtualNetworkName = "psvirtualnetworkname30"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -30,10 +32,10 @@ Describe 'Remove-AzDnsForwardingRuleset' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $outboundEndpointName -DnsResolverName $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubscriptionId $SUBSCRIPTION_ID -SubnetId $subnet.id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $outboundEndpointName -DnsResolverName $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubscriptionId $SUBSCRIPTION_ID -SubnetId $subnetId -Location $LOCATION $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.id;} diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json index 17ad1eb1729e..abd3eb391de2 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2020-04-01-preview+1": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "7aab14f6-857e-491f-aa4c-4804baedf6c0" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11994" ], "x-ms-request-id": [ "75f900b7-8af5-44c8-8915-7de537237746" ], "x-ms-correlation-request-id": [ "75f900b7-8af5-44c8-8915-7de537237746" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2020-04-01-preview+3": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2020-04-01-preview+4": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "417a6e0c-a354-4b65-9144-83985bb58caa" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "7994e458-f8e3-49f4-bd39-cbebcd5c8d9a" ], "x-ms-correlation-request-id": [ "7994e458-f8e3-49f4-bd39-cbebcd5c8d9a" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview+5": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview+6": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2020-04-01-preview+7": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2020-04-01-preview+8": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "cb2ea877-e93f-422e-bba3-58e78216b1e9" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "a9cc27b3-1764-4469-90f3-7f315b51cfd4" ], "x-ms-correlation-request-id": [ "a9cc27b3-1764-4469-90f3-7f315b51cfd4" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2020-04-01-preview+9": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2020-04-01-preview+10": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview+11": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"domainName\": \"psdomainName42.com.\",\r\n \"targetDnsServers\": [\r\n {\r\n \"ipAddress\": \"10.0.0.3\",\r\n \"port\": 53\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -461,10 +461,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview+12": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01+12": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -503,10 +503,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview+13": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Tests.ps1 index 624e9134cd4b..06daedb6483a 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetForwardingRule.Tests.ps1 @@ -24,6 +24,8 @@ Describe 'Remove-AzDnsForwardingRulesetForwardingRule' { $forwardingRuleName = "psdnsforwardingrulename42"; $domainName = "psdomainName42.com." $virtualNetworkName = "psvirtualnetworkname42"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -31,9 +33,9 @@ Describe 'Remove-AzDnsForwardingRulesetForwardingRule' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $outboundEndpointName -DnsResolverName $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubscriptionId $SUBSCRIPTION_ID -SubnetId $subnet.id -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -Name $outboundEndpointName -DnsResolverName $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -SubscriptionId $SUBSCRIPTION_ID -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.id;} diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index 4ab7dfe301b6..8a90e470a0f0 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2020-04-01-preview+1": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "a26d9715-f6fb-4e49-95f3-1a97a498c68c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11994" ], "x-ms-request-id": [ "a00d7440-c329-4bd7-bffe-5c425b79167a" ], "x-ms-correlation-request-id": [ "a00d7440-c329-4bd7-bffe-5c425b79167a" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2020-04-01-preview+3": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2020-04-01-preview+4": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "c2b3e73a-ec18-4dc6-8051-c777d1654fd9" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "39ac512f-211f-4a58-8d54-fcaa05a2d805" ], "x-ms-correlation-request-id": [ "39ac512f-211f-4a58-8d54-fcaa05a2d805" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview+5": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview+6": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2020-04-01-preview+7": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2020-04-01-preview+8": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "582f8035-f38a-406a-b74e-03af9f7c4021" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "9672f2ea-d1fd-4cb0-b58d-15d79c63a6e3" ], "x-ms-correlation-request-id": [ "9672f2ea-d1fd-4cb0-b58d-15d79c63a6e3" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2020-04-01-preview+9": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2020-04-01-preview+10": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview+11": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -441,10 +441,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "35893d10-388c-44a9-bd0e-06d4898106d7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "39d34201-6e6e-44f9-ab4b-137f805fb904" ], "x-ms-correlation-request-id": [ "39d34201-6e6e-44f9-ab4b-137f805fb904" ], @@ -464,10 +464,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2020-04-01-preview+12": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview+13": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview+14": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01+14": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -573,10 +573,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "4825473e-7e89-4206-872c-85e93e252b60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "0320a00d-0d7e-4960-97f6-0eb026bbc05b" ], "x-ms-correlation-request-id": [ "0320a00d-0d7e-4960-97f6-0eb026bbc05b" ], @@ -595,10 +595,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview+15": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -638,10 +638,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview+16": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -680,10 +680,10 @@ "isContentBase64": false } }, - "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview+17": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 index e3aae897e2a5..71b39bbab07c 100644 --- a/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 @@ -19,6 +19,8 @@ Describe 'Remove-AzDnsForwardingRulesetVirtualNetworkLink' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname44"; $virtualNetworkLinkName = "psvirtualnetworklinkname44"; $virtualNetworkName = "psvirtualnetworkname44"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -26,10 +28,10 @@ Describe 'Remove-AzDnsForwardingRulesetVirtualNetworkLink' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} - New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id + New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId # ACT Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME diff --git a/src/DnsResolver/test/Remove-AzDnsResolver.Recording.json b/src/DnsResolver/test/Remove-AzDnsResolver.Recording.json index 80825b8132b5..d8c74f428f0d 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolver.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsResolver.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview+1": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "84873d2c-0f66-4a42-9757-acc6000c928b" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11982" ], "x-ms-request-id": [ "335cf3b0-533e-49e8-a335-d5e1b31e93e0" ], "x-ms-correlation-request-id": [ "335cf3b0-533e-49e8-a335-d5e1b31e93e0" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview+3": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview+4": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -149,10 +149,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "dcd7d979-1401-4c2e-9681-5c54d6d78f78" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "2b53fd31-ba71-4445-998a-e1a68cb9069c" ], "x-ms-correlation-request-id": [ "2b53fd31-ba71-4445-998a-e1a68cb9069c" ], @@ -171,10 +171,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview+5": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -214,10 +214,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview+6": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -256,10 +256,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview+7": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsResolver.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsResolver.Tests.ps1 index ad4273ffed03..1f862a977e88 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolver.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsResolver.Tests.ps1 @@ -16,14 +16,14 @@ Describe 'Remove-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername64"; $virtualNetworkName = "psvirtualnetworkname64"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" if ($TestMode -eq "Record") { $virtualNetwork = CreateVirtualNetwork -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; - $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION # ACT Remove-AzDnsResolver -DnsResolverName $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME diff --git a/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Recording.json index 5c31e12afa82..085967f36503 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2020-04-01-preview+1": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "e7e9cfdc-c6fd-4752-8aee-ffe60b869957" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "b45492b1-5b35-41ec-82fa-67ad32399cf0" ], "x-ms-correlation-request-id": [ "b45492b1-5b35-41ec-82fa-67ad32399cf0" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2020-04-01-preview+3": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2020-04-01-preview+4": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2022-07-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2020-04-01-preview+5": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Tests.ps1 index 3c80f9da3aec..8b063738556a 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsResolverInboundEndpoint.Tests.ps1 @@ -17,6 +17,8 @@ Describe 'Remove-AzDnsResolverInboundEndpoint' { $dnsResolverName = "psdnsresolvername19"; $inboundEndpointName = "psinboundendpointname19"; $virtualNetworkName = "psvirtualnetworkname19"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -24,8 +26,8 @@ Describe 'Remove-AzDnsResolverInboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId # ACT Remove-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME diff --git a/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json index d325d9a46749..658777c352a3 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2020-04-01-preview+1": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "391a4bff-c904-494b-b183-6cca3186d8bd" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "26d9daa1-33ae-4df9-b3a6-a2e6a81407ff" ], "x-ms-correlation-request-id": [ "26d9daa1-33ae-4df9-b3a6-a2e6a81407ff" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2020-04-01-preview+2": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2020-04-01-preview+3": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2020-04-01-preview+4": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2022-07-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2020-04-01-preview+5": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Tests.ps1 index 56631df901c3..93865b7c5ef2 100644 --- a/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Remove-AzDnsResolverOutboundEndpoint.Tests.ps1 @@ -17,6 +17,8 @@ Describe 'Remove-AzDnsResolverOutboundEndpoint' { $dnsResolverName = "psdnsresolvername23"; $outboundEndpointName = "psoutboundendpointname23"; $virtualNetworkName = "psvirtualnetworkname23"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -24,8 +26,8 @@ Describe 'Remove-AzDnsResolverOutboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId # ACT Remove-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Recording.json index 98570684c179..8263b267ab58 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2020-04-01-preview+1": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "b5ab72d0-59c1-4b69-a4cc-781950aa60ab" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11972" ], "x-ms-request-id": [ "e0171557-4385-4cfc-9df3-fcfb1ab9ba88" ], "x-ms-correlation-request-id": [ "e0171557-4385-4cfc-9df3-fcfb1ab9ba88" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2020-04-01-preview+3": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2020-04-01-preview+4": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "acfae2ab-5f26-43a9-8587-8ada2992e1ce" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "f5321f32-6add-4b3b-8801-50cff643f9e9" ], "x-ms-correlation-request-id": [ "f5321f32-6add-4b3b-8801-50cff643f9e9" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview+5": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview+6": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2020-04-01-preview+7": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview+8": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d39483b9-1c6d-499b-963c-fc240efe64d7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "9d7483c0-0767-4e2b-a9a0-be91e7c865de" ], "x-ms-correlation-request-id": [ "9d7483c0-0767-4e2b-a9a0-be91e7c865de" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2020-04-01-preview+9": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview+10": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview+11": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01+11": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"keyaevu7\": \"valueaevu7\",\r\n \"key71h0x\": \"value71h0x\",\r\n \"key84nz7\": \"value84nz7\",\r\n \"key763r0\": \"value763r0\",\r\n \"keysp38b\": \"valuesp38b\",\r\n \"keya62xd\": \"valuea62xd\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -441,10 +441,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "cd578904-c94d-4611-b630-e860153d23b7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11997" ], "x-ms-request-id": [ "75e6adf9-150c-4b2e-8c4e-30a6185e4734" ], "x-ms-correlation-request-id": [ "75e6adf9-150c-4b2e-8c4e-30a6185e4734" ], @@ -464,10 +464,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2020-04-01-preview+12": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview+13": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Tests.ps1 index e31cd6e37469..169ea7da5501 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsForwardingRuleset.Tests.ps1 @@ -25,6 +25,8 @@ Describe 'Update-AzDnsForwardingRuleset' { $outboundEndpointName = "psoutboundendpointname54"; $dnsForwardingRulesetName = "psdnsforwardingrulesetname54"; $virtualNetworkName = "psvirtualnetworkname54"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -32,8 +34,8 @@ Describe 'Update-AzDnsForwardingRuleset' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json index 779b1557a3a1..b03daa3be600 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2020-04-01-preview+1": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "aa209430-6392-41d5-98dc-14a6487a9d4a" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11982" ], "x-ms-request-id": [ "3e492582-e69a-4bcf-98de-bda5775eacc8" ], "x-ms-correlation-request-id": [ "3e492582-e69a-4bcf-98de-bda5775eacc8" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2020-04-01-preview+3": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2020-04-01-preview+4": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "cc1fef6b-1358-4585-b8a0-1cf42178de2a" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "42a887e7-cf2e-48e5-a37e-3afe516c9315" ], "x-ms-correlation-request-id": [ "42a887e7-cf2e-48e5-a37e-3afe516c9315" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview+5": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview+6": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2020-04-01-preview+7": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2020-04-01-preview+8": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "e6694de3-0f82-4066-9729-85b3e2a7706f" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "63c8772d-aa00-4e14-8981-2618f0f2c77f" ], "x-ms-correlation-request-id": [ "63c8772d-aa00-4e14-8981-2618f0f2c77f" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2020-04-01-preview+9": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2020-04-01-preview+10": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2020-04-01-preview+11": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"domainName\": \"psdomainName57.com.\",\r\n \"targetDnsServers\": [\r\n {\r\n \"ipAddress\": \"10.0.0.3\",\r\n \"port\": 53\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -461,10 +461,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2020-04-01-preview+12": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2022-07-01+12": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"metadata\": {\r\n \"key8oxlg\": \"value8oxlg\",\r\n \"keys6h9b\": \"values6h9b\",\r\n \"key6yqnr\": \"value6yqnr\",\r\n \"keyrqin6\": \"valuerqin6\",\r\n \"keyau2lc\": \"valueau2lc\",\r\n \"keyi98zd\": \"valuei98zd\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Tests.ps1 index 44fbc8967a04..d3e8929fa066 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsForwardingRulesetForwardingRule.Tests.ps1 @@ -27,6 +27,8 @@ Describe 'Update-AzDnsForwardingRulesetForwardingRule' { $forwardingRuleName = "psdnsforwardingrulename57"; $domainName = "psdomainName57.com." $virtualNetworkName = "psvirtualnetworkname57"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -34,8 +36,8 @@ Describe 'Update-AzDnsForwardingRulesetForwardingRule' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION $dnsForwardingRuleset = New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} $targetDnsServer = New-AzDnsResolverTargetDnsServerObject -IPAddress 10.0.0.3 diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index 25799af1d1e4..f18a57d9acf8 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2020-04-01-preview+1": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "df33045d-8fd8-4ab1-b5b4-7fce3d65373b" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11992" ], "x-ms-request-id": [ "d307e84e-68e2-4b2c-aaf4-46d86bd2ca0e" ], "x-ms-correlation-request-id": [ "d307e84e-68e2-4b2c-aaf4-46d86bd2ca0e" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2020-04-01-preview+3": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2020-04-01-preview+4": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "c486f579-40f1-43c3-9fe9-83ce0ad74c1b" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "30d7f539-139b-411c-9265-bb69284f7c03" ], "x-ms-correlation-request-id": [ "30d7f539-139b-411c-9265-bb69284f7c03" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview+5": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview+6": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2020-04-01-preview+7": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2020-04-01-preview+8": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2022-07-01+8": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "a0142493-5857-4bc2-9b43-9ce5dade490c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "b15913c5-832b-4ed4-8f02-a04a4e98ee67" ], "x-ms-correlation-request-id": [ "b15913c5-832b-4ed4-8f02-a04a4e98ee67" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2020-04-01-preview+9": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2020-04-01-preview+10": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview+11": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01+11": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -441,10 +441,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "cc3ab997-85c8-4a19-a9e9-71bed0bb95f3" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "c2c34892-626f-40aa-afc1-e37f92f173f1" ], "x-ms-correlation-request-id": [ "c2c34892-626f-40aa-afc1-e37f92f173f1" ], @@ -464,10 +464,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2020-04-01-preview+12": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2022-07-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -507,10 +507,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview+13": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -550,10 +550,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview+14": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01+14": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01", "Content": "{\r\n \"properties\": {\r\n \"metadata\": {\r\n \"keyn2xcf\": \"valuen2xcf\",\r\n \"key7d53i\": \"value7d53i\",\r\n \"keyokbnq\": \"valueokbnq\",\r\n \"keylmszu\": \"valuelmszu\",\r\n \"keywtgxb\": \"valuewtgxb\",\r\n \"key4cqnl\": \"value4cqnl\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -568,10 +568,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "31377d0b-f181-4d05-8297-6651b9cba4f1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "f1d65479-53f1-4274-9c58-3559b170c6ac" ], "x-ms-correlation-request-id": [ "f1d65479-53f1-4274-9c58-3559b170c6ac" ], @@ -591,10 +591,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2020-04-01-preview+15": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2022-07-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -634,10 +634,10 @@ "isContentBase64": false } }, - "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview+16": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 index 42330332945f..c5f896741d04 100644 --- a/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Tests.ps1 @@ -26,6 +26,8 @@ Describe 'Update-AzDnsForwardingRulesetVirtualNetworkLink' { $dnsForwardingRulesetName = "psdnsforwardingrulesetname59"; $virtualNetworkLinkName = "psvirtualnetworklinkname59"; $virtualNetworkName = "psvirtualnetworkname59"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -33,11 +35,11 @@ Describe 'Update-AzDnsForwardingRulesetVirtualNetworkLink' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION - $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION + $outboundEndpoint = New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION New-AzDnsForwardingRuleset -Name $dnsForwardingRulesetName -ResourceGroupName $RESOURCE_GROUP_NAME -Location $LOCATION -DnsResolverOutboundEndpoint @{id = $outboundEndpoint.Id;} - New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id + New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName $dnsForwardingRulesetName -Name $virtualNetworkLinkName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId $tag = GetRandomHashtable -size 5 diff --git a/src/DnsResolver/test/Update-AzDnsResolver.Recording.json b/src/DnsResolver/test/Update-AzDnsResolver.Recording.json index 961ce203c302..e996c459a00e 100644 --- a/src/DnsResolver/test/Update-AzDnsResolver.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsResolver.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview+1": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "bcefa8e3-0e62-431c-bf19-58901dc25a93" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11965" ], "x-ms-request-id": [ "46fad2fb-7272-4523-9c2b-8e360009a11c" ], "x-ms-correlation-request-id": [ "46fad2fb-7272-4523-9c2b-8e360009a11c" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview+3": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview+4": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01+4": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"key61vjg\": \"value61vjg\",\r\n \"keytv1ko\": \"valuetv1ko\",\r\n \"keyudrxw\": \"valueudrxw\",\r\n \"keys2wib\": \"values2wib\",\r\n \"key6vg71\": \"value6vg71\",\r\n \"keyvp0ce\": \"valuevp0ce\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "02677f59-54d4-4e73-a071-c04d43e8abb7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11964" ], "x-ms-request-id": [ "a1f62fa0-9bc7-4680-9f49-a23fc498d516" ], "x-ms-correlation-request-id": [ "a1f62fa0-9bc7-4680-9f49-a23fc498d516" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2020-04-01-preview+5": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview+6": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsResolver.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsResolver.Tests.ps1 index 62de6e1de681..8c9106e74528 100644 --- a/src/DnsResolver/test/Update-AzDnsResolver.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsResolver.Tests.ps1 @@ -24,14 +24,15 @@ Describe 'Update-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername47"; $virtualNetworkName = "psvirtualnetworkname47"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { $virtualNetwork = CreateVirtualNetwork -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; - $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - $originalDnsResolver = New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + $originalDnsResolver = New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION $tag = GetRandomHashtable -size 5 diff --git a/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Recording.json index 9bd13707a18c..39ad266dd035 100644 --- a/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2020-04-01-preview+1": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "1c36b79c-0134-4626-9b17-87b7349aa421" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11963" ], "x-ms-request-id": [ "b7325a35-4f75-4da0-871d-57093c57ffca" ], "x-ms-correlation-request-id": [ "b7325a35-4f75-4da0-871d-57093c57ffca" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2020-04-01-preview+3": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview+4": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48/subnets/snet-sim2\"\r\n },\r\n \"privateIpAddress\": \"\",\r\n \"privateIpAllocationMethod\": \"Dynamic\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "46c0a82d-2651-4ae4-aefa-06b2e55b529e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "068bfbca-ce45-4ac8-a12e-9476b5e4cefd" ], "x-ms-correlation-request-id": [ "068bfbca-ce45-4ac8-a12e-9476b5e4cefd" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview+5": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview+6": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview+7": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview+8": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01+8": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"keyuzb1t\": \"valueuzb1t\",\r\n \"keymwq6r\": \"valuemwq6r\",\r\n \"keyqzsgt\": \"valueqzsgt\",\r\n \"keyawnxy\": \"valueawnxy\",\r\n \"key8ju3x\": \"value8ju3x\",\r\n \"key6b4wc\": \"value6b4wc\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "d25aca9a-78b3-4204-8a7e-0503a158137d" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "dff8f623-e70c-4c00-95f6-a54f889f00de" ], "x-ms-correlation-request-id": [ "dff8f623-e70c-4c00-95f6-a54f889f00de" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2020-04-01-preview+9": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview+10": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Tests.ps1 index 6ee5efa82807..2bb6cb036111 100644 --- a/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsResolverInboundEndpoint.Tests.ps1 @@ -24,6 +24,8 @@ Describe 'Update-AzDnsResolverInboundEndpoint' { $dnsResolverName = "psdnsresolvername48"; $inboundEndpointName = "psinboundendpointname48"; $virtualNetworkName = "psvirtualnetworkname48"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -31,9 +33,9 @@ Describe 'Update-AzDnsResolverInboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnet.id + $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId $subnetId New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -IPConfiguration $ipConfiguration -Location $LOCATION $tag = GetRandomHashtable -size 5 diff --git a/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Recording.json index ce3425427b87..faf5446776d3 100644 --- a/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2020-04-01-preview+1": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2022-07-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "8fc3634a-96f4-465b-b3b5-37264dabe79c" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11990" ], "x-ms-request-id": [ "1162c166-614c-4919-bbbe-59a31ab087b6" ], "x-ms-correlation-request-id": [ "1162c166-614c-4919-bbbe-59a31ab087b6" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2020-04-01-preview+2": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2022-07-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2020-04-01-preview+3": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2022-07-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview+4": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01", "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50/subnets/snet-sim2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -144,10 +144,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "4d96b971-d414-4a93-ad2d-f68dd72b95b7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], "x-ms-request-id": [ "e924d973-7115-4285-8a5f-bdbad91d656f" ], "x-ms-correlation-request-id": [ "e924d973-7115-4285-8a5f-bdbad91d656f" ], @@ -167,10 +167,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview+5": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview+6": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -253,10 +253,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview+7": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -296,10 +296,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview+8": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01+8": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01", "Content": "{\r\n \"tags\": {\r\n \"keyzfdwe\": \"valuezfdwe\",\r\n \"keyfmucv\": \"valuefmucv\",\r\n \"key1ghoe\": \"value1ghoe\",\r\n \"keypde7v\": \"valuepde7v\",\r\n \"key7ylaz\": \"value7ylaz\",\r\n \"keyt5hx3\": \"valuet5hx3\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -314,10 +314,10 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2020-04-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2022-07-01" ], "Retry-After": [ "5" ], "x-ms-activity-id": [ "5ebf801d-9cda-433f-aadd-fba3cf0b3a3a" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2020-04-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2022-07-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], "x-ms-request-id": [ "f29a55ac-3cde-465b-a2c2-f2e74d95fe50" ], "x-ms-correlation-request-id": [ "f29a55ac-3cde-465b-a2c2-f2e74d95fe50" ], @@ -337,10 +337,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2020-04-01-preview+9": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2022-07-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview+10": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2020-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2022-07-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Tests.ps1 b/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Tests.ps1 index d15b0ae8485d..14daa10590dd 100644 --- a/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Tests.ps1 +++ b/src/DnsResolver/test/Update-AzDnsResolverOutboundEndpoint.Tests.ps1 @@ -24,6 +24,8 @@ Describe 'Update-AzDnsResolverOutboundEndpoint' { $dnsResolverName = "psdnsresolvername50"; $outboundEndpointName = "psinboundendpointname50"; $virtualNetworkName = "psvirtualnetworkname50"; + $virtualNetworkId = "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + $subnetId = $virtualNetworkId + "/subnets" + $SUBNET_NAME; if ($TestMode -eq "Record") { @@ -31,9 +33,9 @@ Describe 'Update-AzDnsResolverOutboundEndpoint' { $subnet = CreateSubnet -SubscriptionId $SUBSCRIPTION_ID -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkName $virtualNetworkName; } - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetwork.Id -Location $LOCATION + New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $RESOURCE_GROUP_NAME -VirtualNetworkId $virtualNetworkId -Location $LOCATION - New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnet.Id -Location $LOCATION + New-AzDnsResolverOutboundEndpoint -DnsResolverName $dnsResolverName -Name $outboundEndpointName -ResourceGroupName $RESOURCE_GROUP_NAME -SubnetId $subnetId -Location $LOCATION $tag = GetRandomHashtable -size 5 diff --git a/src/DnsResolver/test/virtualNetworkClient.ps1 b/src/DnsResolver/test/virtualNetworkClient.ps1 index af3003898b23..d7db14b72491 100644 --- a/src/DnsResolver/test/virtualNetworkClient.ps1 +++ b/src/DnsResolver/test/virtualNetworkClient.ps1 @@ -50,8 +50,7 @@ function CreateSubnet([String]$SubscriptionId, [String]$ResourceGroupName, [Stri function CreateNrpMockSubnet([String]$SubscriptionId, [String]$ResourceGroupName, [String]$VirtualNetworkName) { $contentType3 = "application/json" - $subnetName = "snet-sim2" - $relativeRequestUri = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/virtualNetworks/$VirtualNetworkName/subnets/$SubnetName" + $relativeRequestUri = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/virtualNetworks/$VirtualNetworkName/subnets/$SUBNET_NAME" $completeVirtualNetworkRequestUri = $NRP_SIMULATOR_URI + $relativeRequestUri $data = [ordered]@{ properties = @{